Invite a user

Sends an invitation to a user to join the organization or profile with a specific role. Requires admin role. The user will receive an invitation email with a token to accept. Invitation tokens expire after 7 days.

POST
/v3/users

Header Parameters

Idempotency-Key?string

Unique key to ensure idempotent request processing. Must be 1-255 alphanumeric characters, hyphens, or underscores. Responses are cached for 24 hours per key per customer.

Match^[a-zA-Z0-9_-]+$
Lengthlength <= 255
x-profile-id?string

Profile UUID to scope the request to a child profile. Only organization API keys can use this header. The profile must belong to the calling organization.

Formatuuid

Request Body

application/json
  1. body

Request to invite a user to an organization

sandbox?boolean

Sandbox flag - when true, the operation is simulated without side effects Useful for testing integrations without actual execution

email*string

User email address (required)

Match^[^@]+@[^@]+$
Formatemail
Length1 <= length
name*string

User full name (required)

Length0 <= length <= 100
role?string

User role: admin, billing, or developer (required)

Response Body

User invited successfully

application/json
  1. response

Standard API response envelope for all v3 endpoints

success?boolean

Indicates whether the request was successful

data?|null

The response data (null if error)

error?|null

Error details (null if successful)

meta?

Metadata about the request and response

Example Request
curl -X POST 'https://api.sent.dm/v3/users' \  -H 'Idempotency-Key: req_abc123_retry1' \  -H 'Content-Type: application/json' \  -d '{  "email": "newuser@example.com",  "name": "New User",  "role": "developer",  "sandbox": false}'
Example Response
{  "success": true,  "data": {    "id": "aa0e8400-e29b-41d4-a716-446655440005",    "customer_id": "00000000-0000-0000-0000-000000000000",    "email": "newuser@example.com",    "name": "New User",    "role": "developer",    "status": "invited",    "invited_at": "2026-12-01T19:21:45.2205947+00:00",    "last_login_at": null,    "created_at": "2026-12-01T19:21:45.2205949+00:00",    "updated_at": "2026-12-01T19:21:45.220595+00:00"  },  "error": null,  "meta": {    "request_id": "req_7X9zKp2jDw",    "timestamp": "2026-12-01T19:21:45.2205952+00:00",    "version": "v3"  }}