Amazon Connect Connect Segment Definitions API

The Connect Segment Definitions API from Amazon Connect — 2 operation(s) for connect segment definitions.

GitHub OpenAPI

Operations 4

POST /domains/{DomainName}/segment-definitions/{SegmentDefinitionName} Create Segment Definition #
DELETE /domains/{DomainName}/segment-definitions/{SegmentDefinitionName} Delete Segment Definition #
GET /domains/{DomainName}/segment-definitions/{SegmentDefinitionName} Get Segment Definition #
GET /domains/{DomainName}/segment-definitions List Segment Definitions #

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-definitions-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-definitions-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Connect Service Segment Definitions API
  version: '2017-08-08'
  description: Generated from AWS's published Smithy model for Amazon Connect Service. 4 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-definitions/{SegmentDefinitionName}:
    post:
      operationId: CreateSegmentDefinition
      summary: Create Segment Definition
      description: Creates a segment definition associated to the given domain.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSegmentDefinitionResponse'
        '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.
      - name: SegmentDefinitionName
        in: path
        required: true
        schema:
          type: string
        description: The unique name of the segment definition.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                DisplayName:
                  type: string
                  description: The display name of the segment definition.
                Description:
                  type: string
                  description: The description of the segment definition.
                SegmentGroups:
                  $ref: '#/components/schemas/SegmentGroup'
                SegmentSqlQuery:
                  type: string
                  description: The segment SQL query.
                SegmentSort:
                  $ref: '#/components/schemas/SegmentSort'
                Tags:
                  type: object
                  additionalProperties:
                    type: string
                  description: The tags used to organize, track, or control access for this resource.
              required:
              - DisplayName
      tags:
      - Segment Definitions
    delete:
      operationId: DeleteSegmentDefinition
      summary: Delete Segment Definition
      description: Deletes a segment definition from the domain.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteSegmentDefinitionResponse'
        '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.
      - name: SegmentDefinitionName
        in: path
        required: true
        schema:
          type: string
        description: The unique name of the segment definition.
      tags:
      - Segment Definitions
    get:
      operationId: GetSegmentDefinition
      summary: Get Segment Definition
      description: Gets a segment definition from the domain.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSegmentDefinitionResponse'
        '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.
      - name: SegmentDefinitionName
        in: path
        required: true
        schema:
          type: string
        description: The unique name of the segment definition.
      tags:
      - Segment Definitions
  /domains/{DomainName}/segment-definitions:
    get:
      operationId: ListSegmentDefinitions
      summary: List Segment Definitions
      description: Lists all segment definitions under a domain.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListSegmentDefinitionsResponse'
        '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 identifier of the domain.
      - name: max-results
        in: query
        schema:
          type: integer
        description: The maximum number of objects returned per page.
      - name: next-token
        in: query
        schema:
          type: string
        description: The pagination token from the previous call.
      tags:
      - Segment Definitions
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
    AddressDimension:
      type: object
      properties:
        City:
          $ref: '#/components/schemas/ProfileDimension'
        Country:
          $ref: '#/components/schemas/ProfileDimension'
        County:
          $ref: '#/components/schemas/ProfileDimension'
        PostalCode:
          $ref: '#/components/schemas/ProfileDimension'
        Province:
          $ref: '#/components/schemas/ProfileDimension'
        State:
          $ref: '#/components/schemas/ProfileDimension'
    AttributeDimension:
      type: object
      properties:
        DimensionType:
          type: string
          enum:
          - INCLUSIVE
          - EXCLUSIVE
          - CONTAINS
          - BEGINS_WITH
          - ENDS_WITH
          - BEFORE
          - AFTER
          - BETWEEN
          - NOT_BETWEEN
          - 'ON'
          - GREATER_THAN
          - LESS_THAN
          - GREATER_THAN_OR_EQUAL
          - LESS_THAN_OR_EQUAL
          - EQUAL
          - LIST_CONTAINS
          - LIST_CONTAINS_ALL
          description: The action to segment with.
        Values:
          type: array
          items:
            type: string
          description: 'The values to apply the DimensionType on. To reference a calculated attribute or profile attribute
            as a dynamic value, use handlebar notation: {{_profile.ProfileAttributeName}} or {{_calculated_attribute.CalculatedAttributeName}}.'
      required:
      - DimensionType
      - Values
    BadRequestException:
      type: object
      properties:
        Message:
          type: string
    CalculatedAttributeDimension:
      type: object
      properties:
        DimensionType:
          type: string
          enum:
          - INCLUSIVE
          - EXCLUSIVE
          - CONTAINS
          - BEGINS_WITH
          - ENDS_WITH
          - BEFORE
          - AFTER
          - BETWEEN
          - NOT_BETWEEN
          - 'ON'
          - GREATER_THAN
          - LESS_THAN
          - GREATER_THAN_OR_EQUAL
          - LESS_THAN_OR_EQUAL
          - EQUAL
          - LIST_CONTAINS
          - LIST_CONTAINS_ALL
          description: The action to segment with.
        Values:
          type: array
          items:
            type: string
          description: 'The values to apply the DimensionType with. To reference a calculated attribute or profile attribute
            as a dynamic value, use handlebar notation: {{_profile.ProfileAttributeName}} or {{_calculated_attribute.CalculatedAttributeName}}.'
        ConditionOverrides:
          $ref: '#/components/schemas/ConditionOverrides'
      required:
      - DimensionType
      - Values
    ConditionOverrides:
      type: object
      properties:
        Range:
          $ref: '#/components/schemas/RangeOverride'
    CreateSegmentDefinitionResponse:
      type: object
      properties:
        SegmentDefinitionName:
          type: string
          description: The name of the segment definition.
        DisplayName:
          type: string
          description: The display name of the segment definition.
        Description:
          type: string
          description: The description of the segment definition.
        CreatedAt:
          type: string
          format: date-time
          description: The timestamp of when the segment definition was created.
        SegmentDefinitionArn:
          type: string
          description: The arn of the segment definition.
        Tags:
          type: object
          additionalProperties:
            type: string
          description: The tags used to organize, track, or control access for this resource.
      required:
      - SegmentDefinitionName
    DateDimension:
      type: object
      properties:
        DimensionType:
          type: string
          enum:
          - BEFORE
          - AFTER
          - BETWEEN
          - NOT_BETWEEN
          - 'ON'
          description: The action to segment with.
        Values:
          type: array
          items:
            type: string
          description: 'The values to apply the DimensionType on. To reference a calculated attribute or profile attribute
            as a dynamic value, use handlebar notation: {{_profile.ProfileAttributeName}} or {{_calculated_attribute.CalculatedAttributeName}}.'
      required:
      - DimensionType
      - Values
    DeleteSegmentDefinitionResponse:
      type: object
      properties:
        Message:
          type: string
          description: A message that indicates the delete request is done.
    Dimension:
      type: object
      properties:
        ProfileAttributes:
          $ref: '#/components/schemas/ProfileAttributes'
        CalculatedAttributes:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/CalculatedAttributeDimension'
          description: Object that holds the calculated attributes to segment on.
      description: Exactly one member is set.
    ExtraLengthValueProfileDimension:
      type: object
      properties:
        DimensionType:
          type: string
          enum:
          - INCLUSIVE
          - EXCLUSIVE
          - CONTAINS
          - BEGINS_WITH
          - ENDS_WITH
          description: The action to segment with.
        Values:
          type: array
          items:
            type: string
          description: 'The values to apply the DimensionType on. To reference a calculated attribute or profile attribute
            as a dynamic value, use handlebar notation: {{_profile.ProfileAttributeName}} or {{_calculated_attribute.CalculatedAttributeName}}.'
      required:
      - DimensionType
      - Values
    GetSegmentDefinitionResponse:
      type: object
      properties:
        SegmentDefinitionName:
          type: string
          description: The name of the segment definition.
        DisplayName:
          type: string
          description: The display name of the segment definition.
        Description:
          type: string
          description: The description of the segment definition.
        SegmentGroups:
          $ref: '#/components/schemas/SegmentGroup'
        SegmentSort:
          $ref: '#/components/schemas/SegmentSort'
        SegmentDefinitionArn:
          type: string
          description: The arn of the segment definition.
        CreatedAt:
          type: string
          format: date-time
          description: The timestamp of when the segment definition was created.
        Tags:
          type: object
          additionalProperties:
            type: string
          description: The tags used to organize, track, or control access for this resource.
        SegmentSqlQuery:
          type: string
          description: The segment SQL query.
        SegmentType:
          type: string
          enum:
          - CLASSIC
          - ENHANCED
          description: 'The segment type. Classic : Segments created using traditional SegmentGroup structure Enhanced : Segments
            created using SQL queries'
      required:
      - SegmentDefinitionArn
    Group:
      type: object
      properties:
        Dimensions:
          type: array
          items:
            $ref: '#/components/schemas/Dimension'
          description: Defines the attributes to segment on.
        SourceSegments:
          type: array
          items:
            $ref: '#/components/schemas/SourceSegment'
          description: Defines the starting source of data.
        SourceType:
          type: string
          enum:
          - ALL
          - ANY
          - NONE
          description: Defines how to interact with the source data.
        Type:
          type: string
          enum:
          - ALL
          - ANY
          - NONE
          description: Defines how to interact with the profiles found in the current filtering.
    ListSegmentDefinitionsResponse:
      type: object
      properties:
        NextToken:
          type: string
          description: The pagination token from the previous call.
        Items:
          type: array
          items:
            $ref: '#/components/schemas/SegmentDefinitionItem'
          description: List of segment definitions.
    ProfileAttributes:
      type: object
      properties:
        AccountNumber:
          $ref: '#/components/schemas/ProfileDimension'
        AdditionalInformation:
          $ref: '#/components/schemas/ExtraLengthValueProfileDimension'
        FirstName:
          $ref: '#/components/schemas/ProfileDimension'
        LastName:
          $ref: '#/components/schemas/ProfileDimension'
        MiddleName:
          $ref: '#/components/schemas/ProfileDimension'
        GenderString:
          $ref: '#/components/schemas/ProfileDimension'
        PartyTypeString:
          $ref: '#/components/schemas/ProfileDimension'
        BirthDate:
          $ref: '#/components/schemas/DateDimension'
        PhoneNumber:
          $ref: '#/components/schemas/ProfileDimension'
        BusinessName:
          $ref: '#/components/schemas/ProfileDimension'
        BusinessPhoneNumber:
          $ref: '#/components/schemas/ProfileDimension'
        HomePhoneNumber:
          $ref: '#/components/schemas/ProfileDimension'
        MobilePhoneNumber:
          $ref: '#/components/schemas/ProfileDimension'
        EmailAddress:
          $ref: '#/components/schemas/ProfileDimension'
        PersonalEmailAddress:
          $ref: '#/components/schemas/ProfileDimension'
        BusinessEmailAddress:
          $ref: '#/components/schemas/ProfileDimension'
        Address:
          $ref: '#/components/schemas/AddressDimension'
        ShippingAddress:
          $ref: '#/components/schemas/AddressDimension'
        MailingAddress:
          $ref: '#/components/schemas/AddressDimension'
        BillingAddress:
          $ref: '#/components/schemas/AddressDimension'
        Attributes:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/AttributeDimension'
          description: A field to describe values to segment on within attributes.
        ProfileType:
          $ref: '#/components/schemas/ProfileTypeDimension'
    ProfileDimension:
      type: object
      properties:
        DimensionType:
          type: string
          enum:
          - INCLUSIVE
          - EXCLUSIVE
          - CONTAINS
          - BEGINS_WITH
          - ENDS_WITH
          description: The action to segment on.
        Values:
          type: array
          items:
            type: string
          description: 'The values to apply the DimensionType on. To reference a calculated attribute or profile attribute
            as a dynamic value, use handlebar notation: {{_profile.ProfileAttributeName}} or {{_calculated_attribute.CalculatedAttributeName}}.'
      required:
      - DimensionType
      - Values
    ProfileInternalServerException:
      type: object
      properties:
        Message:
          type: string
    ProfileResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
    ProfileTypeDimension:
      type: object
      properties:
        DimensionType:
          type: string
          enum:
          - INCLUSIVE
          - EXCLUSIVE
          description: The action to segment on.
        Values:
          type: array
          items:
            type: string
            enum:
            - ACCOUNT_PROFILE
            - PROFILE
          description: The values to apply the DimensionType on.
      required:
      - DimensionType
      - Values
    RangeOverride:
      type: object
      properties:
        Start:
          type: integer
          description: The start time of when to include objects.
        End:
          type: integer
          description: The end time of when to include objects.
        Unit:
          type: string
          enum:
          - DAYS
          description: The unit for start and end.
      required:
      - Start
      - Unit
    SegmentDefinitionItem:
      type: object
      properties:
        SegmentDefinitionName:
          type: string
          description: Name of the segment definition.
        DisplayName:
          type: string
          description: Display name of the segment definition.
        Description:
          type: string
          description: The description of the segment definition.
        SegmentDefinitionArn:
          type: string
          description: The arn of the segment definition.
        CreatedAt:
          type: string
          format: date-time
          description: When the segment definition was created.
        Tags:
          type: object
          additionalProperties:
            type: string
          description: The tags belonging to the segment definition.
        SegmentType:
          type: string
          enum:
          - CLASSIC
          - ENHANCED
          description: 'The segment type. Classic : Segments created using traditional SegmentGroup structure Enhanced : Segments
            created using SQL queries'
    SegmentGroup:
      type: object
      properties:
        Groups:
          type: array
          items:
            $ref: '#/components/schemas/Group'
          description: Holds the list of groups within the segment definition.
        Include:
          type: string
          enum:
          - ALL
          - ANY
          - NONE
          description: Defines whether to include or exclude the profiles that fit the segment criteria.
    SegmentSort:
      type: object
      properties:
        Attributes:
          type: array
          items:
            $ref: '#/components/schemas/SortAttribute'
          description: A list of attributes used to sort the segments and their ordering preferences.
      required:
      - Attributes
    SortAttribute:
      type: object
      properties:
        Name:
          type: string
          description: The name of the attribute to sort by.
        DataType:
          type: string
          enum:
          - STRING
          - NUMBER
          - DATE
          description: The data type of the sort attribute (e.g., string, number, date).
        Order:
          type: string
          enum:
          - ASC
          - DESC
          description: The sort order for the attribute (ascending or descending).
        Type:
          type: string
          enum:
          - PROFILE
          - CALCULATED
          description: The type of attribute (e.g., profile, calculated).
      required:
      - Name
      - Order
    SourceSegment:
      type: object
      properties:
        SegmentDefinitionName:
          type: string
          description: The unique name of the segment definition.
    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)