{"files":{"SKILL.md":"---\nname: twilio-chat\ndescription: \"Twilio - Chat API skill. Use when working with Twilio - Chat for Services, Credentials. Covers 54 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Twilio - Chat\nAPI version: 1.0.0\n\n## Auth\nBearer basic\n\n## Base URL\nhttps://chat.twilio.com\n\n## Setup\n1. Set Authorization header with Bearer token\n2. GET /v2/Credentials -- verify access\n3. POST /v2/Services/{ServiceSid}/Channels/{Sid} -- create first Channel\n\n## Endpoints\n54 endpoints across 2 groups. See references/api-spec.lap for full details.\n\n### Services\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /v2/Services/{ServiceSid}/Bindings |  |\n| GET | /v2/Services/{ServiceSid}/Bindings/{Sid} |  |\n| DELETE | /v2/Services/{ServiceSid}/Bindings/{Sid} |  |\n| GET | /v2/Services/{ServiceSid}/Channels/{Sid} |  |\n| DELETE | /v2/Services/{ServiceSid}/Channels/{Sid} |  |\n| POST | /v2/Services/{ServiceSid}/Channels/{Sid} |  |\n| POST | /v2/Services/{ServiceSid}/Channels |  |\n| GET | /v2/Services/{ServiceSid}/Channels |  |\n| GET | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks |  |\n| POST | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks |  |\n| GET | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} |  |\n| POST | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} |  |\n| DELETE | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} |  |\n| GET | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} |  |\n| DELETE | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} |  |\n| POST | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites |  |\n| GET | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites |  |\n| GET | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} |  |\n| DELETE | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} |  |\n| POST | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} |  |\n| POST | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members |  |\n| GET | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members |  |\n| GET | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} |  |\n| DELETE | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} |  |\n| POST | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} |  |\n| POST | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages |  |\n| GET | /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages |  |\n| GET | /v2/Services/{ServiceSid}/Roles/{Sid} |  |\n| DELETE | /v2/Services/{ServiceSid}/Roles/{Sid} |  |\n| POST | /v2/Services/{ServiceSid}/Roles/{Sid} |  |\n| POST | /v2/Services/{ServiceSid}/Roles |  |\n| GET | /v2/Services/{ServiceSid}/Roles |  |\n| GET | /v2/Services/{Sid} |  |\n| DELETE | /v2/Services/{Sid} |  |\n| POST | /v2/Services/{Sid} |  |\n| POST | /v2/Services |  |\n| GET | /v2/Services |  |\n| GET | /v2/Services/{ServiceSid}/Users/{Sid} |  |\n| DELETE | /v2/Services/{ServiceSid}/Users/{Sid} |  |\n| POST | /v2/Services/{ServiceSid}/Users/{Sid} |  |\n| POST | /v2/Services/{ServiceSid}/Users |  |\n| GET | /v2/Services/{ServiceSid}/Users |  |\n| GET | /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings |  |\n| GET | /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid} |  |\n| DELETE | /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid} |  |\n| GET | /v2/Services/{ServiceSid}/Users/{UserSid}/Channels | List all Channels for a given User. |\n| GET | /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} |  |\n| DELETE | /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} | Removes User from selected Channel. |\n| POST | /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} |  |\n\n### Credentials\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /v2/Credentials |  |\n| POST | /v2/Credentials |  |\n| GET | /v2/Credentials/{Sid} |  |\n| POST | /v2/Credentials/{Sid} |  |\n| DELETE | /v2/Credentials/{Sid} |  |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all Bindings?\" -> GET /v2/Services/{ServiceSid}/Bindings\n- \"Get Binding details?\" -> GET /v2/Services/{ServiceSid}/Bindings/{Sid}\n- \"Delete a Binding?\" -> DELETE /v2/Services/{ServiceSid}/Bindings/{Sid}\n- \"Get Channel details?\" -> GET /v2/Services/{ServiceSid}/Channels/{Sid}\n- \"Delete a Channel?\" -> DELETE /v2/Services/{ServiceSid}/Channels/{Sid}\n- \"Create a Channel?\" -> POST /v2/Services/{ServiceSid}/Channels\n- \"List all Channels?\" -> GET /v2/Services/{ServiceSid}/Channels\n- \"List all Webhooks?\" -> GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks\n- \"Create a Webhook?\" -> POST /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks\n- \"Get Webhook details?\" -> GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}\n- \"Delete a Webhook?\" -> DELETE /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}\n- \"List all Credentials?\" -> GET /v2/Credentials\n- \"Create a Credential?\" -> POST /v2/Credentials\n- \"Get Credential details?\" -> GET /v2/Credentials/{Sid}\n- \"Delete a Credential?\" -> DELETE /v2/Credentials/{Sid}\n- \"Get Invite details?\" -> GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}\n- \"Delete a Invite?\" -> DELETE /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}\n- \"Create a Invite?\" -> POST /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites\n- \"List all Invites?\" -> GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites\n- \"Get Member details?\" -> GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}\n- \"Delete a Member?\" -> DELETE /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}\n- \"Create a Member?\" -> POST /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members\n- \"List all Members?\" -> GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members\n- \"Get message details?\" -> GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}\n- \"Delete a message?\" -> DELETE /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}\n- \"Create a message?\" -> POST /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages\n- \"List all Messages?\" -> GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages\n- \"Get Role details?\" -> GET /v2/Services/{ServiceSid}/Roles/{Sid}\n- \"Delete a Role?\" -> DELETE /v2/Services/{ServiceSid}/Roles/{Sid}\n- \"Create a Role?\" -> POST /v2/Services/{ServiceSid}/Roles\n- \"List all Roles?\" -> GET /v2/Services/{ServiceSid}/Roles\n- \"Get Service details?\" -> GET /v2/Services/{Sid}\n- \"Delete a Service?\" -> DELETE /v2/Services/{Sid}\n- \"Create a Service?\" -> POST /v2/Services\n- \"List all Services?\" -> GET /v2/Services\n- \"Get User details?\" -> GET /v2/Services/{ServiceSid}/Users/{Sid}\n- \"Delete a User?\" -> DELETE /v2/Services/{ServiceSid}/Users/{Sid}\n- \"Create a User?\" -> POST /v2/Services/{ServiceSid}/Users\n- \"List all Users?\" -> GET /v2/Services/{ServiceSid}/Users\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Paginated endpoints accept limit/offset or cursor parameters\n- Create/update endpoints return the modified resource on success\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Twilio - Chat\n@base https://chat.twilio.com\n@version 1.0.0\n@auth Bearer basic\n@endpoints 54\n@hint download_for_search\n@toc Services(49), Credentials(5)\n\n@group Services\n@endpoint GET /v2/Services/{ServiceSid}/Bindings\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Binding resources from.}\n@optional {BindingType: [str] # The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info., Identity: [str] # The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details., PageSize: int(int64) # How many resources to return in each list page. The default is 50, and the maximum is 50., Page: int # The page index. This value is simply for client state., PageToken: str # The page token. This is provided by the API.}\n@returns(200) {bindings: [map], meta: map{first_page_url: str(uri), key: str, next_page_url: str(uri)?, page: int, page_size: int, previous_page_url: str(uri)?, url: str(uri)}} # OK\n\n@endpoint GET /v2/Services/{ServiceSid}/Bindings/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Binding resource from., Sid: str # The SID of the Binding resource to fetch.}\n@returns(200) {sid: str?, account_sid: str?, service_sid: str?, date_created: str(date-time)?, date_updated: str(date-time)?, endpoint: str?, identity: str?, credential_sid: str?, binding_type: str, message_types: [str]?, url: str(uri)?, links: map?} # OK\n\n@endpoint DELETE /v2/Services/{ServiceSid}/Bindings/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Binding resource from., Sid: str # The SID of the Binding resource to delete.}\n@returns(204) The resource was deleted successfully.\n\n@endpoint GET /v2/Services/{ServiceSid}/Channels/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Channel resource from., Sid: str # The SID of the Channel resource to fetch. This value can be either the `sid` or the `unique_name` of the Channel resource to fetch.}\n@returns(200) {sid: str?, account_sid: str?, service_sid: str?, friendly_name: str?, unique_name: str?, attributes: str?, type: str, date_created: str(date-time)?, date_updated: str(date-time)?, created_by: str?, members_count: int, messages_count: int, url: str(uri)?, links: map?} # OK\n\n@endpoint DELETE /v2/Services/{ServiceSid}/Channels/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from., Sid: str # The SID of the Channel resource to delete.  This value can be either the `sid` or the `unique_name` of the Channel resource to delete.}\n@optional {X-Twilio-Webhook-Enabled: str # The X-Twilio-Webhook-Enabled HTTP request header}\n@returns(204) The resource was deleted successfully.\n\n@endpoint POST /v2/Services/{ServiceSid}/Channels/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Channel resource in., Sid: str # The SID of the Channel resource to update. This value can be either the `sid` or the `unique_name` of the Channel resource to update.}\n@optional {X-Twilio-Webhook-Enabled: str # The X-Twilio-Webhook-Enabled HTTP request header}\n@returns(200) {sid: str?, account_sid: str?, service_sid: str?, friendly_name: str?, unique_name: str?, attributes: str?, type: str, date_created: str(date-time)?, date_updated: str(date-time)?, created_by: str?, members_count: int, messages_count: int, url: str(uri)?, links: map?} # OK\n\n@endpoint POST /v2/Services/{ServiceSid}/Channels\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Channel resource under.}\n@optional {X-Twilio-Webhook-Enabled: str # The X-Twilio-Webhook-Enabled HTTP request header}\n@returns(201) {sid: str?, account_sid: str?, service_sid: str?, friendly_name: str?, unique_name: str?, attributes: str?, type: str, date_created: str(date-time)?, date_updated: str(date-time)?, created_by: str?, members_count: int, messages_count: int, url: str(uri)?, links: map?} # Created\n\n@endpoint GET /v2/Services/{ServiceSid}/Channels\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Channel resources from.}\n@optional {Type: [str] # The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`., PageSize: int(int64) # How many resources to return in each list page. The default is 50, and the maximum is 100., Page: int # The page index. This value is simply for client state., PageToken: str # The page token. This is provided by the API.}\n@returns(200) {channels: [map], meta: map{first_page_url: str(uri), key: str, next_page_url: str(uri)?, page: int, page_size: int, previous_page_url: str(uri)?, url: str(uri)}} # OK\n\n@endpoint GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to read the resources from., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`.}\n@optional {PageSize: int(int64) # How many resources to return in each list page. The default is 5, and the maximum is 5., Page: int # The page index. This value is simply for client state., PageToken: str # The page token. This is provided by the API.}\n@returns(200) {webhooks: [map], meta: map{first_page_url: str(uri), key: str, next_page_url: str(uri)?, page: int, page_size: int, previous_page_url: str(uri)?, url: str(uri)}} # OK\n\n@endpoint POST /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to create the Webhook resource under., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Channel Webhook resource belongs to. This value can be the Channel resource's `sid` or `unique_name`.}\n@returns(201) {sid: str?, account_sid: str?, service_sid: str?, channel_sid: str?, type: str?, url: str(uri)?, configuration: any?, date_created: str(date-time)?, date_updated: str(date-time)?} # Created\n\n@endpoint GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to fetch the Webhook resource from., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`., Sid: str # The SID of the Channel Webhook resource to fetch.}\n@returns(200) {sid: str?, account_sid: str?, service_sid: str?, channel_sid: str?, type: str?, url: str(uri)?, configuration: any?, date_created: str(date-time)?, date_updated: str(date-time)?} # OK\n\n@endpoint POST /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel that has the Webhook resource to update., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`., Sid: str # The SID of the Channel Webhook resource to update.}\n@returns(200) {sid: str?, account_sid: str?, service_sid: str?, channel_sid: str?, type: str?, url: str(uri)?, configuration: any?, date_created: str(date-time)?, date_updated: str(date-time)?} # OK\n\n@endpoint DELETE /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to delete the Webhook resource from., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`., Sid: str # The SID of the Channel Webhook resource to delete.}\n@returns(204) The resource was deleted successfully.\n\n@endgroup\n\n@group Credentials\n@endpoint GET /v2/Credentials\n@optional {PageSize: int(int64) # How many resources to return in each list page. The default is 50, and the maximum is 1000., Page: int # The page index. This value is simply for client state., PageToken: str # The page token. This is provided by the API.}\n@returns(200) {credentials: [map], meta: map{first_page_url: str(uri), key: str, next_page_url: str(uri)?, page: int, page_size: int, previous_page_url: str(uri)?, url: str(uri)}} # OK\n\n@endpoint POST /v2/Credentials\n@returns(201) {sid: str?, account_sid: str?, friendly_name: str?, type: str, sandbox: str?, date_created: str(date-time)?, date_updated: str(date-time)?, url: str(uri)?} # Created\n\n@endpoint GET /v2/Credentials/{Sid}\n@required {Sid: str # The SID of the Credential resource to fetch.}\n@returns(200) {sid: str?, account_sid: str?, friendly_name: str?, type: str, sandbox: str?, date_created: str(date-time)?, date_updated: str(date-time)?, url: str(uri)?} # OK\n\n@endpoint POST /v2/Credentials/{Sid}\n@required {Sid: str # The SID of the Credential resource to update.}\n@returns(200) {sid: str?, account_sid: str?, friendly_name: str?, type: str, sandbox: str?, date_created: str(date-time)?, date_updated: str(date-time)?, url: str(uri)?} # OK\n\n@endpoint DELETE /v2/Credentials/{Sid}\n@required {Sid: str # The SID of the Credential resource to delete.}\n@returns(204) The resource was deleted successfully.\n\n@endgroup\n\n@group Services\n@endpoint GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Invite resource from., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`., Sid: str # The SID of the Invite resource to fetch.}\n@returns(200) {sid: str?, account_sid: str?, channel_sid: str?, service_sid: str?, identity: str?, date_created: str(date-time)?, date_updated: str(date-time)?, role_sid: str?, created_by: str?, url: str(uri)?} # OK\n\n@endpoint DELETE /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Invite resource from., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`., Sid: str # The SID of the Invite resource to delete.}\n@returns(204) The resource was deleted successfully.\n\n@endpoint POST /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Invite resource under., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Invite resource belongs to. This value can be the Channel resource's `sid` or `unique_name`.}\n@returns(201) {sid: str?, account_sid: str?, channel_sid: str?, service_sid: str?, identity: str?, date_created: str(date-time)?, date_updated: str(date-time)?, role_sid: str?, created_by: str?, url: str(uri)?} # Created\n\n@endpoint GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Invite resources from., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`.}\n@optional {Identity: [str] # The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details., PageSize: int(int64) # How many resources to return in each list page. The default is 50, and the maximum is 100., Page: int # The page index. This value is simply for client state., PageToken: str # The page token. This is provided by the API.}\n@returns(200) {invites: [map], meta: map{first_page_url: str(uri), key: str, next_page_url: str(uri)?, page: int, page_size: int, previous_page_url: str(uri)?, url: str(uri)}} # OK\n\n@endpoint GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Member resource from., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`., Sid: str # The SID of the Member resource to fetch. This value can be either the Member's `sid` or its `identity` value.}\n@returns(200) {sid: str?, account_sid: str?, channel_sid: str?, service_sid: str?, identity: str?, date_created: str(date-time)?, date_updated: str(date-time)?, role_sid: str?, last_consumed_message_index: int?, last_consumption_timestamp: str(date-time)?, url: str(uri)?, attributes: str?} # OK\n\n@endpoint DELETE /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Member resource from., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`., Sid: str # The SID of the Member resource to delete. This value can be either the Member's `sid` or its `identity` value.}\n@optional {X-Twilio-Webhook-Enabled: str # The X-Twilio-Webhook-Enabled HTTP request header}\n@returns(204) The resource was deleted successfully.\n\n@endpoint POST /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Member resource in., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`., Sid: str # The SID of the Member resource to update. This value can be either the Member's `sid` or its `identity` value.}\n@optional {X-Twilio-Webhook-Enabled: str # The X-Twilio-Webhook-Enabled HTTP request header}\n@returns(200) {sid: str?, account_sid: str?, channel_sid: str?, service_sid: str?, identity: str?, date_created: str(date-time)?, date_updated: str(date-time)?, role_sid: str?, last_consumed_message_index: int?, last_consumption_timestamp: str(date-time)?, url: str(uri)?, attributes: str?} # OK\n\n@endpoint POST /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Member resource under., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Member resource belongs to. This value can be the Channel resource's `sid` or `unique_name`.}\n@optional {X-Twilio-Webhook-Enabled: str # The X-Twilio-Webhook-Enabled HTTP request header}\n@returns(201) {sid: str?, account_sid: str?, channel_sid: str?, service_sid: str?, identity: str?, date_created: str(date-time)?, date_updated: str(date-time)?, role_sid: str?, last_consumed_message_index: int?, last_consumption_timestamp: str(date-time)?, url: str(uri)?, attributes: str?} # Created\n\n@endpoint GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Member resources from., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`.}\n@optional {Identity: [str] # The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details., PageSize: int(int64) # How many resources to return in each list page. The default is 50, and the maximum is 100., Page: int # The page index. This value is simply for client state., PageToken: str # The page token. This is provided by the API.}\n@returns(200) {members: [map], meta: map{first_page_url: str(uri), key: str, next_page_url: str(uri)?, page: int, page_size: int, previous_page_url: str(uri)?, url: str(uri)}} # OK\n\n@endpoint GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Message resource from., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`., Sid: str # The SID of the Message resource to fetch.}\n@returns(200) {sid: str?, account_sid: str?, attributes: str?, service_sid: str?, to: str?, channel_sid: str?, date_created: str(date-time)?, date_updated: str(date-time)?, last_updated_by: str?, was_edited: bool?, from: str?, body: str?, index: int, type: str?, media: any?, url: str(uri)?} # OK\n\n@endpoint DELETE /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Message resource from., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`., Sid: str # The SID of the Message resource to delete.}\n@optional {X-Twilio-Webhook-Enabled: str # The X-Twilio-Webhook-Enabled HTTP request header}\n@returns(204) The resource was deleted successfully.\n\n@endpoint POST /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Message resource in., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`., Sid: str # The SID of the Message resource to update.}\n@optional {X-Twilio-Webhook-Enabled: str # The X-Twilio-Webhook-Enabled HTTP request header}\n@returns(200) {sid: str?, account_sid: str?, attributes: str?, service_sid: str?, to: str?, channel_sid: str?, date_created: str(date-time)?, date_updated: str(date-time)?, last_updated_by: str?, was_edited: bool?, from: str?, body: str?, index: int, type: str?, media: any?, url: str(uri)?} # OK\n\n@endpoint POST /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Message resource under., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Message resource belongs to. This value can be the Channel resource's `sid` or `unique_name`.}\n@optional {X-Twilio-Webhook-Enabled: str # The X-Twilio-Webhook-Enabled HTTP request header}\n@returns(201) {sid: str?, account_sid: str?, attributes: str?, service_sid: str?, to: str?, channel_sid: str?, date_created: str(date-time)?, date_updated: str(date-time)?, last_updated_by: str?, was_edited: bool?, from: str?, body: str?, index: int, type: str?, media: any?, url: str(uri)?} # Created\n\n@endpoint GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Message resources from., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to read belongs to. This value can be the Channel resource's `sid` or `unique_name`.}\n@optional {Order: str # The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default., PageSize: int(int64) # How many resources to return in each list page. The default is 50, and the maximum is 100., Page: int # The page index. This value is simply for client state., PageToken: str # The page token. This is provided by the API.}\n@returns(200) {messages: [map], meta: map{first_page_url: str(uri), key: str, next_page_url: str(uri)?, page: int, page_size: int, previous_page_url: str(uri)?, url: str(uri)}} # OK\n\n@endpoint GET /v2/Services/{ServiceSid}/Roles/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Role resource from., Sid: str # The SID of the Role resource to fetch.}\n@returns(200) {sid: str?, account_sid: str?, service_sid: str?, friendly_name: str?, type: str, permissions: [str]?, date_created: str(date-time)?, date_updated: str(date-time)?, url: str(uri)?} # OK\n\n@endpoint DELETE /v2/Services/{ServiceSid}/Roles/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Role resource from., Sid: str # The SID of the Role resource to delete.}\n@returns(204) The resource was deleted successfully.\n\n@endpoint POST /v2/Services/{ServiceSid}/Roles/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Role resource in., Sid: str # The SID of the Role resource to update.}\n@returns(200) {sid: str?, account_sid: str?, service_sid: str?, friendly_name: str?, type: str, permissions: [str]?, date_created: str(date-time)?, date_updated: str(date-time)?, url: str(uri)?} # OK\n\n@endpoint POST /v2/Services/{ServiceSid}/Roles\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Role resource under.}\n@returns(201) {sid: str?, account_sid: str?, service_sid: str?, friendly_name: str?, type: str, permissions: [str]?, date_created: str(date-time)?, date_updated: str(date-time)?, url: str(uri)?} # Created\n\n@endpoint GET /v2/Services/{ServiceSid}/Roles\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Role resources from.}\n@optional {PageSize: int(int64) # How many resources to return in each list page. The default is 50, and the maximum is 100., Page: int # The page index. This value is simply for client state., PageToken: str # The page token. This is provided by the API.}\n@returns(200) {roles: [map], meta: map{first_page_url: str(uri), key: str, next_page_url: str(uri)?, page: int, page_size: int, previous_page_url: str(uri)?, url: str(uri)}} # OK\n\n@endpoint GET /v2/Services/{Sid}\n@required {Sid: str # The SID of the Service resource to fetch.}\n@returns(200) {sid: str?, account_sid: str?, friendly_name: str?, date_created: str(date-time)?, date_updated: str(date-time)?, default_service_role_sid: str?, default_channel_role_sid: str?, default_channel_creator_role_sid: str?, read_status_enabled: bool?, reachability_enabled: bool?, typing_indicator_timeout: int, consumption_report_interval: int, limits: any?, pre_webhook_url: str?, post_webhook_url: str?, webhook_method: str?, webhook_filters: [str]?, pre_webhook_retry_count: int, post_webhook_retry_count: int, notifications: any?, media: any?, url: str(uri)?, links: map?} # OK\n\n@endpoint DELETE /v2/Services/{Sid}\n@required {Sid: str # The SID of the Service resource to delete.}\n@returns(204) The resource was deleted successfully.\n\n@endpoint POST /v2/Services/{Sid}\n@required {Sid: str # The SID of the Service resource to update.}\n@returns(200) {sid: str?, account_sid: str?, friendly_name: str?, date_created: str(date-time)?, date_updated: str(date-time)?, default_service_role_sid: str?, default_channel_role_sid: str?, default_channel_creator_role_sid: str?, read_status_enabled: bool?, reachability_enabled: bool?, typing_indicator_timeout: int, consumption_report_interval: int, limits: any?, pre_webhook_url: str?, post_webhook_url: str?, webhook_method: str?, webhook_filters: [str]?, pre_webhook_retry_count: int, post_webhook_retry_count: int, notifications: any?, media: any?, url: str(uri)?, links: map?} # OK\n\n@endpoint POST /v2/Services\n@returns(201) {sid: str?, account_sid: str?, friendly_name: str?, date_created: str(date-time)?, date_updated: str(date-time)?, default_service_role_sid: str?, default_channel_role_sid: str?, default_channel_creator_role_sid: str?, read_status_enabled: bool?, reachability_enabled: bool?, typing_indicator_timeout: int, consumption_report_interval: int, limits: any?, pre_webhook_url: str?, post_webhook_url: str?, webhook_method: str?, webhook_filters: [str]?, pre_webhook_retry_count: int, post_webhook_retry_count: int, notifications: any?, media: any?, url: str(uri)?, links: map?} # Created\n\n@endpoint GET /v2/Services\n@optional {PageSize: int(int64) # How many resources to return in each list page. The default is 50, and the maximum is 100., Page: int # The page index. This value is simply for client state., PageToken: str # The page token. This is provided by the API.}\n@returns(200) {services: [map], meta: map{first_page_url: str(uri), key: str, next_page_url: str(uri)?, page: int, page_size: int, previous_page_url: str(uri)?, url: str(uri)}} # OK\n\n@endpoint GET /v2/Services/{ServiceSid}/Users/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User resource from., Sid: str # The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch.}\n@returns(200) {sid: str?, account_sid: str?, service_sid: str?, attributes: str?, friendly_name: str?, role_sid: str?, identity: str?, is_online: bool?, is_notifiable: bool?, date_created: str(date-time)?, date_updated: str(date-time)?, joined_channels_count: int, links: map?, url: str(uri)?} # OK\n\n@endpoint DELETE /v2/Services/{ServiceSid}/Users/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the User resource from., Sid: str # The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete.}\n@returns(204) The resource was deleted successfully.\n\n@endpoint POST /v2/Services/{ServiceSid}/Users/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User resource in., Sid: str # The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update.}\n@optional {X-Twilio-Webhook-Enabled: str # The X-Twilio-Webhook-Enabled HTTP request header}\n@returns(200) {sid: str?, account_sid: str?, service_sid: str?, attributes: str?, friendly_name: str?, role_sid: str?, identity: str?, is_online: bool?, is_notifiable: bool?, date_created: str(date-time)?, date_updated: str(date-time)?, joined_channels_count: int, links: map?, url: str(uri)?} # OK\n\n@endpoint POST /v2/Services/{ServiceSid}/Users\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the User resource under.}\n@optional {X-Twilio-Webhook-Enabled: str # The X-Twilio-Webhook-Enabled HTTP request header}\n@returns(201) {sid: str?, account_sid: str?, service_sid: str?, attributes: str?, friendly_name: str?, role_sid: str?, identity: str?, is_online: bool?, is_notifiable: bool?, date_created: str(date-time)?, date_updated: str(date-time)?, joined_channels_count: int, links: map?, url: str(uri)?} # Created\n\n@endpoint GET /v2/Services/{ServiceSid}/Users\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User resources from.}\n@optional {PageSize: int(int64) # How many resources to return in each list page. The default is 50, and the maximum is 100., Page: int # The page index. This value is simply for client state., PageToken: str # The page token. This is provided by the API.}\n@returns(200) {users: [map], meta: map{first_page_url: str(uri), key: str, next_page_url: str(uri)?, page: int, page_size: int, previous_page_url: str(uri)?, url: str(uri)}} # OK\n\n@endpoint GET /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Binding resources from., UserSid: str # The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to read.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.}\n@optional {BindingType: [str] # The push technology used by the User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info., PageSize: int(int64) # How many resources to return in each list page. The default is 50, and the maximum is 50., Page: int # The page index. This value is simply for client state., PageToken: str # The page token. This is provided by the API.}\n@returns(200) {bindings: [map], meta: map{first_page_url: str(uri), key: str, next_page_url: str(uri)?, page: int, page_size: int, previous_page_url: str(uri)?, url: str(uri)}} # OK\n\n@endpoint GET /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Binding resource from., UserSid: str # The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resource to fetch.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info., Sid: str # The SID of the User Binding resource to fetch.}\n@returns(200) {sid: str?, account_sid: str?, service_sid: str?, date_created: str(date-time)?, date_updated: str(date-time)?, endpoint: str?, identity: str?, user_sid: str?, credential_sid: str?, binding_type: str, message_types: [str]?, url: str(uri)?} # OK\n\n@endpoint DELETE /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the User Binding resource from., UserSid: str # The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to delete.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info., Sid: str # The SID of the User Binding resource to delete.}\n@returns(204) The resource was deleted successfully.\n\n@endpoint GET /v2/Services/{ServiceSid}/Users/{UserSid}/Channels\n@desc List all Channels for a given User.\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Channel resources from., UserSid: str # The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to read the User Channel resources from. This value can be either the `sid` or the `identity` of the User resource.}\n@optional {PageSize: int(int64) # How many resources to return in each list page. The default is 50, and the maximum is 50., Page: int # The page index. This value is simply for client state., PageToken: str # The page token. This is provided by the API.}\n@returns(200) {channels: [map], meta: map{first_page_url: str(uri), key: str, next_page_url: str(uri)?, page: int, page_size: int, previous_page_url: str(uri)?, url: str(uri)}} # OK\n\n@endpoint GET /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Channel resource from., UserSid: str # The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to fetch the User Channel resource from. This value can be either the `sid` or the `identity` of the User resource., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel to fetch. This value can be either the `sid` or the `unique_name` of the Channel to fetch.}\n@returns(200) {account_sid: str?, service_sid: str?, channel_sid: str?, user_sid: str?, member_sid: str?, status: str, last_consumed_message_index: int?, unread_messages_count: int?, links: map?, url: str(uri)?, notification_level: str} # OK\n\n@endpoint DELETE /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}\n@desc Removes User from selected Channel.\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from., UserSid: str # The SID of the [User](https://www.twilio.com/docs/api/chat/rest/users) to read the User Channel resources from., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource belongs to.}\n@optional {X-Twilio-Webhook-Enabled: str # The X-Twilio-Webhook-Enabled HTTP request header}\n@returns(204) The resource was deleted successfully.\n\n@endpoint POST /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}\n@required {ServiceSid: str # The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User Channel resource in., UserSid: str # The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to update the User Channel resource from. This value can be either the `sid` or the `identity` of the User resource., ChannelSid: str # The SID of the [Channel](https://www.twilio.com/docs/chat/channels) with the User Channel resource to update. This value can be the Channel resource's `sid` or `unique_name`.}\n@returns(200) {account_sid: str?, service_sid: str?, channel_sid: str?, user_sid: str?, member_sid: str?, status: str, last_consumed_message_index: int?, unread_messages_count: int?, links: map?, url: str(uri)?, notification_level: str} # OK\n\n@endgroup\n\n@end\n"}}