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

# Generate API Key

> Generates a new API key. Rate limited to 1 per IP per day. The key is returned only once and cannot be retrieved again.



## OpenAPI

````yaml POST /v1/keys
openapi: 3.1.0
info:
  title: PolyNode API
  description: >-
    Real-time Polymarket data API with decoded mempool settlements, OHLCV
    candles, and full Polygon JSON-RPC proxy.
  contact:
    name: PolyNode
    url: https://polynode.dev
  license:
    name: ''
  version: 2.0.0
servers:
  - url: https://api.polynode.dev
    description: Production
security:
  - api_key: []
paths:
  /v1/keys:
    post:
      tags:
        - System
      summary: Generate API key
      description: >-
        Generates a new API key. Rate limited to 1 per IP per day. The key is
        returned only once and cannot be retrieved again.
      operationId: create_api_key
      requestBody:
        description: Optional key name
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateKeyBody'
        required: true
      responses:
        '201':
          description: API key created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyResponse'
        '429':
          description: Key generation rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    CreateKeyBody:
      type: object
      properties:
        name:
          type:
            - string
            - 'null'
    ApiKeyResponse:
      type: object
      required:
        - api_key
        - name
        - rate_limit_per_minute
        - message
      properties:
        api_key:
          type: string
        message:
          type: string
        name:
          type: string
        rate_limit_per_minute:
          type: integer
          format: int32
          minimum: 0
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: x-api-key

````