POST
/
workspaces
/
{workspaceSlug}
/
invites
curl --request POST \
  --url https://global.thenile.dev/workspaces/{workspaceSlug}/invites \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "<string>"
}'
{
  "id": "<string>",
  "sender": {
    "id": "<string>",
    "email": "<string>",
    "workspaces": [
      {
        "id": "<string>",
        "name": "<string>",
        "slug": "<string>",
        "stripe_customer_id": "<string>",
        "created": "2023-11-07T05:31:56Z"
      }
    ],
    "databases": [
      "<string>"
    ],
    "kind": "HUMAN"
  },
  "email": "<string>",
  "workspace": {
    "id": "<string>",
    "name": "<string>",
    "slug": "<string>",
    "stripe_customer_id": "<string>",
    "created": "2023-11-07T05:31:56Z"
  },
  "verificationState": "EMAIL_PENDING",
  "created": "2023-11-07T05:31:56Z",
  "updated": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceSlug
string
required

Body

application/json
Contact information for the invitee

Parameters for creating an invitation for a developer to join a workspace.

email
string
required

The invitee's email address

Response

201
application/json
Invite created successfully. An email will be sent.
id
string
required
sender
object
required
email
string
required
workspace
object
required
verificationState
enum<string>
required
Available options:
EMAIL_PENDING,
EMAIL_SENT,
VERIFIED,
EXPIRED
created
string
updated
string