Skip to Content
Docs
API referencePlatform API

Invitations

GET
/projects/{project_id}/invitations

List the invitations to the project

Path Parameters

project_id*string

Project ID

Query Parameters

search?string

Search term matched against the invitee email

page?integer

Page number

limit?integer

Page size (default 25, at most 100)

sort?string

Sort order

Response Body

OK

application/json
  1. response
data?array<>

List of invitations

object?string

The object type

pagination?

Pagination information

Example Request
curl -X GET 'https://api.pontive.com/v1/projects/string/invitations'
Example Response
{  "data": [    {      "created_at": "2019-08-24T14:15:22Z",      "expires_at": "2019-08-24T14:15:22Z",      "id": "string",      "invited_by": "string",      "invitee_email": "string",      "last_sent_at": "2019-08-24T14:15:22Z",      "message": "string",      "object": "string",      "project": {        "id": "string",        "name": "string"      },      "project_roles": [        "string"      ],      "resend_count": 0,      "roles": [        "string"      ]    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Invite to a project

POST
/projects/{project_id}/invitations

Invite people to the project by email. Invitees who are not workspace members join the workspace too, with no role there.

Path Parameters

project_id*string

Project ID

Request Body

Invite Project Members Request

application/json
  1. body

Invite Project Members Request

emails?array<string>

The email addresses to invite required: true

message?string

An optional message included in the invitation email

roles?array<string>

The roles the invitees will hold on the project once they accept. They join the project's workspace too, with no role there. required: true enum: admin,developer,viewer

Response Body

Created

application/json
  1. response
data?array<>

The invitations sent: new ones, and live ones an address already held, reissued with this request's roles and a new link (resend_count > 0)

object?string

The object type

skipped?array<>

The addresses that got no invitation, and why. Skipping is not an error: a request whose every address was skipped still succeeds.

Example Request
curl -X POST 'https://api.pontive.com/v1/projects/string/invitations' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": [    {      "created_at": "2019-08-24T14:15:22Z",      "expires_at": "2019-08-24T14:15:22Z",      "id": "string",      "invited_by": "string",      "invitee_email": "string",      "last_sent_at": "2019-08-24T14:15:22Z",      "message": "string",      "object": "string",      "project": {        "id": "string",        "name": "string"      },      "project_roles": [        "string"      ],      "resend_count": 0,      "roles": [        "string"      ]    }  ],  "object": "string",  "skipped": [    {      "email": "string",      "reason": "already_member"    }  ]}
DELETE
/projects/{project_id}/invitations/{invitation_id}

Withdraw one of the project's invitations: it is deleted, and its link stops working.

Path Parameters

project_id*string

Project ID

invitation_id*string

Invitation ID

Query Parameters

notify_invitee?boolean

Notify the invitee that the invitation was withdrawn

Response Body

No Content

Example Request
curl -X DELETE 'https://api.pontive.com/v1/projects/string/invitations/string'
Example Response
Empty
POST
/projects/{project_id}/invitations/{invitation_id}/resend

Send one of the project's outstanding invitations again

Path Parameters

project_id*string

Project ID

invitation_id*string

Invitation ID

Request Body

Resend Project Invitation Request

application/json
  1. body

Resend Project Invitation Request

message?string

An optional message replacing the original (resend)

Response Body

OK

application/json
  1. response
created_at?string

The time when the invitation was created

Formatdate-time
expires_at?string

The time when the invitation expires

Formatdate-time
id?string

The unique identifier of the invitation

invited_by?string

The user who sent the invitation

invitee_email?string

The email address the invitation was sent to

last_sent_at?string

The time when the invitation was last sent

Formatdate-time
message?string

The message included with the invitation

object?string

The object type

project?

For an invitation to a project, the project; absent on one to the workspace alone.

project_roles?array<string>

For an invitation to a project, the roles the invitee will hold on it. The invitee joins the workspace too, with no role there unless Roles names one. enum: admin,developer,viewer

resend_count?integer

How many times the invitation has been resent

roles?array<string>

The roles the invitee will hold on the workspace once they accept enum: admin,billing,developer

Example Request
curl -X POST 'https://api.pontive.com/v1/projects/string/invitations/string/resend' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "2019-08-24T14:15:22Z",  "expires_at": "2019-08-24T14:15:22Z",  "id": "string",  "invited_by": "string",  "invitee_email": "string",  "last_sent_at": "2019-08-24T14:15:22Z",  "message": "string",  "object": "string",  "project": {    "id": "string",    "name": "string"  },  "project_roles": [    "string"  ],  "resend_count": 0,  "roles": [    "string"  ]}
GET
/workspaces/{workspace_id}/invitations

Get a list of the workspace's invitations

Path Parameters

workspace_id*string

Workspace ID

Query Parameters

search?string

Search term matched against the invitee email

page?integer

Page number

limit?integer

Page size (default 25, at most 100)

sort?string

Sort order

Response Body

OK

application/json
  1. response
data?array<>

List of invitations

object?string

The object type

pagination?

Pagination information

Example Request
curl -X GET 'https://api.pontive.com/v1/workspaces/string/invitations'
Example Response
{  "data": [    {      "created_at": "2019-08-24T14:15:22Z",      "expires_at": "2019-08-24T14:15:22Z",      "id": "string",      "invited_by": "string",      "invitee_email": "string",      "last_sent_at": "2019-08-24T14:15:22Z",      "message": "string",      "object": "string",      "project": {        "id": "string",        "name": "string"      },      "project_roles": [        "string"      ],      "resend_count": 0,      "roles": [        "string"      ]    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Invite members

POST
/workspaces/{workspace_id}/invitations

Invite people to the workspace by email

Path Parameters

workspace_id*string

Workspace ID

Request Body

Invite Members Request

application/json
  1. body

Invite Members Request

emails?array<string>

The email addresses to invite required: true

message?string

An optional message included in the invitation email

roles?array<string>

The roles the invitees will hold once they accept. owner cannot be granted by invitation — ownership moves through transfer-ownership. enum: admin,billing,developer

Response Body

Created

application/json
  1. response
data?array<>

The invitations sent: new ones, and live ones an address already held, reissued with this request's roles and a new link (resend_count > 0)

object?string

The object type

skipped?array<>

The addresses that got no invitation, and why. Skipping is not an error: a request whose every address was skipped still succeeds.

Example Request
curl -X POST 'https://api.pontive.com/v1/workspaces/string/invitations' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": [    {      "created_at": "2019-08-24T14:15:22Z",      "expires_at": "2019-08-24T14:15:22Z",      "id": "string",      "invited_by": "string",      "invitee_email": "string",      "last_sent_at": "2019-08-24T14:15:22Z",      "message": "string",      "object": "string",      "project": {        "id": "string",        "name": "string"      },      "project_roles": [        "string"      ],      "resend_count": 0,      "roles": [        "string"      ]    }  ],  "object": "string",  "skipped": [    {      "email": "string",      "reason": "already_member"    }  ]}

Delete an invitation

DELETE
/workspaces/{workspace_id}/invitations/{invitation_id}

Withdraw an invitation: it is deleted, and its link stops working. An invitation exists only while it is open — accepting one deletes it too, and an expired one is purged.

Path Parameters

workspace_id*string

Workspace ID

invitation_id*string

Invitation ID

Query Parameters

notify_invitee?boolean

Notify the invitee that the invitation was withdrawn

Response Body

No Content

Example Request
curl -X DELETE 'https://api.pontive.com/v1/workspaces/string/invitations/string'
Example Response
Empty

Resend an invitation

POST
/workspaces/{workspace_id}/invitations/{invitation_id}/resend

Send an outstanding invitation again

Path Parameters

workspace_id*string

Workspace ID

invitation_id*string

Invitation ID

Request Body

Resend Invitation Request

application/json
  1. body

Resend Invitation Request

message?string

An optional message replacing the original

Response Body

OK

application/json
  1. response
created_at?string

The time when the invitation was created

Formatdate-time
expires_at?string

The time when the invitation expires

Formatdate-time
id?string

The unique identifier of the invitation

invited_by?string

The user who sent the invitation

invitee_email?string

The email address the invitation was sent to

last_sent_at?string

The time when the invitation was last sent

Formatdate-time
message?string

The message included with the invitation

object?string

The object type

project?

For an invitation to a project, the project; absent on one to the workspace alone.

project_roles?array<string>

For an invitation to a project, the roles the invitee will hold on it. The invitee joins the workspace too, with no role there unless Roles names one. enum: admin,developer,viewer

resend_count?integer

How many times the invitation has been resent

roles?array<string>

The roles the invitee will hold on the workspace once they accept enum: admin,billing,developer

Example Request
curl -X POST 'https://api.pontive.com/v1/workspaces/string/invitations/string/resend' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "2019-08-24T14:15:22Z",  "expires_at": "2019-08-24T14:15:22Z",  "id": "string",  "invited_by": "string",  "invitee_email": "string",  "last_sent_at": "2019-08-24T14:15:22Z",  "message": "string",  "object": "string",  "project": {    "id": "string",    "name": "string"  },  "project_roles": [    "string"  ],  "resend_count": 0,  "roles": [    "string"  ]}