Skip to main content
Create a copyable workspace invitation link
curl --request POST \
  --url https://api.acornops.dev/api/v1/workspaces/{workspaceId}/invitations \
  --header 'Content-Type: application/json' \
  --cookie acornops_cp_session= \
  --data '
{
  "email": "sre@example.com",
  "role": "<string>",
  "expiresInDays": 7
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "email": "jsmith@example.com",
  "role": "<string>",
  "status": "<string>",
  "roleTemplate": {
    "key": "<string>",
    "displayName": "<string>",
    "capabilities": [
      "<string>"
    ],
    "protected": true,
    "sortOrder": 123,
    "description": "<string>"
  },
  "token": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.acornops.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

acornops_cp_session
string
cookie
required

Path Parameters

workspaceId
string<uuid>
required
Example:

"4b930d98-add9-4924-ab26-3c16d96ec373"

Body

application/json
email
string<email>
required
Example:

"sre@example.com"

role
string
required

Deployment-supported workspace role key. Built-ins are owner, admin, operator, viewer, and auditor; custom roles are lowercase snake_case.

Pattern: ^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$
expiresInDays
integer
default:7
Required range: 1 <= x <= 30

Response

Invitation created. Response includes the raw token once and roleTemplate when the role is supported.

Invitation response. Includes the raw invitation token once.

id
string<uuid>
required
workspaceId
string<uuid>
required
email
string<email>
required
role
string
required
status
string
required
roleTemplate
object
token
string

Returned only at creation time.

expiresAt
string<date-time>
createdAt
string<date-time>