Amazon Connect Contact Flows API

Operations for managing contact flows

GitHub OpenAPI
Business capability
Contact Centre Operations Management BC-430.30

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

PUT /phone-number/{PhoneNumberId}/contact-flow Associate a contact flow with a phone number · Associate Phone Number Contact Flow #
Ask an LLM
“How do I attach a contact flow to a phone number?”
“Can I link a flow to a number claimed to a traffic distribution group?”
Tell an agent
Associate flow {flow} with phone number {number} in instance {instance}.
Attach contact flow {flow} to number {number}.
DELETE /phone-number/{PhoneNumberId}/contact-flow Remove a contact flow from a phone number · Disassociate Phone Number Contact Flow #
Ask an LLM
“How do I detach a contact flow from a phone number?”
“Can I unlink a flow from a number claimed to a traffic distribution group?”
Tell an agent destructive · confirm first
Disassociate flow from phone number {number} in instance {instance}.
Unlink the contact flow on number {number}.
PUT /contact-flows/{InstanceId} Create a contact flow · Create Contact Flow #
Ask an LLM
“How do I create a new contact flow for a phone number?”
“Can I create a flow in a specific status, like saved or published?”
Tell an agent
Create a {type} flow named {name} in instance {instance} with content {content}.
Create flow {name} of type {type} in {instance} with status {status}.
DELETE /contact-flows/{InstanceId}/{ContactFlowId} Delete a contact flow · Delete Contact Flow #
Ask an LLM
“How do I delete a contact flow I no longer use?”
“Can I remove a flow from a Connect instance?”
Tell an agent destructive · confirm first
Delete contact flow {flow} from instance {instance}.
Remove flow {flow} in {instance}.
GET /contact-flows/{InstanceId}/{ContactFlowId} Get a contact flow's details · Describe Contact Flow #
Ask an LLM
“What type and content does a particular contact flow have?”
“Can I see the saved content of a flow that hasn't been published?”
Tell an agent
Describe contact flow {flow} in instance {instance}.
Show the content of flow {flow} in {instance}.
GET /contact-flows-summary/{InstanceId} List contact flows in an instance · List Contact Flows #
Ask an LLM
“Which contact flows exist in my Connect instance?”
“Can I list only the flows of a certain type?”
Tell an agent
List contact flows in instance {instance}.
List {types} flows in {instance}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-connect:amazon-connect-contact-flows-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-connect-contact-flows-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Connect Service Contact Flows API
  version: '2017-08-08'
  description: Generated from AWS's published Smithy model for Amazon Connect Service. 6 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://connect.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /phone-number/{PhoneNumberId}/contact-flow:
    put:
      operationId: AssociatePhoneNumberContactFlow
      summary: Associate Phone Number Contact Flow
      description: Associates a flow with a phone number claimed to your Connect Customer instance. If the number is claimed
        to a traffic distribution group, and you are calling this API using an instance in the Amazon Web Services Region
        where the traffic distribution group was created, you can use either a full phone number ARN or UUID value for the
        PhoneNumberId URI request parameter. However, if the number is claimed to a traffic distribution group and you are
        calling this API using an instance in the alternate Amazon Web Services Region associated with the traffic distribution
        group, you must provide a full phone number ARN. If a UUID is provided in this scenario, you will receive a ResourceNotFoundException.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServiceException'
        '400':
          description: InvalidParameterException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      parameters:
      - name: PhoneNumberId
        in: path
        required: true
        schema:
          type: string
        description: A unique identifier for the phone number.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                InstanceId:
                  type: string
                  description: The identifier of the Connect Customer instance. You can find the instance ID in the Amazon
                    Resource Name (ARN) of the instance.
                ContactFlowId:
                  type: string
                  description: The identifier of the flow.
              required:
              - InstanceId
              - ContactFlowId
      tags:
      - Contact Flows
    delete:
      operationId: DisassociatePhoneNumberContactFlow
      summary: Disassociate Phone Number Contact Flow
      description: Removes the flow association from a phone number claimed to your Connect Customer instance. If the number
        is claimed to a traffic distribution group, and you are calling this API using an instance in the Amazon Web Services
        Region where the traffic distribution group was created, you can use either a full phone number ARN or UUID value
        for the PhoneNumberId URI request parameter. However, if the number is claimed to a traffic distribution group and
        you are calling this API using an instance in the alternate Amazon Web Services Region associated with the traffic
        distribution group, you must provide a full phone number ARN. If a UUID is provided in this scenario, you will receive
        a ResourceNotFoundException.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServiceException'
        '400':
          description: InvalidParameterException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      parameters:
      - name: PhoneNumberId
        in: path
        required: true
        schema:
          type: string
        description: A unique identifier for the phone number.
      - name: instanceId
        in: query
        required: true
        schema:
          type: string
        description: The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource
          Name (ARN) of the instance.
      tags:
      - Contact Flows
  /contact-flows/{InstanceId}:
    put:
      operationId: CreateContactFlow
      summary: Create Contact Flow
      description: Creates a flow for the specified Connect Customer instance. You can also create and update flows using
        the Connect Customer Flow language.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateContactFlowResponse'
        '409':
          description: DuplicateResourceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DuplicateResourceException'
        '500':
          description: InternalServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServiceException'
        '400':
          description: InvalidContactFlowException; InvalidParameterException; InvalidRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidContactFlowException'
        '429':
          description: LimitExceededException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: InstanceId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the Connect Customer instance.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                Name:
                  type: string
                  description: The name of the flow.
                Type:
                  type: string
                  enum:
                  - CONTACT_FLOW
                  - CUSTOMER_QUEUE
                  - CUSTOMER_HOLD
                  - CUSTOMER_WHISPER
                  - AGENT_HOLD
                  - AGENT_WHISPER
                  - OUTBOUND_WHISPER
                  - AGENT_TRANSFER
                  - QUEUE_TRANSFER
                  - CAMPAIGN
                  description: The type of the flow. For descriptions of the available types, see Choose a flow type in the
                    Connect Customer Administrator Guide.
                Description:
                  type: string
                  description: The description of the flow.
                Content:
                  type: string
                  description: 'The JSON string that represents the content of the flow. For an example, see Example flow
                    in Connect Customer Flow language. Length Constraints: Minimum length of 1. Maximum length of 256000.'
                Status:
                  type: string
                  enum:
                  - PUBLISHED
                  - SAVED
                  description: Indicates the flow status as either SAVED or PUBLISHED. The PUBLISHED status will initiate
                    validation on the content. the SAVED status does not initiate validation of the content. SAVED | PUBLISHED.
                Tags:
                  type: object
                  additionalProperties:
                    type: string
                  description: 'The tags used to organize, track, or control access for this resource. For example, { "Tags":
                    {"key1":"value1", "key2":"value2"} }.'
              required:
              - Name
              - Type
              - Content
      tags:
      - Contact Flows
  /contact-flows/{InstanceId}/{ContactFlowId}:
    delete:
      operationId: DeleteContactFlow
      summary: Delete Contact Flow
      description: Deletes a flow for the specified Connect Customer instance.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteContactFlowResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServiceException'
        '400':
          description: InvalidParameterException; InvalidRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      parameters:
      - name: InstanceId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource
          Name (ARN) of the instance.
      - name: ContactFlowId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the flow.
      tags:
      - Contact Flows
    get:
      operationId: DescribeContactFlow
      summary: Describe Contact Flow
      description: Describes the specified flow. You can also create and update flows using the Connect Customer Flow language.
        Use the $SAVED alias in the request to describe the SAVED content of a Flow. For example, arn:aws:.../contact-flow/{id}:$SAVED.
        After a flow is published, $SAVED needs to be supplied to view saved content that has not been published. Use arn:aws:.../contact-flow/{id}:{version}
        to retrieve the content of a specific flow version. In the response, Status indicates the flow status as either SAVED
        or PUBLISHED. The PUBLISHED status will initiate validation on the content. SAVED does not initiate validation of
        the content. SAVED | PUBLISHED
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeContactFlowResponse'
        '404':
          description: ContactFlowNotPublishedException; ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactFlowNotPublishedException'
        '500':
          description: InternalServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServiceException'
        '400':
          description: InvalidParameterException; InvalidRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      parameters:
      - name: InstanceId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the Connect Customer instance.
      - name: ContactFlowId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the flow.
      tags:
      - Contact Flows
  /contact-flows-summary/{InstanceId}:
    get:
      operationId: ListContactFlows
      summary: List Contact Flows
      description: Provides information about the flows for the specified Connect Customer instance. You can also create and
        update flows using the Connect Customer Flow language. For more information about flows, see Flows in the Connect
        Customer Administrator Guide.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListContactFlowsResponse'
        '500':
          description: InternalServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServiceException'
        '400':
          description: InvalidParameterException; InvalidRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      parameters:
      - name: InstanceId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource
          Name (ARN) of the instance.
      - name: contactFlowTypes
        in: query
        schema:
          type: array
          items:
            type: string
            enum:
            - CONTACT_FLOW
            - CUSTOMER_QUEUE
            - CUSTOMER_HOLD
            - CUSTOMER_WHISPER
            - AGENT_HOLD
            - AGENT_WHISPER
            - OUTBOUND_WHISPER
            - AGENT_TRANSFER
            - QUEUE_TRANSFER
            - CAMPAIGN
        description: The type of flow.
      - name: nextToken
        in: query
        schema:
          type: string
        description: The token for the next set of results. Use the value returned in the previous response in the next request
          to retrieve the next set of results.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results to return per page. The default MaxResult size is 100.
      tags:
      - Contact Flows
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: connect
  schemas:
    AccessDeniedException:
      type: object
      properties:
        Message:
          type: string
    ContactFlow:
      type: object
      properties:
        Arn:
          type: string
          description: The Amazon Resource Name (ARN) of the flow.
        Id:
          type: string
          description: The identifier of the flow.
        Name:
          type: string
          description: The name of the flow.
        Type:
          type: string
          enum:
          - CONTACT_FLOW
          - CUSTOMER_QUEUE
          - CUSTOMER_HOLD
          - CUSTOMER_WHISPER
          - AGENT_HOLD
          - AGENT_WHISPER
          - OUTBOUND_WHISPER
          - AGENT_TRANSFER
          - QUEUE_TRANSFER
          - CAMPAIGN
          description: The type of the flow. For descriptions of the available types, see Choose a flow type in the Connect
            Customer Administrator Guide.
        State:
          type: string
          enum:
          - ACTIVE
          - ARCHIVED
          description: The type of flow.
        Status:
          type: string
          enum:
          - PUBLISHED
          - SAVED
          description: The status of the flow.
        Description:
          type: string
          description: The description of the flow.
        Content:
          type: string
          description: 'The JSON string that represents the content of the flow. For an example, see Example flow in Connect
            Customer Flow language. Length Constraints: Minimum length of 1. Maximum length of 256000.'
        Tags:
          type: object
          additionalProperties:
            type: string
          description: 'The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1",
            "key2":"value2"} }.'
        FlowContentSha256:
          type: string
          description: Indicates the checksum value of the flow content.
        Version:
          type: integer
          description: The identifier of the flow version.
        VersionDescription:
          type: string
          description: The description of the flow version.
        LastModifiedTime:
          type: string
          format: date-time
          description: The time at which the flow was last modified.
        LastModifiedRegion:
          type: string
          description: The region in which the flow was last modified
    ContactFlowNotPublishedException:
      type: object
      properties:
        Message:
          type: string
    ContactFlowSummary:
      type: object
      properties:
        Id:
          type: string
          description: The identifier of the flow.
        Arn:
          type: string
          description: The Amazon Resource Name (ARN) of the flow.
        Name:
          type: string
          description: The name of the flow.
        ContactFlowType:
          type: string
          enum:
          - CONTACT_FLOW
          - CUSTOMER_QUEUE
          - CUSTOMER_HOLD
          - CUSTOMER_WHISPER
          - AGENT_HOLD
          - AGENT_WHISPER
          - OUTBOUND_WHISPER
          - AGENT_TRANSFER
          - QUEUE_TRANSFER
          - CAMPAIGN
          description: The type of flow.
        ContactFlowState:
          type: string
          enum:
          - ACTIVE
          - ARCHIVED
          description: The type of flow.
        ContactFlowStatus:
          type: string
          enum:
          - PUBLISHED
          - SAVED
          description: The status of the flow.
    CreateContactFlowResponse:
      type: object
      properties:
        ContactFlowId:
          type: string
          description: The identifier of the flow.
        ContactFlowArn:
          type: string
          description: The Amazon Resource Name (ARN) of the flow.
        FlowContentSha256:
          type: string
          description: Indicates the checksum value of the latest published flow content.
    DeleteContactFlowResponse:
      type: object
      properties: {}
    DescribeContactFlowResponse:
      type: object
      properties:
        ContactFlow:
          $ref: '#/components/schemas/ContactFlow'
    DuplicateResourceException:
      type: object
      properties:
        Message:
          type: string
    InternalServiceException:
      type: object
      properties:
        Message:
          type: string
          description: The message.
    InvalidContactFlowException:
      type: object
      properties:
        problems:
          type: array
          items:
            $ref: '#/components/schemas/ProblemDetail'
          description: The problems with the flow. Please fix before trying again.
    InvalidParameterException:
      type: object
      properties:
        Message:
          type: string
          description: The message about the parameters.
    LimitExceededException:
      type: object
      properties:
        Message:
          type: string
          description: The message about the limit.
    ListContactFlowsResponse:
      type: object
      properties:
        ContactFlowSummaryList:
          type: array
          items:
            $ref: '#/components/schemas/ContactFlowSummary'
          description: Information about the flows.
        NextToken:
          type: string
          description: If there are additional results, this is the token for the next set of results.
    ProblemDetail:
      type: object
      properties:
        message:
          type: string
          description: The problem detail's message.
    ResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
          description: The message about the resource.
    ThrottlingException:
      type: object
      properties:
        Message:
          type: string
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/connect/service/2017-08-08/connect-2017-08-08.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)