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

# Create API key



## OpenAPI

````yaml openapi/devex.yaml post /developers/keys
openapi: 3.0.3
info:
  title: TXCloud DevEx API
  version: 1.0.0
  description: >
    Developer Experience API for managing API access, monitoring usage, and
    debugging.
servers:
  - url: https://api.txcloud.io/v1
  - url: https://sandbox.api.txcloud.io/v1
security:
  - BearerAuth: []
tags:
  - name: Keys
    description: API key management
  - name: Webhooks
    description: Webhook configuration
  - name: Usage
    description: Usage and billing
  - name: Logs
    description: Request logs
  - name: Sandbox
    description: Testing tools
  - name: Account
    description: Account management
paths:
  /developers/keys:
    post:
      tags:
        - Keys
      summary: Create API key
      operationId: createAPIKey
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/APIKeyCreate'
      responses:
        '201':
          description: Key created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIKeyCreated'
components:
  schemas:
    APIKeyCreate:
      type: object
      required:
        - name
        - environment
      properties:
        name:
          type: string
        environment:
          type: string
          enum:
            - live
            - test
        permissions:
          type: array
          items:
            type: string
        allowed_ips:
          type: array
          items:
            type: string
        rate_limit:
          type: integer
        expires_at:
          type: string
          format: date-time
    APIKeyCreated:
      allOf:
        - $ref: '#/components/schemas/APIKey'
        - type: object
          properties:
            key:
              type: string
              description: Full key (only shown once)
    APIKey:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        prefix:
          type: string
        environment:
          type: string
          enum:
            - live
            - test
        permissions:
          type: array
          items:
            type: string
        last_used:
          type: string
          format: date-time
        created_at:
          type: string
          format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````