Skip to content

Provisioning API

Create a user

POST
/users
curl --request POST \
--url https://live-api.customers.ac/v1/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "email": "jane@acme.com", "company": "Acme Corp", "name": "Jane Doe", "external_id": "cust_8hTk2mN" }'

Creates a new end customer. The external_id field is optional and can be used to store your platform’s internal identifier for this customer.

Media typeapplication/json
object
email
required

The user’s email address. Must be unique across your partner account.

string format: email
name

The user’s full name.

string
company

The user’s company or organization name.

string
external_id

An optional identifier from your system.

string
<= 255 characters
Example
{
"email": "jane@acme.com",
"company": "Acme Corp",
"name": "Jane Doe",
"external_id": "cust_8hTk2mN"
}

User created.

Media typeapplication/json
object
data
required
object
id
required

Unique identifier for the user.

string format: uuid
email
required

The user’s email address. Must be unique across your partner account.

string format: email
name

The user’s full name.

string | null
company

The user’s company or organization name.

string | null
external_id

An optional identifier from your system. Useful for correlating sending.ac users with your own customer records.

string | null
senders_count

Number of senders belonging to this user.

integer
created_at
required

When the user was created.

string format: date-time
updated_at
required

When the user was last updated.

string format: date-time
Example
{
"data": {
"id": "usr_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"email": "jane@acme.com",
"name": "Jane Doe",
"company": "Acme Corp",
"external_id": "cust_8hTk2mN",
"senders_count": 2,
"created_at": "2026-03-20T09:00:00Z",
"updated_at": "2026-03-20T09:00:00Z"
}
}

The request body failed validation.

Media typeapplication/json
object
error
required
object
code
required

A machine-readable error code.

string
Allowed values: auth.missing_key auth.invalid_key auth.insufficient_scope rate.quota_exceeded validation.required_field validation.invalid_value resource.not_found resource.already_exists resource.not_ready server.error
message
required

A human-readable explanation of the error.

string
doc_url

A link to the documentation page for this error code.

string format: uri
details

For validation errors, a list of individual field-level problems.

Array<object> | null
object
field
required

The field that caused the error, in dot notation.

string
code

A machine-readable code for this specific validation issue.

string
message
required

A human-readable explanation.

string
Example
{
"error": {
"code": "validation.required_field",
"message": "The request body is missing required fields.",
"doc_url": "https://docs.sending.ac/errors/validation-required-field",
"details": [
{
"field": "email",
"code": "validation.required_field",
"message": "This field is required."
}
]
}
}

Authentication failed. The API key is missing or invalid.

Media typeapplication/json
object
error
required
object
code
required

A machine-readable error code.

string
Allowed values: auth.missing_key auth.invalid_key auth.insufficient_scope rate.quota_exceeded validation.required_field validation.invalid_value resource.not_found resource.already_exists resource.not_ready server.error
message
required

A human-readable explanation of the error.

string
doc_url

A link to the documentation page for this error code.

string format: uri
details

For validation errors, a list of individual field-level problems.

Array<object> | null
object
field
required

The field that caused the error, in dot notation.

string
code

A machine-readable code for this specific validation issue.

string
message
required

A human-readable explanation.

string
Examples

No API key provided

{
"error": {
"code": "auth.missing_key",
"message": "No API key was provided. Include your key in the Authorization header: Bearer sac_live_xxxxx.",
"doc_url": "https://docs.sending.ac/errors/auth-missing-key"
}
}

The API key does not have the required scope for this operation.

Media typeapplication/json
object
error
required
object
code
required

A machine-readable error code.

string
Allowed values: auth.missing_key auth.invalid_key auth.insufficient_scope rate.quota_exceeded validation.required_field validation.invalid_value resource.not_found resource.already_exists resource.not_ready server.error
message
required

A human-readable explanation of the error.

string
doc_url

A link to the documentation page for this error code.

string format: uri
details

For validation errors, a list of individual field-level problems.

Array<object> | null
object
field
required

The field that caused the error, in dot notation.

string
code

A machine-readable code for this specific validation issue.

string
message
required

A human-readable explanation.

string
Example
{
"error": {
"code": "auth.insufficient_scope",
"message": "Your API key does not have the 'senders:write' scope required for this operation.",
"doc_url": "https://docs.sending.ac/errors/auth-insufficient-scope"
}
}

The resource already exists.

Media typeapplication/json
object
error
required
object
code
required

A machine-readable error code.

string
Allowed values: auth.missing_key auth.invalid_key auth.insufficient_scope rate.quota_exceeded validation.required_field validation.invalid_value resource.not_found resource.already_exists resource.not_ready server.error
message
required

A human-readable explanation of the error.

string
doc_url

A link to the documentation page for this error code.

string format: uri
details

For validation errors, a list of individual field-level problems.

Array<object> | null
object
field
required

The field that caused the error, in dot notation.

string
code

A machine-readable code for this specific validation issue.

string
message
required

A human-readable explanation.

string
Example
{
"error": {
"code": "resource.already_exists",
"message": "A user with email jane@acme.com already exists.",
"doc_url": "https://docs.sending.ac/errors/resource-already-exists"
}
}

You have exceeded the rate limit. Wait and retry.

Media typeapplication/json
object
error
required
object
code
required

A machine-readable error code.

string
Allowed values: auth.missing_key auth.invalid_key auth.insufficient_scope rate.quota_exceeded validation.required_field validation.invalid_value resource.not_found resource.already_exists resource.not_ready server.error
message
required

A human-readable explanation of the error.

string
doc_url

A link to the documentation page for this error code.

string format: uri
details

For validation errors, a list of individual field-level problems.

Array<object> | null
object
field
required

The field that caused the error, in dot notation.

string
code

A machine-readable code for this specific validation issue.

string
message
required

A human-readable explanation.

string
Example
{
"error": {
"code": "rate.quota_exceeded",
"message": "Rate limit exceeded. You may make 120 requests per minute. Retry after 30 seconds.",
"doc_url": "https://docs.sending.ac/errors/rate-quota-exceeded"
}
}
Retry-After
integer
Example
30

Number of seconds to wait before retrying.

X-RateLimit-Limit
integer
Example
120

The maximum number of requests allowed per minute.

X-RateLimit-Remaining
integer
Example
0

The number of requests remaining in the current window.

X-RateLimit-Reset
integer
Example
1711267260

Unix timestamp when the rate limit window resets.