openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 93.7 kB
JSON
{"openapi":"3.0.1","servers":[{"url":"https://chat.twilio.com"}],"info":{"contact":{"email":"support@twilio.com","name":"Twilio Support","url":"https://support.twilio.com"},"description":"This is the public Twilio REST API.","license":{"name":"Apache 2.0","url":"https://www.apache.org/licenses/LICENSE-2.0.html"},"termsOfService":"https://www.twilio.com/legal/tos","title":"Twilio - Chat","version":"1.55.0","x-apisguru-categories":["telecom","messaging"],"x-logo":{"url":"https://static1.twilio.com/marketing/bundles/marketing/img/logos/wordmark-red.svg"},"x-origin":[{"format":"openapi","url":"https://raw.githubusercontent.com/twilio/twilio-oai/main/spec/json/twilio_chat_v1.json","version":"3.0"}],"x-providerName":"twilio.com","x-serviceName":"twilio_chat_v1"},"tags":[{"name":"ChatV1Channel"},{"name":"ChatV1Credential"},{"name":"ChatV1Invite"},{"name":"ChatV1Member"},{"name":"ChatV1Message"},{"name":"ChatV1Role"},{"name":"ChatV1Service"},{"name":"ChatV1User"},{"name":"ChatV1UserChannel"}],"paths":{"/v1/Credentials":{"description":"Credentials for push notifications channels","get":{"description":"","operationId":"ListCredential","parameters":[{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"credentials":{"items":{"$ref":"#/components/schemas/chat.v1.credential"},"type":"array"},"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}},"title":"ListCredentialResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Credential"],"x-maturity":["GA"]},"post":{"description":"","operationId":"CreateCredential","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"ApiKey":{"description":"[GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential.","type":"string"},"Certificate":{"description":"[APN only] The URL encoded representation of the certificate. For example, \n`-----BEGIN CERTIFICATE-----\nMIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==\n-----END CERTIFICATE-----`","type":"string"},"FriendlyName":{"description":"A descriptive string that you create to describe the new resource. It can be up to 64 characters long.","type":"string"},"PrivateKey":{"description":"[APN only] The URL encoded representation of the private key. For example,\n`-----BEGIN RSA PRIVATE KEY-----\nMIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.\n-----END RSA PRIVATE KEY-----`","type":"string"},"Sandbox":{"description":"[APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production.","type":"boolean"},"Secret":{"description":"[FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging.","type":"string"},"Type":{"$ref":"#/components/schemas/credential_enum_push_service","description":"The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`.","type":"string"}},"required":["Type"],"title":"CreateCredentialRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.credential"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Credential"],"x-maturity":["GA"]},"servers":[{"url":"https://chat.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","friendly_name","type"],"pathType":"list"}},"/v1/Credentials/{Sid}":{"delete":{"description":"","operationId":"DeleteCredential","parameters":[{"description":"The Twilio-provided string that uniquely identifies the Credential resource to delete.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^CR[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"204":{"description":"The resource was deleted successfully."}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Credential"],"x-maturity":["GA"]},"description":"Credentials for push notifications channels","get":{"description":"","operationId":"FetchCredential","parameters":[{"description":"The Twilio-provided string that uniquely identifies the Credential resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^CR[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.credential"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Credential"],"x-maturity":["GA"]},"post":{"description":"","operationId":"UpdateCredential","parameters":[{"description":"The Twilio-provided string that uniquely identifies the Credential resource to update.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^CR[0-9a-fA-F]{32}$","type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"ApiKey":{"description":"[GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential.","type":"string"},"Certificate":{"description":"[APN only] The URL encoded representation of the certificate. For example, \n`-----BEGIN CERTIFICATE-----\nMIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==\n-----END CERTIFICATE-----`","type":"string"},"FriendlyName":{"description":"A descriptive string that you create to describe the resource. It can be up to 64 characters long.","type":"string"},"PrivateKey":{"description":"[APN only] The URL encoded representation of the private key. For example,\n`-----BEGIN RSA PRIVATE KEY-----\nMIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.\n-----END RSA PRIVATE KEY-----`","type":"string"},"Sandbox":{"description":"[APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production.","type":"boolean"},"Secret":{"description":"[FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging.","type":"string"}},"title":"UpdateCredentialRequest","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.credential"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Credential"],"x-maturity":["GA"]},"servers":[{"url":"https://chat.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","friendly_name","type"],"pathType":"instance"}},"/v1/Services":{"description":"Top level scope for all chat resources","get":{"description":"","operationId":"ListService","parameters":[{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"},"services":{"items":{"$ref":"#/components/schemas/chat.v1.service"},"type":"array"}},"title":"ListServiceResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Service"],"x-maturity":["GA"]},"post":{"description":"","operationId":"CreateService","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"FriendlyName":{"description":"A descriptive string that you create to describe the resource. It can be up to 64 characters long.","type":"string"}},"required":["FriendlyName"],"title":"CreateServiceRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Service"],"x-maturity":["GA"]},"servers":[{"url":"https://chat.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","friendly_name","date_created"],"dependentProperties":{"channels":{"mapping":{"service_sid":"sid"},"resource_url":"/v1/Services/{service_sid}/Channels"},"roles":{"mapping":{"service_sid":"sid"},"resource_url":"/v1/Services/{service_sid}/Roles"},"users":{"mapping":{"service_sid":"sid"},"resource_url":"/v1/Services/{service_sid}/Users"}},"pathType":"list"}},"/v1/Services/{ServiceSid}/Channels":{"description":"Channels represent chat rooms","get":{"description":"","operationId":"ListChannel","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`.","in":"query","name":"Type","schema":{"items":{"$ref":"#/components/schemas/channel_enum_channel_type","type":"string"},"type":"array"}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"channels":{"items":{"$ref":"#/components/schemas/chat.v1.service.channel"},"type":"array"},"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}},"title":"ListChannelResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Channel"],"x-maturity":["GA"]},"post":{"description":"","operationId":"CreateChannel","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"Attributes":{"description":"A valid JSON string that contains application-specific data.","type":"string"},"FriendlyName":{"description":"A descriptive string that you create to describe the new resource. It can be up to 64 characters long.","type":"string"},"Type":{"$ref":"#/components/schemas/channel_enum_channel_type","description":"The visibility of the channel. Can be: `public` or `private` and defaults to `public`.","type":"string"},"UniqueName":{"description":"An 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. This value must be 64 characters or less in length and be unique within the Service.","type":"string"}},"title":"CreateChannelRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.channel"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Channel"],"x-maturity":["GA"]},"servers":[{"url":"https://chat.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","unique_name","friendly_name"],"dependentProperties":{"invites":{"mapping":{"channel_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Channels/{channel_sid}/Invites"},"members":{"mapping":{"channel_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Channels/{channel_sid}/Members"},"messages":{"mapping":{"channel_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Channels/{channel_sid}/Messages"}},"parent":"/Services/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites":{"description":"Pending invitations to users to become channel members","get":{"description":"","operationId":"ListInvite","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resources to read belong to.","in":"path","name":"ChannelSid","required":true,"schema":{"type":"string"}},{"description":"The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details.","in":"query","name":"Identity","schema":{"items":{"type":"string"},"type":"array"},"x-twilio":{"pii":{"deleteSla":30,"handling":"standard"}}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"invites":{"items":{"$ref":"#/components/schemas/chat.v1.service.channel.invite"},"type":"array"},"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}},"title":"ListInviteResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Invite"],"x-maturity":["GA"]},"post":{"description":"","operationId":"CreateInvite","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new resource belongs to.","in":"path","name":"ChannelSid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"Identity":{"description":"The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more info.","type":"string"},"RoleSid":{"description":"The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new member.","maxLength":34,"minLength":34,"pattern":"^RL[0-9a-fA-F]{32}$","type":"string"}},"required":["Identity"],"title":"CreateInviteRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.channel.invite"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Invite"],"x-maturity":["GA"]},"servers":[{"url":"https://chat.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","identity","date_created"],"parent":"/Services/{ServiceSid}/Channels/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}":{"delete":{"description":"","operationId":"DeleteInvite","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to delete belongs to.","in":"path","name":"ChannelSid","required":true,"schema":{"type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the Invite resource to delete.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IN[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"204":{"description":"The resource was deleted successfully."}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Invite"],"x-maturity":["GA"]},"description":"Pending invitations to users to become channel members","get":{"description":"","operationId":"FetchInvite","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to fetch belongs to.","in":"path","name":"ChannelSid","required":true,"schema":{"type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the Invite resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IN[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.channel.invite"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Invite"],"x-maturity":["GA"]},"servers":[{"url":"https://chat.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","identity","date_created"],"parent":"/Services/{ServiceSid}/Channels/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members":{"description":"Users joined to specific channels","get":{"description":"","operationId":"ListMember","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the members to read belong to. Can be the Channel resource's `sid` or `unique_name` value.","in":"path","name":"ChannelSid","required":true,"schema":{"type":"string"}},{"description":"The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details.","in":"query","name":"Identity","schema":{"items":{"type":"string"},"type":"array"},"x-twilio":{"pii":{"deleteSla":30,"handling":"standard"}}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"members":{"items":{"$ref":"#/components/schemas/chat.v1.service.channel.member"},"type":"array"},"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}},"title":"ListMemberResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Member"],"x-maturity":["GA"]},"post":{"description":"","operationId":"CreateMember","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new member belongs to. Can be the Channel resource's `sid` or `unique_name`.","in":"path","name":"ChannelSid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"Identity":{"description":"The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/services). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details.","type":"string"},"RoleSid":{"description":"The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services).","maxLength":34,"minLength":34,"pattern":"^RL[0-9a-fA-F]{32}$","type":"string"}},"required":["Identity"],"title":"CreateMemberRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.channel.member"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Member"],"x-maturity":["GA"]},"servers":[{"url":"https://chat.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","identity","date_created"],"parent":"/Services/{ServiceSid}/Channels/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}":{"delete":{"description":"","operationId":"DeleteMember","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`.","in":"path","name":"ChannelSid","required":true,"schema":{"type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the Member resource to delete.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^MB[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"204":{"description":"The resource was deleted successfully."}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Member"],"x-maturity":["GA"]},"description":"Users joined to specific channels","get":{"description":"","operationId":"FetchMember","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the member to fetch belongs to. Can be the Channel resource's `sid` or `unique_name` value.","in":"path","name":"ChannelSid","required":true,"schema":{"type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the Member resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^MB[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.channel.member"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Member"],"x-maturity":["GA"]},"post":{"description":"","operationId":"UpdateMember","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the member to update belongs to. Can be the Channel resource's `sid` or `unique_name`.","in":"path","name":"ChannelSid","required":true,"schema":{"type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the Member resource to update.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^MB[0-9a-fA-F]{32}$","type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"LastConsumedMessageIndex":{"description":"The index of the last [Message](https://www.twilio.com/docs/api/chat/rest/messages) that the Member has read within the [Channel](https://www.twilio.com/docs/api/chat/rest/channels).","nullable":true,"type":"integer"},"RoleSid":{"description":"The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services).","maxLength":34,"minLength":34,"pattern":"^RL[0-9a-fA-F]{32}$","type":"string"}},"title":"UpdateMemberRequest","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.channel.member"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Member"],"x-maturity":["GA"]},"servers":[{"url":"https://chat.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","identity","date_created"],"parent":"/Services/{ServiceSid}/Channels/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages":{"description":"Individual chat messages","get":{"description":"","operationId":"ListMessage","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to read belongs to. Can be the Channel's `sid` or `unique_name`.","in":"path","name":"ChannelSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^CH[0-9a-fA-F]{32}$","type":"string"}},{"description":"The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default.","in":"query","name":"Order","schema":{"$ref":"#/components/schemas/message_enum_order_type","type":"string"}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/chat.v1.service.channel.message"},"type":"array"},"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"}},"title":"ListMessageResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Message"],"x-maturity":["GA"]},"post":{"description":"","operationId":"CreateMessage","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new resource belongs to. Can be the Channel resource's `sid` or `unique_name`.","in":"path","name":"ChannelSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^CH[0-9a-fA-F]{32}$","type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"Attributes":{"description":"A valid JSON string that contains application-specific data.","type":"string"},"Body":{"description":"The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string.","type":"string"},"From":{"description":"The [identity](https://www.twilio.com/docs/api/chat/guides/identity) of the new message's author. The default value is `system`.","type":"string"}},"required":["Body"],"title":"CreateMessageRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.channel.message"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Message"],"x-maturity":["GA"]},"servers":[{"url":"https://chat.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","from","to","date_created"],"parent":"/Services/{ServiceSid}/Channels/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}":{"delete":{"description":"","operationId":"DeleteMessage","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to delete belongs to. Can be the Channel resource's `sid` or `unique_name`.","in":"path","name":"ChannelSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^CH[0-9a-fA-F]{32}$","type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the Message resource to delete.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IM[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"204":{"description":"The resource was deleted successfully."}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Message"],"x-maturity":["GA"]},"description":"Individual chat messages","get":{"description":"","operationId":"FetchMessage","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to fetch belongs to. Can be the Channel's `sid` or `unique_name`.","in":"path","name":"ChannelSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^CH[0-9a-fA-F]{32}$","type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the Message resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IM[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.channel.message"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Message"],"x-maturity":["GA"]},"post":{"description":"","operationId":"UpdateMessage","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`.","in":"path","name":"ChannelSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^CH[0-9a-fA-F]{32}$","type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the Message resource to update.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IM[0-9a-fA-F]{32}$","type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"Attributes":{"description":"A valid JSON string that contains application-specific data.","type":"string"},"Body":{"description":"The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string.","type":"string"}},"title":"UpdateMessageRequest","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.channel.message"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Message"],"x-maturity":["GA"]},"servers":[{"url":"https://chat.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","from","to","date_created"],"parent":"/Services/{ServiceSid}/Channels/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Channels/{Sid}":{"delete":{"description":"","operationId":"DeleteChannel","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the Channel resource to delete.","in":"path","name":"Sid","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"The resource was deleted successfully."}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Channel"],"x-maturity":["GA"]},"description":"Channels represent chat rooms","get":{"description":"","operationId":"FetchChannel","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the Channel resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.channel"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Channel"],"x-maturity":["GA"]},"post":{"description":"","operationId":"UpdateChannel","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the Channel resource to update.","in":"path","name":"Sid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"Attributes":{"description":"A valid JSON string that contains application-specific data.","type":"string"},"FriendlyName":{"description":"A descriptive string that you create to describe the resource. It can be up to 64 characters long.","type":"string"},"UniqueName":{"description":"An 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. This value must be 64 characters or less in length and be unique within the Service.","type":"string"}},"title":"UpdateChannelRequest","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.channel"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Channel"],"x-maturity":["GA"]},"servers":[{"url":"https://chat.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","unique_name","friendly_name"],"dependentProperties":{"invites":{"mapping":{"channel_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Channels/{channel_sid}/Invites"},"members":{"mapping":{"channel_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Channels/{channel_sid}/Members"},"messages":{"mapping":{"channel_sid":"sid","service_sid":"service_sid"},"resource_url":"/v1/Services/{service_sid}/Channels/{channel_sid}/Messages"}},"parent":"/Services/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Roles":{"description":"Roles determining user or member permissions","get":{"description":"","operationId":"ListRole","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"},"roles":{"items":{"$ref":"#/components/schemas/chat.v1.service.role"},"type":"array"}},"title":"ListRoleResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Role"],"x-maturity":["GA"]},"post":{"description":"","operationId":"CreateRole","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"FriendlyName":{"description":"A descriptive string that you create to describe the new resource. It can be up to 64 characters long.","type":"string"},"Permission":{"description":"A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation.","items":{"type":"string"},"type":"array"},"Type":{"$ref":"#/components/schemas/role_enum_role_type","description":"The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/api/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/api/services) roles.","type":"string"}},"required":["FriendlyName","Type","Permission"],"title":"CreateRoleRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.role"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Role"],"x-maturity":["GA"]},"servers":[{"url":"https://chat.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","friendly_name","type"],"parent":"/Services/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Roles/{Sid}":{"delete":{"description":"","operationId":"DeleteRole","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the Role resource to delete.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^RL[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"204":{"description":"The resource was deleted successfully."}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Role"],"x-maturity":["GA"]},"description":"Roles determining user or member permissions","get":{"description":"","operationId":"FetchRole","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the Role resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^RL[0-9a-fA-F]{32}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.role"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Role"],"x-maturity":["GA"]},"post":{"description":"","operationId":"UpdateRole","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the Role resource to update.","in":"path","name":"Sid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^RL[0-9a-fA-F]{32}$","type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"Permission":{"description":"A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation.","items":{"type":"string"},"type":"array"}},"required":["Permission"],"title":"UpdateRoleRequest","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.role"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1Role"],"x-maturity":["GA"]},"servers":[{"url":"https://chat.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","friendly_name","type"],"parent":"/Services/{Sid}","pathType":"instance"}},"/v1/Services/{ServiceSid}/Users":{"description":"Unique chat users within a chat service","get":{"description":"","operationId":"ListUser","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"How many resources to return in each list page. The default is 50, and the maximum is 1000.","in":"query","name":"PageSize","schema":{"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The page index. This value is simply for client state.","in":"query","name":"Page","schema":{"minimum":0,"type":"integer"}},{"description":"The page token. This is provided by the API.","in":"query","name":"PageToken","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"meta":{"properties":{"first_page_url":{"format":"uri","type":"string"},"key":{"type":"string"},"next_page_url":{"format":"uri","nullable":true,"type":"string"},"page":{"type":"integer"},"page_size":{"type":"integer"},"previous_page_url":{"format":"uri","nullable":true,"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"},"users":{"items":{"$ref":"#/components/schemas/chat.v1.service.user"},"type":"array"}},"title":"ListUserResponse","type":"object"}}},"description":"OK"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1User"],"x-maturity":["GA"]},"post":{"description":"","operationId":"CreateUser","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"Attributes":{"description":"A valid JSON string that contains application-specific data.","type":"string"},"FriendlyName":{"description":"A descriptive string that you create to describe the new resource. This value is often used for display purposes.","type":"string"},"Identity":{"description":"The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). This value is often a username or email address. See the Identity documentation for more details.","type":"string"},"RoleSid":{"description":"The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new User.","maxLength":34,"minLength":34,"pattern":"^RL[0-9a-fA-F]{32}$","type":"string"}},"required":["Identity"],"title":"CreateUserRequest","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chat.v1.service.user"}}},"description":"Created"}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1User"],"x-maturity":["GA"]},"servers":[{"url":"https://chat.twilio.com"}],"x-twilio":{"defaultOutputProperties":["sid","friendly_name","date_created"],"dependentProperties":{"user_channels":{"mapping":{"service_sid":"service_sid","user_sid":"sid"},"resource_url":"/v1/Services/{service_sid}/Users/{user_sid}/Channels"}},"parent":"/Services/{Sid}","pathType":"list"}},"/v1/Services/{ServiceSid}/Users/{Sid}":{"delete":{"description":"","operationId":"DeleteUser","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the User resource to delete.","in":"path","name":"Sid","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"The resource was deleted successfully."}},"security":[{"accountSid_authToken":[]}],"tags":["ChatV1User"],"x-maturity":["GA"]},"description":"Unique chat users within a chat service","get":{"description":"","operationId":"FetchUser","parameters":[{"description":"The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from.","in":"path","name":"ServiceSid","required":true,"schema":{"maxLength":34,"minLength":34,"pattern":"^IS[0-9a-fA-F]{32}$","type":"string"}},{"description":"The Twilio-provided string that uniquely identifies the User resource to fetch.","in":"path","name":"Sid","required":true,"schema":{"type":"string"}}],"responses":{"20