Accept a team invitation in a signed-in browser (the same store as mobile)
POST
/v1/workspace/invitations/accept
const url = 'https://api.vocapable.com/v1/workspace/invitations/accept';const options = { method: 'POST', headers: { cookie: '__Host-vcp-session=<__Host-vcp-session>', 'Content-Type': 'application/json' }, body: '{"token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.vocapable.com/v1/workspace/invitations/accept \ --header 'Content-Type: application/json' \ --cookie __Host-vcp-session=<__Host-vcp-session> \ --data '{ "token": "example" }'Spend a fragment-delivered invitation for the signed-in account whose verified email it names. Unlike the mobile companion’s acceptance, this needs no mobile rollout: it creates a company membership, not a mobile session.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
WorkspaceInvitationAccept
object
token
required
Token
string
Examplegenerated
{ "token": "example"}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
WorkspaceInvitationAccepted
object
company_id
required
Company Id
string
company_name
required
Company Name
string
role
required
Role
string
Examplegenerated
{ "company_id": "example", "company_name": "example", "role": "example"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}