Use Cases & Bindings
List channel use cases for voice, SMS, iMessage, and email, and bind each use case to the platform service that handles its conversations.
Endpoints
Create a Use Case
POST /v1/use-case
Authorization: Bearer <oauth2_access_token>
Content-Type: application/jsonList Use Cases
List use cases with optional filters by entity_name, channel, setup_id. Requires Channel.view permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
Insufficient permissions.
Validation Error
Delete a Use Case
Ownership
Service Binding
Bind a Service
Bind this use case to a platform service in the current workspace. PUT semantics — rebinding to a different service replaces the prior binding. Inbound webhook events for the use case will resolve to this workspace; outbound dispatch from the service will route through this use case for its channel. 409 if a different use case already binds the same (service, channel) pair. 404 if the service or use case is missing or belongs to another workspace. Requires Channel.create permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
Insufficient permissions.
Use case or service not found.
Service already has a different use case bound for this channel.
Unsupported use case channel.
Channel manager unavailable.
Channel manager timed out.
Unbind a Service
Release a use case from its bound service in this workspace. Soft-delete on the binding row. 404 if the use case is not currently bound (covers both 'never bound' and 'already unbound'). Requires Channel.delete permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
No content
Insufficient permissions.
Use case is not bound to a service in this workspace.
Validation Error
No content
Get the Service Binding
Return the platform service this use case is bound to in this workspace, or 404 if unbound. Requires Channel.view permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
Insufficient permissions.
Use case is not bound to a service in this workspace.
Validation Error
Last updated
Was this helpful?

