Create a new Interaction

POST /v1/Interactions

TODO: Resource-level docs

Create a new Interaction.

application/x-www-form-urlencoded

Body

  • Channel Required

    The Interaction's channel.

  • Routing Required

    The Interaction's routing logic.

Responses

  • 201

    Created

    Hide response attributes Show response attributes object
    • The Interaction's channel

    • The Interaction's routing logic

    • sid string | null

      The unique string that identifies the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^KD[0-9a-fA-F]{32}$.

    • url string(uri) | null
POST /v1/Interactions
curl \
 -X POST https://flex-api.twilio.com/v1/Interactions \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded"
Request example
{}
Response examples (201)
{
  "links": {},
  "sid": "string",
  "url": "https://example.com"
}