Create an invite
⚠️
Preview — this feature is being built; the design below is the spec.
POST https://app.syntic.ai/v1/organizations/invitesInvite one person by email, with an organization role and optionally workspace memberships that apply when they accept. Inviting an address that already has a pending invite returns that invite with 200 OK and sends no second email.
For how this fits into a full workflow, see Invites.
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <admin key>: an Admin API key (sk_admin_...). Inference keys are refused with 403 admin_key_required. See Admin API keys. |
syntic-beta | Yes, while in preview | admin-2026-11-01. Without it the call fails with 400 beta_required. See Versioning. |
Content-Type | Yes | application/json |
Idempotency-Key | No | Up to 255 characters. Retrying with the same key within 24 hours returns the first result instead of creating a duplicate. See Idempotency. |
Body parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
email | string | Yes | One address. |
role | string | No | developer (default) or administrator. Owners are never invited. |
workspaces | array | No | Up to 20 {workspace_id, role} entries. |
Response
201 Created, Content-Type: application/json
{
"id": "invite_01JCD3F5H7K9M1P3R5T7",
"type": "invite",
"email": "sam@example.com",
"role": "developer",
"workspaces": [
{
"workspace_id": "wrkspc_01JC0A2C4E6G8J0L2N4Q",
"role": "workspace_developer"
}
],
"status": "pending",
"invited_by": {
"id": "user_01J9X8Z6B4D2F0H8K6M4",
"email": "ops@example.com"
},
"created_at": "2026-11-05T10:00:00Z",
"expires_at": "2026-11-12T10:00:00Z",
"accepted_at": null
}Examples
curl -sS https://app.syntic.ai/v1/organizations/invites \
-H "Authorization: Bearer $SYNTIC_ADMIN_KEY" \
-H "syntic-beta: admin-2026-11-01" \
-H "Idempotency-Key: 8d6f0c1e-4b2a-4a57-9f0e-2f1d3c4b5a69" \
-H "Content-Type: application/json" \
-d '{
"email": "sam@example.com",
"role": "developer",
"workspaces": [
{
"workspace_id": "wrkspc_01JC0A2C4E6G8J0L2N4Q",
"role": "workspace_developer"
}
]
}'Errors
Errors use the error envelope and carry a request_id. Codes specific to this operation:
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request_error | beta_required | The syntic-beta header is missing. |
| 400 | invalid_request_error | invalid_email | Not a valid address. |
| 400 | invalid_request_error | invalid_role | Not administrator or developer. |
| 403 | permission_error | role_required | The admin key’s creator does not have the role this needs. |
| 403 | permission_error | email_domain_not_allowed | The organization limits members to certain email domains. |
| 409 | conflict_error | already_member | The address belongs to an active member. |
| 409 | conflict_error | seat_limit_reached | The plan has no free seats. |
| 401 | authentication_error | invalid_api_key | The admin key is missing, unknown, revoked or expired. |
| 403 | permission_error | admin_key_required | An inference key was used. |
| 429 | rate_limit_error | rate_limited | Too many requests; wait for Retry-After. See Rate-limit headers. |
Was this page helpful?