Amazon Polly · Arazzo Workflow

Amazon Polly Paginate the Voice Catalog

Version 1.0.0

Page through the full DescribeVoices catalog using the NextToken cursor.

1 workflow 1 source API 1 provider
View Spec View on GitHub Artificial IntelligenceMachine-LearningSpeech SynthesisText-to-SpeechTTSVoiceSSMLNeural EngineGenerative AIArazzoWorkflows

Provider

amazon-polly

Workflows

paginate-voices
Retrieve the first page of voices and follow the NextToken to the next page.
Lists the first page of available voices, captures the pagination cursor, and follows it to retrieve the next page when one exists.
2 steps inputs: amzDate, authorization, contentSha256, engine, includeAdditionalLanguageCodes, securityToken outputs: firstPageVoices, lastToken, nextPageVoices
1
firstPage
Retrieve the first page of available voices and capture the pagination cursor.
2
nextPage
Retrieve the next page of voices using the cursor from the first page.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Polly Paginate the Voice Catalog
  summary: Page through the full DescribeVoices catalog using the NextToken cursor.
  description: >-
    Walks the complete Amazon Polly voice catalog across pages. The workflow
    calls DescribeVoices for the first page, captures the NextToken pagination
    cursor, and then calls DescribeVoices again with that token to retrieve the
    next page, branching to end when no further token is returned. Each step
    spells out its request inline, including the AWS Signature Version 4 signing
    headers, so the flow can be read and executed without opening the underlying
    OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: voicesApi
  url: ../openapi/amazon-polly-voices-api-openapi.yml
  type: openapi
workflows:
- workflowId: paginate-voices
  summary: Retrieve the first page of voices and follow the NextToken to the next page.
  description: >-
    Lists the first page of available voices, captures the pagination cursor,
    and follows it to retrieve the next page when one exists.
  inputs:
    type: object
    required:
    - amzDate
    - authorization
    properties:
      amzDate:
        type: string
        description: The X-Amz-Date timestamp used to sign the requests.
      authorization:
        type: string
        description: The full SigV4 Authorization header value for the request.
      contentSha256:
        type: string
        description: The X-Amz-Content-Sha256 hex digest of the request payload.
      securityToken:
        type: string
        description: Optional X-Amz-Security-Token for temporary credentials.
      engine:
        type: string
        description: Engine to filter voices by (standard or neural).
      includeAdditionalLanguageCodes:
        type: boolean
        description: Whether to include bilingual voices that use a language as an additional language.
  steps:
  - stepId: firstPage
    description: Retrieve the first page of available voices and capture the pagination cursor.
    operationId: DescribeVoices
    parameters:
    - name: Engine
      in: query
      value: $inputs.engine
    - name: IncludeAdditionalLanguageCodes
      in: query
      value: $inputs.includeAdditionalLanguageCodes
    - name: X-Amz-Date
      in: header
      value: $inputs.amzDate
    - name: Authorization
      in: header
      value: $inputs.authorization
    - name: X-Amz-Content-Sha256
      in: header
      value: $inputs.contentSha256
    - name: X-Amz-Security-Token
      in: header
      value: $inputs.securityToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      voices: $response.body#/Voices
      nextToken: $response.body#/NextToken
    onSuccess:
    - name: morePages
      type: goto
      stepId: nextPage
      criteria:
      - context: $response.body
        condition: $.NextToken != null
        type: jsonpath
    - name: lastPage
      type: end
      criteria:
      - context: $response.body
        condition: $.NextToken == null
        type: jsonpath
  - stepId: nextPage
    description: Retrieve the next page of voices using the cursor from the first page.
    operationId: DescribeVoices
    parameters:
    - name: Engine
      in: query
      value: $inputs.engine
    - name: IncludeAdditionalLanguageCodes
      in: query
      value: $inputs.includeAdditionalLanguageCodes
    - name: NextToken
      in: query
      value: $steps.firstPage.outputs.nextToken
    - name: X-Amz-Date
      in: header
      value: $inputs.amzDate
    - name: Authorization
      in: header
      value: $inputs.authorization
    - name: X-Amz-Content-Sha256
      in: header
      value: $inputs.contentSha256
    - name: X-Amz-Security-Token
      in: header
      value: $inputs.securityToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      voices: $response.body#/Voices
      nextToken: $response.body#/NextToken
  outputs:
    firstPageVoices: $steps.firstPage.outputs.voices
    nextPageVoices: $steps.nextPage.outputs.voices
    lastToken: $steps.nextPage.outputs.nextToken

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/amazon-polly-paginate-voices-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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