> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coinvoyage.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create API Key

> Create another credential for the authenticated entity. The full key and secret are returned only in this response and exact idempotent replays.



## OpenAPI

````yaml https://api.coinvoyage.io/v3/openapi.json post /api-keys
openapi: 3.1.0
info:
  title: CoinVoyage API (v3)
  description: >-
    CoinVoyage v3 payment API. Unified Intent envelope, snake_case money via the
    Amount shape, and a single SHA-256 signature scheme.
  version: 3.0.0
servers:
  - url: https://api.coinvoyage.io/v3
security: []
paths:
  /api-keys:
    post:
      tags:
        - api-keys
      summary: Create API Key
      description: >-
        Create another credential for the authenticated entity. The full key and
        secret are returned only in this response and exact idempotent replays.
      operationId: v3CreateAPIKey
      parameters:
        - description: >-
            HMAC-SHA256 signature header:
            'APIKey=<api_key>,signature=<hex>,timestamp=<unix_timestamp>'. The
            signature is computed over METHOD + path (with the /v3 prefix
            stripped) + timestamp.
          in: header
          name: Authorization-Signature
          required: true
          schema:
            type: string
        - description: >-
            Required client-generated key. Retrying the same request returns the
            originally created API key and secret. Reusing it with a different
            payload returns 409. Maximum 255 characters.
          in: header
          name: Idempotency-Key
          required: true
          schema:
            maxLength: 255
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAPIKeyRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIKeyCreated'
          description: Idempotent replay
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIKeyCreated'
          description: API key created
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Idempotency conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid request
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
      security:
        - Authorization: []
components:
  schemas:
    CreateAPIKeyRequest:
      properties:
        label:
          maxLength: 100
          type: string
      type: object
    APIKeyCreated:
      properties:
        active:
          type: boolean
        api_key:
          type: string
        api_key_last_four:
          maxLength: 4
          type: string
        api_secret:
          type: string
        created_at:
          format: date-time
          type: string
        id:
          type: string
        is_live:
          type: boolean
        label:
          maxLength: 100
          type: string
        last_used_at:
          format: date-time
          type: string
        updated_at:
          format: date-time
          type: string
      required:
        - id
        - active
        - is_live
        - api_key_last_four
        - created_at
        - updated_at
        - api_key
        - api_secret
      type: object
    ErrorResponse:
      example:
        code: 400
        error: Bad Request
        message: Invalid request parameters
      properties:
        error:
          example: Bad Request
          type: string
        message:
          example: Invalid request parameters
          type: string
        code:
          example: 400
          format: int64
          type: integer
        details:
          anyOf:
            - type: string
            - type: number
            - type: object
      required:
        - error
        - message
        - code
      type: object
  securitySchemes:
    Authorization:
      description: >-
        HMAC-SHA256 signature. See the Authorization-Signature header parameter
        on signed operations.
      in: header
      name: Authorization
      type: apiKey

````