Azure AI Search Admin Keys API

The Admin Keys API from Azure AI Search — 2 operation(s) for admin keys.

GitHub OpenAPI

Operations 2

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 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listAdminKeys Get admin keys for a search service · Admin keys get #
Ask an LLM
“What are the primary and secondary admin keys for my Azure AI Search service?”
“Can I read the admin API keys for a search service?”
Tell an agent
Get the admin keys for search service {searchServiceName} in {resourceGroupName}, subscription {subscriptionId}.
Show both admin API keys of {searchServiceName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind} Regenerate an admin key · Admin keys regenerate #
Ask an LLM
“How do I rotate the primary admin key of a search service?”
“Can I regenerate just the secondary admin key?”
Tell an agent
Regenerate the {keyKind} admin key for {searchServiceName} in {resourceGroupName}, subscription {subscriptionId}.
Rotate the secondary admin key of {searchServiceName}.

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/azure-ai-search:azure-ai-search-admin-keys-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

azure-ai-search-admin-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SearchManagementClient Admin Keys API
  version: '2026-11-01'
  description: Client that can be used to manage Azure AI Search services and API keys.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Admin Keys
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listAdminKeys
  : post:
      operationId: AdminKeys_Get
      tags:
      - Admin Keys
      description: Gets the primary and secondary admin API keys for the specified Azure AI Search service.
      externalDocs:
        url: https://aka.ms/search-manage
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: searchServiceName
        in: path
        description: The name of the Azure AI Search service associated with the specified resource group.
        required: true
        schema:
          type: string
          pattern: ^(?=.{2,60}$)[a-z0-9][a-z0-9]+(-[a-z0-9]+)*$
      - name: x-ms-client-request-id
        in: header
        description: A client-generated GUID value that identifies this request. If specified, this will be included in response information as a way to track the request.
        required: false
        x-ms-client-name: clientRequestId
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdminKeyResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Admin keys get
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}
  : post:
      operationId: AdminKeys_Regenerate
      tags:
      - Admin Keys
      description: Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
      externalDocs:
        url: https://aka.ms/search-manage
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: searchServiceName
        in: path
        description: The name of the Azure AI Search service associated with the specified resource group.
        required: true
        schema:
          type: string
          pattern: ^(?=.{2,60}$)[a-z0-9][a-z0-9]+(-[a-z0-9]+)*$
      - name: keyKind
        in: path
        description: Specifies which key to regenerate. Valid values include 'primary' and 'secondary'.
        required: true
        x-ms-enum:
          name: AdminKeyKind
          modelAsString: false
          values:
          - name: Primary
            value: primary
            description: The primary API key for the search service.
          - name: Secondary
            value: secondary
            description: The secondary API key for the search service.
        schema:
          type: string
          enum:
          - primary
          - secondary
      - name: x-ms-client-request-id
        in: header
        description: A client-generated GUID value that identifies this request. If specified, this will be included in response information as a way to track the request.
        required: false
        x-ms-client-name: clientRequestId
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdminKeyResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Admin keys regenerate
      x-summary-source: derived
components:
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: The name of the resource group. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription. The value must be an UUID.
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    AdminKeyResult:
      type: object
      description: Response containing the primary and secondary admin API keys for a given Azure AI Search service.
      properties:
        primaryKey:
          type: string
          description: The primary admin API key of the search service.
          readOnly: true
        secondaryKey:
          type: string
          description: The secondary admin API key of the search service.
          readOnly: true
    CloudErrorBody:
      type: object
      description: Describes a particular API error with an error code and a message.
      properties:
        code:
          type: string
          description: An error code that describes the error condition more precisely than an HTTP status code. Can be used to programmatically handle specific error cases.
        message:
          type: string
          description: A message that describes the error in detail and provides debugging information.
        target:
          type: string
          description: The target of the particular error (for example, the name of the property in error).
        details:
          type: array
          description: Contains nested errors that are related to this error.
          items:
            $ref: '#/components/schemas/CloudErrorBody'
      x-ms-external: true
    CloudError:
      type: object
      description: Contains information about an API error.
      properties:
        error:
          $ref: '#/components/schemas/CloudErrorBody'
          description: Describes a particular API error with an error code and a message.
        message:
          type: string
          description: A brief description of the error that hints at what went wrong (for details/debugging information refer to the 'error.message' property).
      x-ms-external: true
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.