/v1/workspaces/invites/{code}AuthPreview an invite before accepting it: workspace, role, who sent it, expiry and whether it still works. Cookie/JWT only.
Path parameters
code*stringThe invite code from the invite link.
Response · 200
workspace_name*stringDisplay name of the workspace the invite joins, or `null` if it no longer exists.
role_name*stringName of the role the invite grants, or `null` if that role was deleted.
invited_by*stringDisplay name (else username) of the member who sent the invite, or `null` once that account is gone.
email*string · emailEmail the invite is restricted to, or `null` for an open invite link.
expires_at*string · date-timeWhen the invite stops working, or `null` if it never expires.
status*objectWhether accepting would work right now.
Example
Request
GET https://api.platform-auth.productcraft.co/v1/workspaces/invites/{code}
Authorization: Bearer YOUR_TOKENResponse
{
"workspace_name": "string",
"role_name": "string",
"invited_by": "string",
"email": "user@example.com",
"expires_at": "2026-01-01T00:00:00.000Z",
"status": {}
}