For the complete documentation index, see llms.txt. This page is also available as Markdown.

Destination management API

Set the outbound SMS destination policy for a workspace.

Control which countries can receive SMS at the workspace level by allowing or blocking destinations. Destinations are ISO 3166-1 alpha-2 country codes.

Endpoints

Get a destination management configuration for a given workspace/capability.

get
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token

Path parameters
workspaceIdstring · uuidRequired

The unique identifier of the workspace.

capabilityNamestringRequired
Responses
200

Could get the destination management config successfully

application/json
organizationIdstring · uuidRequired
workspaceIdstring · uuidRequired
capabilityNamestringRequired
createdAtstring · date-timeRequired
updatedAtstring · date-timeRequired
get/workspaces/{workspaceId}/destination-management/capability/{capabilityName}

Response:

Allow destinations

Adds a list of allowed countries to a destination management configuration for a given workspace/capability.

post
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token

Path parameters
workspaceIdstring · uuidRequired

The unique identifier of the workspace.

capabilityNamestringRequired
Body
destinationsstring · iso3166-1[]Required
Responses
200

Updated

application/json
organizationIdstring · uuidRequired
workspaceIdstring · uuidRequired
capabilityNamestringRequired
createdAtstring · date-timeRequired
updatedAtstring · date-timeRequired
post/workspaces/{workspaceId}/destination-management/capability/{capabilityName}/allow

Notes:

  • destinations is an array of country codes

  • This will add specific destinations

  • Destinations are ISO 3166-1 alpha-2 country codes.

Request body:

Response (full config):

Block destinations

Adds a list of blocked countries to a destination management configuration for a given workspace/capability.

post
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token

Path parameters
workspaceIdstring · uuidRequired

The unique identifier of the workspace.

capabilityNamestringRequired
Body
destinationsstring · iso3166-1[]Required
Responses
200

Updated

application/json
messagestringRequired
post/workspaces/{workspaceId}/destination-management/capability/{capabilityName}/block

Notes:

  • destinations is an array of country codes

  • This will remove specific destinations

  • Destinations are ISO 3166-1 alpha-2 country codes.

Request body:

Response:

Upsert config

Upsert a destination management configuration for a given workspace/capability.

put
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token

Path parameters
workspaceIdstring · uuidRequired

The unique identifier of the workspace.

capabilityNamestringRequired
Body
Responses
200

Created or updated

application/json
organizationIdstring · uuidRequired
workspaceIdstring · uuidRequired
capabilityNamestringRequired
createdAtstring · date-timeRequired
updatedAtstring · date-timeRequired
put/workspaces/{workspaceId}/destination-management/capability/{capabilityName}

Notes:

  • destinations is a map of country code → status (allowed or blocked).

  • This will fully overwrite your existing config

  • Any destination not present in the map is treated as blocked.

  • Destinations are ISO 3166-1 alpha-2 country codes.

Request body:

Last updated

Was this helpful?