Skip to content
OpenPostDocs
OpenPostDocs
Workspaces

Accept the current user's workspace invitation

Accepts a pending invitation only when its email matches the signed-in user. This supports safe in-app invitation notifications without storing the invitation token.

POST/workspace-invitations/{id}/accept

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Invitation ID shown to the invited signed-in user

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/workspace-invitations/string/accept"
{  "$schema": "https://example.com/api/v1/schemas/AcceptWorkspaceInvitationOutputBody.json",  "accepted": true,  "role": "string",  "workspace_id": "string"}