cURL
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" }
Accepts an invite for a user to join a tenant using the token and email. The invite must be valid and not expired.
Session token stored in a cookie after user signs in, prefixed with __Secure if on https
Successfully created the user and accepted the invite
Was this page helpful?