# Create member **POST /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members** Users joined to specific channels ## Servers - https://chat.twilio.com: https://chat.twilio.com () ## Authentication methods - Account sid auth token ## Parameters ### Headers - **X-Twilio-Webhook-Enabled** (string) The X-Twilio-Webhook-Enabled HTTP request header ### Path parameters - **ServiceSid** (string) The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Member resource under. - **ChannelSid** (string) 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`. ### Body: application/x-www-form-urlencoded (object) - **Identity** (string) The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. - **RoleSid** (string) The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource). - **LastConsumedMessageIndex** (integer | null) The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. This parameter should only be used when recreating a Member from a backup/separate source. - **LastConsumptionTimestamp** (string(date-time)) The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). - **DateCreated** (string(date-time)) The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. - **DateUpdated** (string(date-time)) The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used when a Member is being recreated from a backup/separate source and where a Member was previously updated. - **Attributes** (string) A valid JSON string that contains application-specific data. ## Responses ### 201 Created #### Headers - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **sid** (string | null) The unique string that we created to identify the Member resource. - **account_sid** (string | null) The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource. - **channel_sid** (string | null) The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource belongs to. - **service_sid** (string | null) The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Member resource is associated with. - **identity** (string | null) The application-defined string that uniquely identifies the resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. - **date_created** (string(date-time) | null) The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. - **date_updated** (string(date-time) | null) The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. - **role_sid** (string | null) The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) assigned to the member. - **last_consumed_message_index** (integer | null) The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. - **last_consumption_timestamp** (string(date-time) | null) The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). - **url** (string(uri) | null) The absolute URL of the Member resource. - **attributes** (string | null) The JSON string that stores application-specific data. If attributes have not been set, `{}` is returned. [Powered by Bump.sh](https://bump.sh)