TypeScript
const options = {method: 'POST'}; fetch('http://localhost:8000/api/v1/invitations/{token}/accept', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "success": true, "data": { "organizationId": "<string>", "member": { "userId": "<string>", "organizationId": "<string>", "role": "owner" }, "invitation": { "id": "<string>", "status": "<string>" }, "organization": { "id": "<string>", "name": "<string>", "slug": "<string>" } }, "meta": { "requestId": "<string>", "timestamp": "<string>" } }
Accept an invitation to join an organization. Requires authentication - user must sign in or sign up first.
1
Invitation accepted
true
Show child attributes
Was this page helpful?