Skip to main content
PUT
/
v2
/
databases
/
{database}
/
tenants
/
{tenantId}
/
invite
Accepts a tenant invite
curl --request PUT \
  --url https://api.example.com/v2/databases/{database}/tenants/{tenantId}/invite \
  --header 'Content-Type: multipart/form-data' \
  --cookie nile-auth.session-token= \
  --form [email protected] \
  --form 'token=<string>' \
  --form 'callbackUrl=<string>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "email": "<string>",
  "name": "<string>",
  "familyName": "<string>",
  "givenName": "<string>",
  "picture": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "updated": "2023-11-07T05:31:56Z",
  "emailVerified": "2023-11-07T05:31:56Z"
}

Authorizations

nile-auth.session-token
string
cookie
required

Session token stored in a cookie after user signs in, prefixed with __Secure if on https

Path Parameters

database
string
required
tenantId
string
required

Body

multipart/form-data
identifier
string<email>
required
token
string
required
callbackUrl
string<uri>
required

Response

Successfully created the user and accepted the invite

id
string<uuid>
email
string
name
string | null
familyName
string | null
givenName
string | null
picture
string<uri> | null
created
string<date-time>
updated
string<date-time>
emailVerified
string<date-time>