Daytona API Keys API

The api-keys API from Daytona — 4 operation(s) for api-keys.

GitHub OpenAPI

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api-keys List API keys · List API keys #
Ask an LLM
“Which API keys exist in my organization?”
“Can I see all the API keys we've issued?”
Tell an agent
List my organization's API keys.
Show every API key in organization {org}.
POST /api-keys Create an API key · Create API key #
Ask an LLM
“How do I generate a new API key for my organization?”
“Can I set an expiry date on a new API key?”
Tell an agent
Create an API key named {name} with permissions {permissions}.
Generate a new API key {name} for organization {org} that expires at {expires}.
GET /api-keys/current Get the current API key · Get current API key's details #
Ask an LLM
“What are the details of the API key my client is using?”
“Can I check the permissions of the key my current session holds?”
Tell an agent
Show the details of my current API key.
Get the API key my client is authenticated with in organization {org}.
DELETE /api-keys/{name} Delete an API key · Delete API key #
Ask an LLM
“How do I revoke an API key I no longer need?”
“Can I delete an API key by its name?”
Tell an agent destructive · confirm first
Delete API key {name}.
Revoke API key {name} in organization {org}.
GET /api-keys/{name} Get an API key · Get API key #
Ask an LLM
“How do I look up one API key by name?”
“Can I check the expiry of a specific API key?”
Tell an agent
Get API key {name}.
Show the details of API key {name} in organization {org}.
DELETE /api-keys/{userId}/{name} Delete an API key for a user · Delete API key for user #
Ask an LLM
“How do I revoke a user's API key?”
“Can I remove an API key that belongs to a specific user?”
Tell an agent destructive · confirm first
Delete API key {name} for user {userId}.
Revoke user {userId}'s API key {name} in organization {org}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/daytona-io:daytona-io-api-keys-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

daytona-io-api-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: support@daytona.com
    name: Daytona Platforms Inc.
    url: https://www.daytona.io
  description: Daytona AI platform API Docs
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  title: Daytona API Keys API
  version: '1.0'
servers:
- url: http://localhost:3000
tags:
- name: API Keys
paths:
  /api-keys:
    get:
      operationId: listApiKeys
      parameters:
      - description: Use with JWT to specify the organization ID
        explode: false
        in: header
        name: X-Daytona-Organization-ID
        required: false
        schema:
          type: string
        style: simple
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ApiKeyList'
                type: array
          description: API keys retrieved successfully.
        '500':
          description: Error fetching API keys.
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: List API keys
      tags:
      - API Keys
    post:
      operationId: createApiKey
      parameters:
      - description: Use with JWT to specify the organization ID
        explode: false
        in: header
        name: X-Daytona-Organization-ID
        required: false
        schema:
          type: string
        style: simple
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateApiKey'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyResponse'
          description: API key created successfully.
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Create API key
      tags:
      - API Keys
  /api-keys/current:
    get:
      operationId: getCurrentApiKey
      parameters:
      - description: Use with JWT to specify the organization ID
        explode: false
        in: header
        name: X-Daytona-Organization-ID
        required: false
        schema:
          type: string
        style: simple
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyList'
          description: API key retrieved successfully.
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Get current API key's details
      tags:
      - API Keys
  /api-keys/{name}:
    delete:
      operationId: deleteApiKey
      parameters:
      - description: Use with JWT to specify the organization ID
        explode: false
        in: header
        name: X-Daytona-Organization-ID
        required: false
        schema:
          type: string
        style: simple
      - explode: false
        in: path
        name: name
        required: true
        schema:
          type: string
        style: simple
      responses:
        '204':
          description: API key deleted successfully.
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Delete API key
      tags:
      - API Keys
    get:
      operationId: getApiKey
      parameters:
      - description: Use with JWT to specify the organization ID
        explode: false
        in: header
        name: X-Daytona-Organization-ID
        required: false
        schema:
          type: string
        style: simple
      - explode: false
        in: path
        name: name
        required: true
        schema:
          type: string
        style: simple
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyList'
          description: API key retrieved successfully.
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Get API key
      tags:
      - API Keys
  /api-keys/{userId}/{name}:
    delete:
      operationId: deleteApiKeyForUser
      parameters:
      - description: Use with JWT to specify the organization ID
        explode: false
        in: header
        name: X-Daytona-Organization-ID
        required: false
        schema:
          type: string
        style: simple
      - explode: false
        in: path
        name: userId
        required: true
        schema:
          type: string
        style: simple
      - explode: false
        in: path
        name: name
        required: true
        schema:
          type: string
        style: simple
      responses:
        '204':
          description: API key deleted successfully.
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Delete API key for user
      tags:
      - API Keys
