Create an invite

⚠️
Preview — this feature is being built; the design below is the spec.
POST https://app.syntic.ai/v1/organizations/invites

Invite 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

HeaderRequiredValue
AuthorizationYesBearer <admin key>: an Admin API key (sk_admin_...). Inference keys are refused with 403 admin_key_required. See Admin API keys.
syntic-betaYes, while in previewadmin-2026-11-01. Without it the call fails with 400 beta_required. See Versioning.
Content-TypeYesapplication/json
Idempotency-KeyNoUp to 255 characters. Retrying with the same key within 24 hours returns the first result instead of creating a duplicate. See Idempotency.

Body parameters

ParameterTypeRequiredNotes
emailstringYesOne address.
rolestringNodeveloper (default) or administrator. Owners are never invited.
workspacesarrayNoUp 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:

StatustypecodeWhen
400invalid_request_errorbeta_requiredThe syntic-beta header is missing.
400invalid_request_errorinvalid_emailNot a valid address.
400invalid_request_errorinvalid_roleNot administrator or developer.
403permission_errorrole_requiredThe admin key’s creator does not have the role this needs.
403permission_erroremail_domain_not_allowedThe organization limits members to certain email domains.
409conflict_erroralready_memberThe address belongs to an active member.
409conflict_errorseat_limit_reachedThe plan has no free seats.
401authentication_errorinvalid_api_keyThe admin key is missing, unknown, revoked or expired.
403permission_erroradmin_key_requiredAn inference key was used.
429rate_limit_errorrate_limitedToo many requests; wait for Retry-After. See Rate-limit headers.
Was this page helpful?