# Invite an Agent or a TaskQueue to a Channel. **POST /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Invites** Invite an Agent or a TaskQueue to a Channel. ## Servers - https://flex-api.twilio.com: https://flex-api.twilio.com () ## Authentication methods - Account sid auth token ## Parameters ### Path parameters - **InteractionSid** (string) The Interaction SID for this Channel. - **ChannelSid** (string) The Channel SID for this Invite. ### Body: application/x-www-form-urlencoded (object) - **Routing** () The Interaction's routing logic. ## 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 created by Twilio to identify an Interaction Channel Invite resource. - **interaction_sid** (string | null) The Interaction SID for this Channel. - **channel_sid** (string | null) The Channel SID for this Invite. - **routing** () A JSON object representing the routing rules for the Interaction Channel. See [Outbound SMS Example](https://www.twilio.com/docs/flex/developer/conversations/interactions-api/interactions#agent-initiated-outbound-interactions) for an example Routing object. The Interactions resource uses TaskRouter for all routing functionality. All attributes in the Routing object on your Interaction request body are added “as is” to the task. For a list of known attributes consumed by the Flex UI and/or Flex Insights, see [Known Task Attributes](https://www.twilio.com/docs/flex/developer/conversations/interactions-api#task-attributes). - **url** (string(uri) | null) [Powered by Bump.sh](https://bump.sh)