Platform API reference

Platform API · Workspaces

get/v1/workspaces/invites/{code}Auth

Preview an invite before accepting it: workspace, role, who sent it, expiry and whether it still works. Cookie/JWT only.

Path parameters

code*string

The invite code from the invite link.

Response · 200

workspace_name*string

Display name of the workspace the invite joins, or `null` if it no longer exists.

role_name*string

Name of the role the invite grants, or `null` if that role was deleted.

invited_by*string

Display name (else username) of the member who sent the invite, or `null` once that account is gone.

email*string · email

Email the invite is restricted to, or `null` for an open invite link.

expires_at*string · date-time

When the invite stops working, or `null` if it never expires.

status*object

Whether accepting would work right now.

Example

Request

GET https://api.platform-auth.productcraft.co/v1/workspaces/invites/{code}
Authorization: Bearer YOUR_TOKEN

Response

{
  "workspace_name": "string",
  "role_name": "string",
  "invited_by": "string",
  "email": "user@example.com",
  "expires_at": "2026-01-01T00:00:00.000Z",
  "status": {}
}