Skip to Content
Docs

Create an invitation

POST
/invitations

required scopes: contextual:invitations:create

Authorization

jwt
headerAuthorizationBearer <JWT>

Header Parameters

Request Body

application/json
  1. body
email*string
Length1 <= length
roles*array<>
Items1 <= items

Response Body

application/json
  1. response
id*string
Length1 <= length
email*string
Length1 <= length
organization*string
Length1 <= length
roles*array<>
Items1 <= items
expiresAt*string

An ISO 8601 date time string

Match^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$
Formatdate-time
accepted?boolean
_metaData*
Example Request
curl -X POST 'https://auth.your-tenant-id.my.contextual.io/api/v1/invitations' \  -H 'Content-Type: application/json' \  -d '{  "email": "string",  "roles": [    "string"  ]}'
Example Response
{  "id": "string",  "email": "string",  "organization": "string",  "roles": [    "string"  ],  "expiresAt": "2019-08-24T14:15:22Z",  "accepted": true,  "_metaData": {    "id": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}