Skip to main content
POST
/
client-invites
/
accept
Accept Client invite
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({token: '<string>', accessToken: '<string>'})
};

fetch('https://api.dolfinai.co/client-invites/accept', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "token": "<string>",
  "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "email": "<string>",
  "organisations": [
    {
      "organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "organisationName": "<string>"
    }
  ],
  "clients": [
    {
      "clientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "clientName": "<string>"
    }
  ]
}

Body

application/json
token
string
required
accessToken
string
required
provider
string

Response

OK

token
string
required

Your Dolfin issued bearer token

userId
string<uuid>
required

Unique identifier for the user the token has been issued for

email
string
required

Email of the user the token has been issued for

organisations
object[]
required

Organisation memberships for the user

clients
object[]
required

Client memberships for the user (portal access)