1. Docs
  2. API Reference
  3. Accept an invite

Accept an invite

POST/v1/auth/accept-invite

Request body

  • tokenstring*
  • first_namestring*
  • last_namestring*
  • passwordstring*

Code samples

cURLJavaScriptPythonGo
curl -X POST "https://api.canopy.dev/v1/auth/accept-invite" \
  -H "Content-Type: application/json" \
  -d '{
    "token": "string",
    "first_name": "string",
    "last_name": "string",
    "password": "string"
  }'

Responses

200 Invite accepted, user created or updated
{
  "message": "string"
}

application/json

  • messagestring*

Returned object

On this page

Related endpoints

POSTRegister a new user
POSTLook up invite details by token
POSTAuthenticate and receive tokens
POSTSelect an Application from a pre-auth session (post-login picker)
POSTSwitch the active Application in an authenticated session
POSTRefresh access token
POSTLogout and revoke tokens
GETVerify email address
POSTResend verification email
POSTRequest password reset
POSTReset password with token
POSTChange password (authenticated)
GETGet current user profile
GETGet current user permissions
GETList the Accounts the current user belongs to
GETList active sessions
DELETERevoke all sessions
DELETERevoke a specific session