Amazon Connect Connect Segment Streams API

The Connect Segment Streams API from Amazon Connect — 1 operation(s) for connect segment streams.

GitHub OpenAPI

Operations 3

POST /domains/{DomainName}/segment-streams Associate Stream For Segments #
DELETE /domains/{DomainName}/segment-streams Disassociate Stream For Segments #
GET /domains/{DomainName}/segment-streams Get Stream For Segments #

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-segment-streams-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-segment-streams-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Connect Service Segment Streams API
  version: '2017-08-08'
  description: Generated from AWS's published Smithy model for Amazon Connect Service. 3 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://profile.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /domains/{DomainName}/segment-streams:
    post:
      operationId: AssociateStreamForSegments
      summary: Associate Stream For Segments
      description: Associates an Amazon Kinesis data stream to receive segment membership events for a given domain. This
        is a domain-level configuration that applies to all segment subscriptions within the domain. A domain can have only
        one associated stream at a time.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssociateStreamForSegmentsResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProfileInternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProfileResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      parameters:
      - name: DomainName
        in: path
        required: true
        schema:
          type: string
        description: The unique name of the domain.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                DestinationArn:
                  type: string
                  description: The Amazon Resource Name (ARN) of the Amazon Kinesis data stream to deliver segment membership
                    events to. For example, arn:aws:kinesis:region:account-id:stream/stream-name.
                DestinationRoleArn:
                  type: string
                  description: 'The Amazon Resource Name (ARN) of the IAM role that allows Customer Profiles service principal
                    to assume the role for conducting AWS Key Management Service (KMS) and Amazon Kinesis operations. The
                    role must grant the following Amazon Kinesis permissions to deliver segment membership events to the stream:
                    kinesis:PutRecord kinesis:PutRecords kinesis:DescribeStream'
              required:
              - DestinationArn
              - DestinationRoleArn
      tags:
      - Segment Streams
    delete:
      operationId: DisassociateStreamForSegments
      summary: Disassociate Stream For Segments
      description: Disassociates the Amazon Kinesis data stream configured for segment membership events. All active segment
        subscriptions delivering events to this stream are eventually stopped.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DisassociateStreamForSegmentsResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProfileInternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProfileResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      parameters:
      - name: DomainName
        in: path
        required: true
        schema:
          type: string
        description: The unique name of the domain.
      tags:
      - Segment Streams
    get:
      operationId: GetStreamForSegments
      summary: Get Stream For Segments
      description: Returns information about the segment membership event stream configured for a specific domain, including
        the stream state and associated segments.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetStreamForSegmentsResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProfileInternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProfileResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      parameters:
      - name: DomainName
        in: path
        required: true
        schema:
          type: string
        description: The unique name of the domain.
      tags:
      - Segment Streams
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: profile
  schemas:
    AccessDeniedException:
      type: object
      properties:
        Message:
          type: string
    AssociateStreamForSegmentsResponse:
      type: object
      properties: {}
    AssociatedSegment:
      type: object
      properties:
        SegmentName:
          type: string
          description: The unique name of the segment definition.
        Status:
          type: string
          enum:
          - STARTING
          - RUNNING
          - STOPPED
          - FAILED
          description: 'The subscription status of the segment. The following are valid values: STARTING: The segment is being
            prepared to publish membership events. RUNNING: The segment is actively publishing membership events to the stream.
            STOPPED: The segment has stopped publishing membership events. FAILED: The segment failed to publish membership
            events.'
        Message:
          type: string
          description: An optional message providing context, such as a failure reason.
    BadRequestException:
      type: object
      properties:
        Message:
          type: string
    DisassociateStreamForSegmentsResponse:
      type: object
      properties:
        Message:
          type: string
          description: A confirmation message indicating the stream was disassociated successfully.
    GetStreamForSegmentsResponse:
      type: object
      properties:
        AssociatedAt:
          type: string
          format: date-time
          description: The timestamp of when the stream was associated.
        AssociatedSegments:
          type: array
          items:
            $ref: '#/components/schemas/AssociatedSegment'
          description: A list of segments currently associated with the stream and their subscription status.
        DomainName:
          type: string
          description: The unique name of the domain.
        DestinationArn:
          type: string
          description: The Amazon Resource Name (ARN) of the Amazon Kinesis data stream receiving segment membership events.
        DestinationRoleArn:
          type: string
          description: The Amazon Resource Name (ARN) of the IAM role used for Amazon Kinesis and AWS Key Management Service
            (KMS) operations.
        State:
          type: string
          enum:
          - RUNNING
          - UNHEALTHY
          - STOPPED
          description: 'The operational state of the destination stream. The following are valid values: RUNNING: The stream
            is associated and healthy. Segment membership events are being published. UNHEALTHY: The stream is associated
            but events cannot currently be published. See FailureReason for details. STOPPED: The stream is no longer publishing
            segment membership events.'
        DisassociatedAt:
          type: string
          format: date-time
          description: The timestamp of when the stream was disassociated.
        FailureReason:
          type: string
          description: The reason why the stream is in an unhealthy state, if applicable.
    ProfileInternalServerException:
      type: object
      properties:
        Message:
          type: string
    ProfileResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
    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/customer-profiles/service/2020-08-15/customer-profiles-2020-08-15.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)