Amazon Kendra Thesaurus API

Operations for managing custom synonyms

GitHub OpenAPI

Operations 5

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

POST /#CreateThesaurus Create a thesaurus for an index · Create Thesaurus #
Ask an LLM
“How do I add a custom synonym list to an index?”
“Can I attach a Solr-format thesaurus file to an index?”
Tell an agent
Create thesaurus {name} in index {index_id} from S3 path {source}.
Add a thesaurus {name} to index {index_id} using role {role}.
POST /#DeleteThesaurus Delete a thesaurus from an index · Delete Thesaurus #
Ask an LLM
“How do I remove a thesaurus from an index?”
“Can I delete a synonym list I added to an index?”
Tell an agent destructive · confirm first
Delete thesaurus {id} from index {index_id}.
Remove synonym list {id} from index {index_id}.
POST /#DescribeThesaurus Get information about a thesaurus · Describe Thesaurus #
Ask an LLM
“What state is a thesaurus in, and when was it last updated?”
“Can I look up one thesaurus by its ID?”
Tell an agent
Describe thesaurus {id} in index {index_id}.
Show the status of synonym list {id} on index {index_id}.
POST /#UpdateThesaurus Update an existing thesaurus · Update Thesaurus #
Ask an LLM
“Can I change the synonym file behind an existing thesaurus?”
“Is it possible to rename a thesaurus I already created?”
Tell an agent
Update thesaurus {id} in index {index_id} with new S3 path {source}.
Rename existing thesaurus {id} on index {index_id} to {name}.
POST /#ListThesauri List thesauri for an index · List Thesauri #
Ask an LLM
“Which thesauri are attached to my index?”
“Can I page through all synonym lists for an index?”
Tell an agent
List thesauri in index {index_id}.
Show the first {max} thesauri for index {index_id}.

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-kendra:amazon-kendra-thesaurus-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-kendra-thesaurus-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWSKendraFrontendService Thesaurus API
  version: '2019-02-03'
  description: Generated from AWS's published Smithy model for AWSKendraFrontendService. 5 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://kendra.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#CreateThesaurus:
    post:
      operationId: CreateThesaurus
      summary: Create Thesaurus
      description: Creates a thesaurus for an index. The thesaurus contains a list of synonyms in Solr format. For an example
        of adding a thesaurus file to an index, see Adding custom synonyms to an index.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/CreateThesaurusResponse'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSKendraFrontendService.CreateThesaurus
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/CreateThesaurusRequest'
      tags:
      - Thesaurus
  /#DeleteThesaurus:
    post:
      operationId: DeleteThesaurus
      summary: Delete Thesaurus
      description: Deletes an Amazon Kendra thesaurus.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                type: string
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSKendraFrontendService.DeleteThesaurus
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DeleteThesaurusRequest'
      tags:
      - Thesaurus
  /#DescribeThesaurus:
    post:
      operationId: DescribeThesaurus
      summary: Describe Thesaurus
      description: Gets information about an Amazon Kendra thesaurus.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DescribeThesaurusResponse'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSKendraFrontendService.DescribeThesaurus
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DescribeThesaurusRequest'
      tags:
      - Thesaurus
  /#UpdateThesaurus:
    post:
      operationId: UpdateThesaurus
      summary: Update Thesaurus
      description: Updates a thesaurus for an index.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                type: string
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSKendraFrontendService.UpdateThesaurus
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/UpdateThesaurusRequest'
      tags:
      - Thesaurus
  /#ListThesauri:
    post:
      operationId: ListThesauri
      summary: List Thesauri
      description: Lists the thesauri for an index.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ListThesauriResponse'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSKendraFrontendService.ListThesauri
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/ListThesauriRequest'
      tags:
      - Thesaurus
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: kendra
  schemas:
    AccessDeniedException:
      type: object
      properties:
        Message:
          type: string
    ConflictException:
      type: object
      properties:
        Message:
          type: string
    CreateThesaurusRequest:
      type: object
      properties:
        IndexId:
          type: string
          description: The identifier of the index for the thesaurus.
        Name:
          type: string
          description: A name for the thesaurus.
        Description:
          type: string
          description: A description for the thesaurus.
        RoleArn:
          type: string
          description: The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains
            the thesaurus file. For more information, see IAM access roles for Amazon Kendra.
        Tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: 'A list of key-value pairs that identify or categorize the thesaurus. You can also use tags to help
            control access to the thesaurus. Tag keys and values can consist of Unicode letters, digits, white space, and
            any of the following symbols: _ . : / = + - @.'
        SourceS3Path:
          $ref: '#/components/schemas/S3Path'
        ClientToken:
          type: string
          description: A token that you provide to identify the request to create a thesaurus. Multiple calls to the CreateThesaurus
            API with the same client token will create only one thesaurus.
      required:
      - IndexId
      - Name
      - RoleArn
      - SourceS3Path
    CreateThesaurusResponse:
      type: object
      properties:
        Id:
          type: string
          description: The identifier of the thesaurus.
    DeleteThesaurusRequest:
      type: object
      properties:
        Id:
          type: string
          description: The identifier of the thesaurus you want to delete.
        IndexId:
          type: string
          description: The identifier of the index for the thesaurus.
      required:
      - Id
      - IndexId
    DescribeThesaurusRequest:
      type: object
      properties:
        Id:
          type: string
          description: The identifier of the thesaurus you want to get information on.
        IndexId:
          type: string
          description: The identifier of the index for the thesaurus.
      required:
      - Id
      - IndexId
    DescribeThesaurusResponse:
      type: object
      properties:
        Id:
          type: string
          description: The identifier of the thesaurus.
        IndexId:
          type: string
          description: The identifier of the index for the thesaurus.
        Name:
          type: string
          description: The thesaurus name.
        Description:
          type: string
          description: The thesaurus description.
        Status:
          type: string
          enum:
          - CREATING
          - ACTIVE
          - DELETING
          - UPDATING
          - ACTIVE_BUT_UPDATE_FAILED
          - FAILED
          description: The current status of the thesaurus. When the value is ACTIVE, queries are able to use the thesaurus.
            If the Status field value is FAILED, the ErrorMessage field provides more information. If the status is ACTIVE_BUT_UPDATE_FAILED,
            it means that Amazon Kendra could not ingest the new thesaurus file. The old thesaurus file is still active.
        ErrorMessage:
          type: string
          description: When the Status field value is FAILED, the ErrorMessage field provides more information.
        CreatedAt:
          type: string
          format: date-time
          description: The Unix timestamp when the thesaurus was created.
        UpdatedAt:
          type: string
          format: date-time
          description: The Unix timestamp when the thesaurus was last updated.
        RoleArn:
          type: string
          description: An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in SourceS3Path.
        SourceS3Path:
          $ref: '#/components/schemas/S3Path'
        FileSizeBytes:
          type: integer
          description: The size of the thesaurus file in bytes.
        TermCount:
          type: integer
          description: The number of unique terms in the thesaurus file. For example, the synonyms a,b,c and a=>d, the term
            count would be 4.
        SynonymRuleCount:
          type: integer
          description: The number of synonym rules in the thesaurus file.
    InternalServerException:
      type: object
      properties:
        Message:
          type: string
    ListThesauriRequest:
      type: object
      properties:
        IndexId:
          type: string
          description: The identifier of the index with one or more thesauri.
        NextToken:
          type: string
          description: If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns
            a pagination token in the response. You can use this pagination token to retrieve the next set of thesauri (ThesaurusSummaryItems).
        MaxResults:
          type: integer
          description: The maximum number of thesauri to return.
      required:
      - IndexId
    ListThesauriResponse:
      type: object
      properties:
        NextToken:
          type: string
          description: If the response is truncated, Amazon Kendra returns this token that you can use in the subsequent request
            to retrieve the next set of thesauri.
        ThesaurusSummaryItems:
          type: array
          items:
            $ref: '#/components/schemas/ThesaurusSummary'
          description: An array of summary information for a thesaurus or multiple thesauri.
    ResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
    S3Path:
      type: object
      properties:
        Bucket:
          type: string
          description: The name of the S3 bucket that contains the file.
        Key:
          type: string
          description: The name of the file.
      required:
      - Bucket
      - Key
    ServiceQuotaExceededException:
      type: object
      properties:
        Message:
          type: string
    Tag:
      type: object
      properties:
        Key:
          type: string
          description: The key for the tag. Keys are not case sensitive and must be unique for the index, FAQ, data source,
            or other resource.
        Value:
          type: string
          description: The value associated with the tag. The value may be an empty string but it can't be null.
      required:
      - Key
      - Value
    ThesaurusSummary:
      type: object
      properties:
        Id:
          type: string
          description: The identifier of the thesaurus.
        Name:
          type: string
          description: The name of the thesaurus.
        Status:
          type: string
          enum:
          - CREATING
          - ACTIVE
          - DELETING
          - UPDATING
          - ACTIVE_BUT_UPDATE_FAILED
          - FAILED
          description: The status of the thesaurus.
        CreatedAt:
          type: string
          format: date-time
          description: The Unix timestamp when the thesaurus was created.
        UpdatedAt:
          type: string
          format: date-time
          description: The Unix timestamp when the thesaurus was last updated.
    ThrottlingException:
      type: object
      properties:
        Message:
          type: string
    UpdateThesaurusRequest:
      type: object
      properties:
        Id:
          type: string
          description: The identifier of the thesaurus you want to update.
        Name:
          type: string
          description: A new name for the thesaurus.
        IndexId:
          type: string
          description: The identifier of the index for the thesaurus.
        Description:
          type: string
          description: A new description for the thesaurus.
        RoleArn:
          type: string
          description: An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in SourceS3Path.
        SourceS3Path:
          $ref: '#/components/schemas/S3Path'
      required:
      - Id
      - IndexId
    ValidationException:
      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/kendra/service/2019-02-03/kendra-2019-02-03.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)