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 (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstring · uuidRequired

The ID for the workspace.

Example: d386a801-ee8d-4aba-a7e4-78671bd3b11e
capabilityNamestringRequired
Responses
chevron-right
200

Could get the destination management config successfully

application/json
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 (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstring · uuidRequired

The ID for the workspace.

Example: d386a801-ee8d-4aba-a7e4-78671bd3b11e
capabilityNamestringRequired
Body
destinationsstring · iso3166-1[]Required
Responses
chevron-right
200

Updated

application/json
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 (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstring · uuidRequired

The ID for the workspace.

Example: d386a801-ee8d-4aba-a7e4-78671bd3b11e
capabilityNamestringRequired
Body
destinationsstring · iso3166-1[]Required
Responses
chevron-right
200

Updated

application/json
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 (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstring · uuidRequired

The ID for the workspace.

Example: d386a801-ee8d-4aba-a7e4-78671bd3b11e
capabilityNamestringRequired
Body
Responses
chevron-right
200

Created or updated

application/json
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?