Messaging Services API
Messaging Services endpoints exposed by the Devotel CPaaS API Base path:/api/v1/messaging
Endpoint count: 14
Get messaging data residency
GET /api/v1/messaging/data-residencyPUT /v1/compliance/data-residency.
List messaging services
GET /api/v1/messaging/services/v1/messages. Use it to populate a service picker or reconcile your configuration. Returns up to 500 services; an empty array means none are configured yet.
Get messaging service
GET /api/v1/messaging/services/{id}string
required
—
List messaging service phone numbers
GET /api/v1/messaging/services/{id}/phone-numbersstring
required
—
Get messaging service throughput cap
GET /api/v1/messaging/services/{id}/throughputmps_cap is null when the service is uncapped (inherits only the tenant/provider limits). Use it to hydrate the throughput slider before an operator raises or clears the cap. Returns 404 when the id is not a messaging service in this tenant.
string
required
—
Get messaging service throughput stats
GET /api/v1/messaging/services/{id}/throughput-statsstring
required
—
Look up messaging service by external id
GET /api/v1/messaging/services/lookupMGxxx) or any opaque vendor id you stored on the service — and return the matching Orbit resource with its full configuration. Pass the id as the external_id query parameter. Used by the Twilio migrator import flow and the dashboard’s “I came from Twilio” wizard to map a foreign id onto the Orbit resource. Returns 404 when no service in this tenant carries that external id, so the caller can branch into a create-new flow without parsing a 200 body.
Get account messaging throughput stats
GET /api/v1/messaging/services/throughput-statsservices array when no messaging services are configured yet.
Create messaging service
POST /api/v1/messaging/services/v1/messages resolves once at send time to copy sender pool, opt-out list, inbound webhook, sending flags and throughput cap onto the message. Only label is required; attach a sender_pool_id (or per-country country_sender_pools), an opt_out_list_id, inbound/fallback/status-callback URLs, an mps_cap, and an external_id (Twilio MGxxx) so the migrator can reconcile an imported service. Use it when standing up a new sending profile. Owner / admin only; a duplicate external_id returns 409.
string
Human-readable name (1–200 chars, required).
string
Default sender pool the send path resolves
from through.string
—
string
—
string (enum: POST|GET)
—
integer
Optional throughput cap (messages/sec).
string
Twilio MGxxx / opaque vendor id for migrator import.
Attach phone number to messaging service
POST /api/v1/messaging/services/{id}/phone-numbers{ phone_number_id }. Owner / admin only; returns 404 when the service or number is not found in this tenant.
string
required
—
string
Id of a tenant-owned, SMS-capable DID to attach (required).
Update messaging service
PATCH /api/v1/messaging/services/{id}sender_pool_id, opt_out_list_id, the webhook URLs, validity_period_seconds, mps_cap, external_id) accept null to clear them; pass country_sender_pools: {} to remove all per-country overrides. Changes bust the per-service send cache so the next send reads them within seconds. Owner / admin only; returns 404 when the id is not a messaging service in this tenant.
string
required
—
string
—
string | null
—
string | null
—
integer | null
—
boolean
—
Update messaging service throughput cap
PATCH /api/v1/messaging/services/{id}/throughputmps_cap to throttle sends that reference this service through the shared token-bucket limiter; send null to remove the cap and inherit only the tenant/provider limits. Use it to protect downstream carriers or a bursty campaign from starving the tenant pool. Owner / admin only; returns 404 when the id is not a messaging service in this tenant.
string
required
—
integer | null
Messages-per-second cap (1–1000), or null to clear the cap.
Delete messaging service
DELETE /api/v1/messaging/services/{id}/v1/messages calls referencing the id fail to resolve immediately; messages already sent are unaffected. Use it to retire a sending profile you no longer need. Owner / admin only; returns 404 when the id is not a messaging service in this tenant and 204 No Content on success.
string
required
—
Detach phone number from messaging service
DELETE /api/v1/messaging/services/{id}/phone-numbers/{numberId}string
required
—
string
required
—