SnozeDevelopers
API referenceOnboarding

Accept a legacy workspace restore claim

Claims the restored workspace behind an offer for the caller and returns the resulting workspace summary. Requires a Clerk session whose verified email matches the claim, checked without the profile cache, and the legacy-restore feature must be enabled. An unknown, blocked, or non-matching claim is not found; a workspace that is not activated yet, an offer already resolved, and a legacy identity already claimed by another account are all conflicts. Re-accepting a claim the caller already accepted returns the same workspace.

POST
/v1/me/legacy-workspace-claims/{claimId}/accept
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

claimId*string

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/me/legacy-workspace-claims/string/accept"
{  "data": {    "claimId": "string",    "workspace": {      "id": "string",      "slug": "string",      "name": "string",      "icon": "initials",      "accentColor": "string",      "imageUrl": "string",      "role": "owner",      "permissions": [        "workspace:read"      ],      "createdAt": "string",      "updatedAt": "string"    }  }}