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

# Create Key

> Save a new API key.



## OpenAPI

````yaml /api-reference/openapi.json post /api/saved-api-keys
openapi: 3.1.0
info:
  title: apowerb API
  description: REST API of the apowerb agentic framework (open-source edition).
  version: 0.1.2
  license:
    name: MIT
    url: https://github.com/apowerb/apowerb/blob/main/LICENSE
servers:
  - url: https://api.example.com
    description: Your apowerb instance
  - url: http://localhost:8000
    description: Local stack
security: []
paths:
  /api/saved-api-keys:
    post:
      tags:
        - api-keys
      summary: Create Key
      description: Save a new API key.
      operationId: create_key_api_saved_api_keys_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiKeyCreateSchema'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ApiKeyCreateSchema:
      properties:
        key_name:
          type: string
          title: Key Name
        provider:
          type: string
          title: Provider
        api_key_value:
          type: string
          title: Api Key Value
        model:
          anyOf:
            - type: string
            - type: 'null'
          title: Model
        model_api_base:
          anyOf:
            - type: string
            - type: 'null'
          title: Model Api Base
        owner_id:
          type: string
          title: Owner Id
          default: ''
        organization_id:
          type: string
          title: Organization Id
          default: ''
      type: object
      required:
        - key_name
        - provider
        - api_key_value
      title: ApiKeyCreateSchema
      description: Schema for creating a saved API key.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

## Related topics

- [Create a dashboard](/api-reference/dashboards/create-a-dashboard.md)
- [Create Agent](/api-reference/agents/create-agent.md)
- [Create a chart](/api-reference/charts/create-a-chart.md)
- [List Keys](/api-reference/api-keys/list-keys.md)
- [Remove Key](/api-reference/api-keys/remove-key.md)
