A Service-scoped Conversation is a unique thread of a conversation that is scoped or limited to a specific, non-default Conversation Service.
Please see the Conversation Resource for Conversations within the default Conversation Service instance.
All URLs in the reference documentation use the following base URL:
_10https://conversations.twilio.com/v1
For Conversations applications that build on more than one Conversation Service instance, you will need to specify the Conversation Service SID in the REST API call:
_10GET /v1/Services/ISxx/Conversations/CHxx/Messages
account_sid
type: SID<AC>The unique ID of the Account responsible for this conversation.
^AC[0-9a-fA-F]{32}$
34
34
chat_service_sid
type: SID<IS>The unique ID of the Conversation Service this conversation belongs to.
^IS[0-9a-fA-F]{32}$
34
34
messaging_service_sid
type: SID<MG>The unique ID of the Messaging Service this conversation belongs to.
^MG[0-9a-fA-F]{32}$
34
34
sid
type: SID<CH>A 34 character string that uniquely identifies this resource.
^CH[0-9a-fA-F]{32}$
34
34
friendly_name
type: stringThe human-readable name of this conversation, limited to 256 characters. Optional.
unique_name
type: stringAn application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's sid
in the URL.
attributes
type: stringAn optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. Note that if the attributes are not set "{}" will be returned.
state
type: enum<string>Current state of this conversation. Can be either active
, inactive
or closed
and defaults to active
inactive
active
closed
links
type: object<uri-map>Contains absolute URLs to access the participants, messages and webhooks of this conversation.
bindings
type: nullPOST https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Conversations
X-Twilio-Webhook-Enabled
type: enum<string>The X-Twilio-Webhook-Enabled HTTP request header
true
false
ChatServiceSid
type: SID<IS>The SID of the Conversation Service the Conversation resource is associated with.
^IS[0-9a-fA-F]{32}$
34
34
FriendlyName
type: stringThe human-readable name of this conversation, limited to 256 characters. Optional.
UniqueName
type: stringAn application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's sid
in the URL.
Attributes
type: stringAn optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. Note that if the attributes are not set "{}" will be returned.
MessagingServiceSid
type: SID<MG>The unique ID of the Messaging Service this conversation belongs to.
^MG[0-9a-fA-F]{32}$
34
34
State
type: enum<string>Current state of this conversation. Can be either active
, inactive
or closed
and defaults to active
inactive
active
closed
Timers.Inactive
type: stringISO8601 duration when conversation will be switched to inactive
state. Minimum value for this timer is 1 minute.
Timers.Closed
type: stringISO8601 duration when conversation will be switched to closed
state. Minimum value for this timer is 10 minutes.
Bindings.Email.Address
type: stringThe default email address that will be used when sending outbound emails in this conversation.
Bindings.Email.Name
type: stringThe default name that will be used when sending outbound emails in this conversation.
GET https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Conversations/{Sid}
ChatServiceSid
type: SID<IS>The SID of the Conversation Service the Conversation resource is associated with.
^IS[0-9a-fA-F]{32}$
34
34
Sid
type: stringA 34 character string that uniquely identifies this resource. Can also be the unique_name
of the Conversation.
GET https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Conversations
ChatServiceSid
type: SID<IS>The SID of the Conversation Service the Conversation resource is associated with.
^IS[0-9a-fA-F]{32}$
34
34
StartDate
type: stringSpecifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
EndDate
type: stringDefines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
State
type: enum<string>State for sorting and filtering list of Conversations. Can be active
, inactive
or closed
inactive
active
closed
PageSize
type: integerHow many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Page
type: integerThe page index. This value is simply for client state.
0
POST https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Conversations/{Sid}
X-Twilio-Webhook-Enabled
type: enum<string>The X-Twilio-Webhook-Enabled HTTP request header
true
false
ChatServiceSid
type: SID<IS>The SID of the Conversation Service the Conversation resource is associated with.
^IS[0-9a-fA-F]{32}$
34
34
Sid
type: stringA 34 character string that uniquely identifies this resource. Can also be the unique_name
of the Conversation.
FriendlyName
type: stringThe human-readable name of this conversation, limited to 256 characters. Optional.
Attributes
type: stringAn optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. Note that if the attributes are not set "{}" will be returned.
MessagingServiceSid
type: SID<MG>The unique ID of the Messaging Service this conversation belongs to.
^MG[0-9a-fA-F]{32}$
34
34
State
type: enum<string>Current state of this conversation. Can be either active
, inactive
or closed
and defaults to active
inactive
active
closed
Timers.Inactive
type: stringISO8601 duration when conversation will be switched to inactive
state. Minimum value for this timer is 1 minute.
Timers.Closed
type: stringISO8601 duration when conversation will be switched to closed
state. Minimum value for this timer is 10 minutes.
UniqueName
type: stringAn application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's sid
in the URL.
Bindings.Email.Address
type: stringThe default email address that will be used when sending outbound emails in this conversation.
Bindings.Email.Name
type: stringThe default name that will be used when sending outbound emails in this conversation.
DELETE https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Conversations/{Sid}
X-Twilio-Webhook-Enabled
type: enum<string>The X-Twilio-Webhook-Enabled HTTP request header
true
false
ChatServiceSid
type: SID<IS>The SID of the Conversation Service the Conversation resource is associated with.
^IS[0-9a-fA-F]{32}$
34
34
Sid
type: stringA 34 character string that uniquely identifies this resource. Can also be the unique_name
of the Conversation.