POST
/
v1
/
invitations
curl --request POST \
  --url https://api.edgee.app/v1/invitations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "organization_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "role": "admin",
  "email": "<string>"
}'
{
  "object": "project",
  "id": "<string>",
  "organization_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "role": "admin",
  "email": "<string>",
  "created_at": "2022-03-01T00:00:00Z"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

An invitation is a request to join an organization. An invitation is sent to an email address, and the recipient can accept or decline the invitation.

organization_id
string
required

Unique identifier for the organization the project belongs to

Example:

"d290f1ee-6c54-4b01-90e6-d701748f0851"

role
enum<string>
required

The future role of the user in the organization.

Available options:
admin,
member
email
string
required

Email of the user

Response

200
application/json
The created Invitation

An invitation is a request to join an organization. An invitation is sent to an email address, and the recipient can accept or decline the invitation.

object
string

String representing the object's type. Objects of the same type share the same value

Example:

"project"

id
string

Unique identifier for the invitation

organization_id
string

Unique identifier for the organization the project belongs to

Example:

"d290f1ee-6c54-4b01-90e6-d701748f0851"

role
enum<string>

The future role of the user in the organization.

Available options:
admin,
member
email
string

Email of the user

created_at
string

Time at which the project was created

Example:

"2022-03-01T00:00:00Z"