Amazon OpenSearch Service API Opensearch Index API
The Opensearch Index API from Amazon OpenSearch Service API — 2 operation(s) for opensearch index.
The Opensearch Index API from Amazon OpenSearch Service API — 2 operation(s) for opensearch index.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/amazon-opensearch:amazon-opensearch-index-api"
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.
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: 3.1.0
info:
title: Amazon OpenSearch Service Index API
version: '2021-01-01'
description: Generated from AWS's published Smithy model for Amazon OpenSearch Service. 8 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://es.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
paths:
/2021-01-01/opensearch/domain/{DomainName}/index:
post:
operationId: CreateIndex
summary: Create Index
description: Creates an OpenSearch index with optional automatic semantic enrichment for specified text fields. Automatic
semantic enrichment enables semantic search capabilities without requiring machine learning expertise, improving search
relevance by up to 20% by understanding search intent and contextual meaning beyond keyword matching. The semantic
enrichment process has zero impact on search latency as sparse encodings are stored directly within the index during
indexing. For more information, see Automatic semantic enrichment.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/CreateIndexResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'424':
description: DependencyFailureException
content:
application/json:
schema:
$ref: '#/components/schemas/DependencyFailureException'
'409':
description: DisabledOperationException; ResourceAlreadyExistsException; ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/DisabledOperationException'
'500':
description: InternalException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/ThrottlingException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
parameters:
- name: DomainName
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
IndexName:
type: string
description: The name of the index to create. Must be between 1 and 255 characters and follow OpenSearch
naming conventions.
IndexSchema:
type: object
description: The JSON schema defining index mappings, settings, and semantic enrichment configuration. The
schema specifies which text fields should be automatically enriched for semantic search capabilities and
includes OpenSearch index configuration parameters.
required:
- IndexName
- IndexSchema
tags:
- Index
/2021-01-01/opensearch/domain/{DomainName}/index/{IndexName}:
delete:
operationId: DeleteIndex
summary: Delete Index
description: Deletes an OpenSearch index. This operation permanently removes the index and cannot be undone.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteIndexResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'424':
description: DependencyFailureException
content:
application/json:
schema:
$ref: '#/components/schemas/DependencyFailureException'
'409':
description: DisabledOperationException; ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/DisabledOperationException'
'500':
description: InternalException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/ThrottlingException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
parameters:
- name: DomainName
in: path
required: true
schema:
type: string
- name: IndexName
in: path
required: true
schema:
type: string
description: The name of the index to delete.
tags:
- Index
get:
operationId: GetIndex
summary: Get Index
description: Retrieves information about an OpenSearch index including its schema and semantic enrichment configuration.
Use this operation to view the current index structure and semantic search settings.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/GetIndexResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'424':
description: DependencyFailureException
content:
application/json:
schema:
$ref: '#/components/schemas/DependencyFailureException'
'409':
description: DisabledOperationException; ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/DisabledOperationException'
'500':
description: InternalException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/ThrottlingException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
parameters:
- name: DomainName
in: path
required: true
schema:
type: string
- name: IndexName
in: path
required: true
schema:
type: string
description: The name of the index to retrieve information about.
tags:
- Index
put:
operationId: UpdateIndex
summary: Update Index
description: Updates an existing OpenSearch index schema and semantic enrichment configuration. This operation allows
modification of field mappings and semantic search settings for text fields. Changes to semantic enrichment configuration
will apply to newly ingested documents.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateIndexResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'424':
description: DependencyFailureException
content:
application/json:
schema:
$ref: '#/components/schemas/DependencyFailureException'
'409':
description: DisabledOperationException; ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/DisabledOperationException'
'500':
description: InternalException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/ThrottlingException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
parameters:
- name: DomainName
in: path
required: true
schema:
type: string
- name: IndexName
in: path
required: true
schema:
type: string
description: The name of the index to update.
requestBody:
content:
application/json:
schema:
type: object
properties:
IndexSchema:
type: object
description: The updated JSON schema for the index including any changes to mappings, settings, and semantic
enrichment configuration.
required:
- IndexSchema
tags:
- Index
/#CreateIndex:
post:
operationId: CreateIndex
summary: Create Index
description: Creates an index within an OpenSearch Serverless collection. Unlike other OpenSearch indexes, indexes created
by this API are automatically configured to conduct automatic semantic enrichment ingestion and search. For more information,
see About automatic semantic enrichment in the OpenSearch User Guide.
responses:
'200':
description: Success
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AossCreateIndexResponse'
'409':
description: ConflictException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AossConflictException'
'500':
description: InternalServerException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AossResourceNotFoundException'
'400':
description: ValidationException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AossValidationException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- OpenSearchServerless.CreateIndex
requestBody:
required: true
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/CreateIndexRequest'
tags:
- Index
servers:
- url: https://aoss.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4_aoss: []
/#GetIndex:
post:
operationId: GetIndex
summary: Get Index
description: Retrieves information about an index in an OpenSearch Serverless collection, including its schema definition.
The index might be configured to conduct automatic semantic enrichment ingestion and search. For more information,
see About automatic semantic enrichment.
responses:
'200':
description: Success
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AossGetIndexResponse'
'500':
description: InternalServerException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AossResourceNotFoundException'
'400':
description: ValidationException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AossValidationException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- OpenSearchServerless.GetIndex
requestBody:
required: true
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/GetIndexRequest'
tags:
- Index
servers:
- url: https://aoss.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4_aoss: []
/#UpdateIndex:
post:
operationId: UpdateIndex
summary: Update Index
description: Updates an existing index in an OpenSearch Serverless collection. This operation allows you to modify the
index schema, including adding new fields or changing field mappings. You can also enable automatic semantic enrichment
ingestion and search. For more information, see About automatic semantic enrichment.
responses:
'200':
description: Success
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AossUpdateIndexResponse'
'500':
description: InternalServerException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AossResourceNotFoundException'
'400':
description: ValidationException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AossValidationException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- OpenSearchServerless.UpdateIndex
requestBody:
required: true
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/UpdateIndexRequest'
tags:
- Index
servers:
- url: https://aoss.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4_aoss: []
/#DeleteIndex:
post:
operationId: DeleteIndex
summary: Delete Index
description: Deletes an index from an OpenSearch Serverless collection. Be aware that the index might be configured
to conduct automatic semantic enrichment ingestion and search. For more information, see About automatic semantic
enrichment.
responses:
'200':
description: Success
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AossDeleteIndexResponse'
'500':
description: InternalServerException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AossResourceNotFoundException'
'400':
description: ValidationException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AossValidationException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- OpenSearchServerless.DeleteIndex
requestBody:
required: true
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/DeleteIndexRequest'
tags:
- Index
servers:
- url: https://aoss.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4_aoss: []
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: es
sigv4_aoss:
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: aoss
schemas:
AccessDeniedException:
type: object
properties:
message:
type: string
description: A description of the error.
AossConflictException:
type: object
properties:
message:
type: string
AossCreateIndexResponse:
type: object
properties: {}
AossDeleteIndexResponse:
type: object
properties: {}
AossGetIndexResponse:
type: object
properties:
indexSchema:
type: object
description: The JSON schema definition for the index, including field mappings and settings.
AossResourceNotFoundException:
type: object
properties:
message:
type: string
AossUpdateIndexResponse:
type: object
properties: {}
AossValidationException:
type: object
properties:
message:
type: string
CreateIndexRequest:
type: object
properties:
id:
type: string
description: The unique identifier of the collection in which to create the index.
indexName:
type: string
description: The name of the index to create. Index names must be lowercase and can't begin with underscores (_)
or hyphens (-).
indexSchema:
type: object
description: The JSON schema definition for the index, including field mappings and settings.
required:
- id
- indexName
CreateIndexResponse:
type: object
properties:
Status:
type: string
enum:
- CREATED
- UPDATED
- DELETED
description: The status of the index creation operation.
required:
- Status
DeleteIndexRequest:
type: object
properties:
id:
type: string
description: The unique identifier of the collection containing the index to delete.
indexName:
type: string
description: The name of the index to delete.
required:
- id
- indexName
DeleteIndexResponse:
type: object
properties:
Status:
type: string
enum:
- CREATED
- UPDATED
- DELETED
description: The status of the index deletion operation.
required:
- Status
DependencyFailureException:
type: object
properties:
message:
type: string
description: A description of the error.
DisabledOperationException:
type: object
properties:
message:
type: string
description: A description of the error.
GetIndexRequest:
type: object
properties:
id:
type: string
description: The unique identifier of the collection containing the index.
indexName:
type: string
description: The name of the index to retrieve information about.
required:
- id
- indexName
GetIndexResponse:
type: object
properties:
IndexSchema:
type: object
description: The JSON schema of the index including mappings, settings, and semantic enrichment configuration.
required:
- IndexSchema
InternalException:
type: object
properties:
message:
type: string
description: A description of the error.
InternalServerException:
type: object
properties:
message:
type: string
ThrottlingException:
type: object
properties:
message:
type: string
description: A description of the error.
UpdateIndexRequest:
type: object
properties:
id:
type: string
description: The unique identifier of the collection containing the index to update.
indexName:
type: string
description: The name of the index to update.
indexSchema:
type: object
description: The updated JSON schema definition for the index, including field mappings and settings.
required:
- id
- indexName
UpdateIndexResponse:
type: object
properties:
Status:
type: string
enum:
- CREATED
- UPDATED
- DELETED
description: The status of the index update operation.
required:
- Status
ValidationException:
type: object
properties:
message:
type: string
description: A description of the error.
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/opensearch/service/2021-01-01/opensearch-2021-01-01.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)
sources:
- https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/opensearch/service/2021-01-01/opensearch-2021-01-01.json
- https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/opensearchserverless/service/2021-11-01/opensearchserverless-2021-11-01.json