components:
  schemas:
    CreateApiKey:
      example:
        permissions:
        - write:registries
        - write:registries
        name: My API Key
        expiresAt: '2025-06-09T12:00:00.000Z'
      properties:
        name:
          description: The name of the API key
          example: My API Key
          type: string
        permissions:
          description: The list of organization resource permissions explicitly assigned to the API key
          items:
            enum:
            - write:registries
            - delete:registries
            - write:snapshots
            - delete:snapshots
            - write:sandboxes
            - delete:sandboxes
            - read:volumes
            - write:volumes
            - delete:volumes
            - write:regions
            - delete:regions
            - read:runners
            - write:runners
            - delete:runners
            - read:audit_logs
            - manage:api_keys
            - manage:secrets
            - read:limits
            - manage:sso
            - read:billing
            - manage:billing
            type: string
            x-enum-varnames:
            - WRITE_REGISTRIES
            - DELETE_REGISTRIES
            - WRITE_SNAPSHOTS
            - DELETE_SNAPSHOTS
            - WRITE_SANDBOXES
            - DELETE_SANDBOXES
            - READ_VOLUMES
            - WRITE_VOLUMES
            - DELETE_VOLUMES
            - WRITE_REGIONS
            - DELETE_REGIONS
            - READ_RUNNERS
            - WRITE_RUNNERS
            - DELETE_RUNNERS
            - READ_AUDIT_LOGS
            - MANAGE_API_KEYS
            - MANAGE_SECRETS
            - READ_LIMITS
            - MANAGE_SSO
            - READ_BILLING
            - MANAGE_BILLING
          type: array
        expiresAt:
          description: When the API key expires
          example: '2025-06-09T12:00:00.000Z'
          format: date-time
          type:
          - string
          - 'null'
      required:
      - name
      - permissions
      type: object
    ApiKeyList:
      example:
        organizationId: 123e4567-e89b-12d3-a456-426614174000
        createdAt: '2024-03-14T12:00:00.000Z'
        lastUsedAt: '2024-03-14T12:00:00.000Z'
        permissions:
        - write:registries
        - write:registries
        name: My API Key
        value: bb_********************def
        userId: '123'
        expiresAt: '2024-03-14T12:00:00.000Z'
      properties:
        name:
          description: The name of the API key
          example: My API Key
          type: string
        value:
          description: The masked API key value
          example: bb_********************def
          type: string
        createdAt:
          description: When the API key was created
          example: '2024-03-14T12:00:00.000Z'
          format: date-time
          type: string
        permissions:
          description: The list of organization resource permissions assigned to the API key
          items:
            enum:
            - write:registries
            - delete:registries
            - write:snapshots
            - delete:snapshots
            - write:sandboxes
            - delete:sandboxes
            - read:volumes
            - write:volumes
            - delete:volumes
            - write:regions
            - delete:regions
            - read:runners
            - write:runners
            - delete:runners
            - read:audit_logs
            - manage:api_keys
            - manage:secrets
            - read:limits
            - manage:sso
            - read:billing
            - manage:billing
            type: string
            x-enum-varnames:
            - WRITE_REGISTRIES
            - DELETE_REGISTRIES
            - WRITE_SNAPSHOTS
            - DELETE_SNAPSHOTS
            - WRITE_SANDBOXES
            - DELETE_SANDBOXES
            - READ_VOLUMES
            - WRITE_VOLUMES
            - DELETE_VOLUMES
            - WRITE_REGIONS
            - DELETE_REGIONS
            - READ_RUNNERS
            - WRITE_RUNNERS
            - DELETE_RUNNERS
            - READ_AUDIT_LOGS
            - MANAGE_API_KEYS
            - MANAGE_SECRETS
            - READ_LIMITS
            - MANAGE_SSO
            - READ_BILLING
            - MANAGE_BILLING
          type: array
        lastUsedAt:
          description: When the API key was last used
          example: '2024-03-14T12:00:00.000Z'
          format: date-time
          type:
          - string
          - 'null'
        expiresAt:
          description: When the API key expires
          example: '2024-03-14T12:00:00.000Z'
          format: date-time
          type:
          - string
          - 'null'
        userId:
          description: The user ID of the user who created the API key
          example: '123'
          type: string
        organizationId:
          description: The organization ID associated with the API key
          example: 123e4567-e89b-12d3-a456-426614174000
          type: string
      required:
      - createdAt
      - expiresAt
      - lastUsedAt
      - name
      - permissions
      - userId
      - value
      type: object
    ApiKeyResponse:
      example:
        createdAt: '2024-03-14T12:00:00.000Z'
        permissions:
        - write:registries
        - write:registries
        name: My API Key
        value: bb_sk_1234567890abcdef
        expiresAt: '2025-06-09T12:00:00.000Z'
      properties:
        name:
          description: The name of the API key
          example: My API Key
          type: string
        value:
          description: The API key value
          example: bb_sk_1234567890abcdef
          type: string
        createdAt:
          description: When the API key was created
          example: '2024-03-14T12:00:00.000Z'
          format: date-time
          type: string
        permissions:
          description: The list of organization resource permissions assigned to the API key
          items:
            enum:
            - write:registries
            - delete:registries
            - write:snapshots
            - delete:snapshots
            - write:sandboxes
            - delete:sandboxes
            - read:volumes
            - write:volumes
            - delete:volumes
            - write:regions
            - delete:regions
            - read:runners
            - write:runners
            - delete:runners
            - read:audit_logs
            - manage:api_keys
            - manage:secrets
            - read:limits
            - manage:sso
            - read:billing
            - manage:billing
            type: string
            x-enum-varnames:
            - WRITE_REGISTRIES
            - DELETE_REGISTRIES
            - WRITE_SNAPSHOTS
            - DELETE_SNAPSHOTS
            - WRITE_SANDBOXES
            - DELETE_SANDBOXES
            - READ_VOLUMES
            - WRITE_VOLUMES
            - DELETE_VOLUMES
            - WRITE_REGIONS
            - DELETE_REGIONS
            - READ_RUNNERS
            - WRITE_RUNNERS
            - DELETE_RUNNERS
            - READ_AUDIT_LOGS
            - MANAGE_API_KEYS
            - MANAGE_SECRETS
            - READ_LIMITS
            - MANAGE_SSO
            - READ_BILLING
            - MANAGE_BILLING
          type: array
        expiresAt:
          description: When the API key expires
          example: '2025-06-09T12:00:00.000Z'
          format: date-time
          type:
          - string
          - 'null'
      required:
      - createdAt
      - expiresAt
      - name
      - permissions
      - value
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: API Key access
      scheme: bearer
      type: http
    oauth2:
      openIdConnectUrl: http://localhost:3000/.well-known/openid-configuration
      type: openIdConnect
x-provenance:
  method: harvested
  publisher: Daytona
  source: https://www.daytona.io/docs/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)