> ## Documentation Index
> Fetch the complete documentation index at: https://arizeai-433a7140.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a system API key

> Create a system API key. System keys belong to the system user rather than to any human, so this endpoint is restricted to admins. Creation requires an admin access-token session or the configured admin secret; API keys cannot mint keys. The response contains the key itself, which is shown only once and cannot be retrieved afterwards.



## OpenAPI

````yaml post /v1/system/api_keys
openapi: 3.1.0
info:
  title: Arize-Phoenix REST API
  description: Schema for Arize-Phoenix REST API
  version: '1.0'
servers: []
security: []
paths:
  /v1/system/api_keys:
    post:
      tags:
        - api_keys
      summary: Create a system API key
      description: >-
        Create a system API key. System keys belong to the system user rather
        than to any human, so this endpoint is restricted to admins. Creation
        requires an admin access-token session or the configured admin secret;
        API keys cannot mint keys. The response contains the key itself, which
        is shown only once and cannot be retrieved afterwards.
      operationId: createSystemApiKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateApiKeyRequestBody'
        required: true
      responses:
        '201':
          description: The newly created system API key, including the key itself.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateApiKeyResponseBody'
        '401':
          content:
            text/plain:
              schema:
                type: string
          description: Unauthorized
        '403':
          content:
            text/plain:
              schema:
                type: string
          description: Forbidden
        '422':
          content:
            text/plain:
              schema:
                type: string
          description: Unprocessable Entity
        '507':
          description: Insufficient Storage
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    CreateApiKeyRequestBody:
      properties:
        data:
          $ref: '#/components/schemas/ApiKeyData'
      type: object
      required:
        - data
      title: CreateApiKeyRequestBody
    CreateApiKeyResponseBody:
      properties:
        data:
          $ref: '#/components/schemas/CreatedApiKey'
      type: object
      required:
        - data
      title: CreateApiKeyResponseBody
    ApiKeyData:
      properties:
        name:
          type: string
          title: Name
          description: A human-readable name for the API key.
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: An optional description of what the API key is for.
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
          description: When the API key expires. The key never expires when omitted.
      type: object
      required:
        - name
      title: ApiKeyData
    CreatedApiKey:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        created_at:
          type: string
          format: date-time
          title: Created At
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
        key:
          type: string
          title: Key
          description: >-
            The API key. This is the only time it is returned; it cannot be
            recovered from the listing endpoints.
      type: object
      required:
        - id
        - name
        - created_at
        - key
      title: CreatedApiKey

````