Invite

Create invitation

Create invitation to a project. This will send an invitation email with a link to join to the email address provided.

POSThttps://cloud-api.calyptia.com/v1/projects/{projectID}/invite
Authorization
Path parameters
projectID*string (uuid)
Body
email*string (email)
permissions*array of Permission (enum)

An empty list means it has all permissions.

redirectURI*string (uri)
Response

No Content

Request
const response = await fetch('https://cloud-api.calyptia.com/v1/projects/{projectID}/invite', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "email": "name@gmail.com",
      "permissions": [
        "create:*"
      ],
      "redirectURI": "https://example.com"
    }),
});
const data = await response.json();