Accept an invitation for the signed-in invitee
POST
/invites/{token}/accept
const url = 'https://api.invogi.com/v1/invites/example/accept';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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.invogi.com/v1/invites/example/accept \ --header 'Authorization: Bearer <token>'Requires a Clerk session for the invited email address. Does not require membership in the invited workspace before acceptance. Expired, revoked, already-used or wrong-account tokens are refused.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”token
required
string
Responses
Section titled “Responses”Successful response
Media typeapplication/json
object
organizationId
required
string
role
required
string
Example
{ "role": "ADMIN"}Missing or invalid API key
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json
Resource not found
Media typeapplication/json
Conflicting idempotency key or resource processing state
Media typeapplication/json
Processing failed; use the error code and request ID for troubleshooting.
Media typeapplication/json