AutoGPT API Keys API

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

Business capability
Developer Identity & Credential Management BC-4270.40

Operations 6

GET /api/api-keys List user API keys #
POST /api/api-keys Create new API key #
DELETE /api/api-keys/{key_id} Revoke API key #
GET /api/api-keys/{key_id} Get specific API key #
PUT /api/api-keys/{key_id}/permissions Update key permissions #
POST /api/api-keys/{key_id}/suspend Suspend API key #

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/autogpt:autogpt-api-keys-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

autogpt-api-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AutoGPT Agent Server API Keys API
  summary: AutoGPT Agent Server
  description: This server is used to execute agents that are created by the AutoGPT system.
  version: '0.1'
tags:
- name: API Keys
paths:
  /api/api-keys:
    get:
      tags:
      - API Keys
      summary: List user API keys
      description: List all API keys for the user
      operationId: getV1ListUserApiKeys
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/APIKeyInfo'
                type: array
                title: Response Getv1List User Api Keys
        '401':
          $ref: '#/components/responses/HTTP401NotAuthenticatedError'
      security:
      - HTTPBearerJWT: []
      x-operation-id-source: normalized
      x-operation-id-original: getV1List user api keys
    post:
      tags:
      - API Keys
      summary: Create new API key
      description: Create a new API key
      operationId: postV1CreateNewApiKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAPIKeyRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateAPIKeyResponse'
        '401':
          $ref: '#/components/responses/HTTP401NotAuthenticatedError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearerJWT: []
      x-operation-id-source: normalized
      x-operation-id-original: postV1Create new api key
  /api/api-keys/{key_id}:
    delete:
      tags:
      - API Keys
      summary: Revoke API key
      description: Revoke an API key
      operationId: deleteV1RevokeApiKey
      security:
      - HTTPBearerJWT: []
      parameters:
      - name: key_id
        in: path
        required: true
        schema:
          type: string
          title: Key Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIKeyInfo'
        '401':
          $ref: '#/components/responses/HTTP401NotAuthenticatedError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-operation-id-source: normalized
      x-operation-id-original: deleteV1Revoke api key
    get:
      tags:
      - API Keys
      summary: Get specific API key
      description: Get a specific API key
      operationId: getV1GetSpecificApiKey
      security:
      - HTTPBearerJWT: []
      parameters:
      - name: key_id
        in: path
        required: true
        schema:
          type: string
          title: Key Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIKeyInfo'
        '401':
          $ref: '#/components/responses/HTTP401NotAuthenticatedError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-operation-id-source: normalized
      x-operation-id-original: getV1Get specific api key
  /api/api-keys/{key_id}/permissions:
    put:
      tags:
      - API Keys
      summary: Update key permissions
      description: Update API key permissions
      operationId: putV1UpdateKeyPermissions
      security:
      - HTTPBearerJWT: []
      parameters:
      - name: key_id
        in: path
        required: true
        schema:
          type: string
          title: Key Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePermissionsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIKeyInfo'
        '401':
          $ref: '#/components/responses/HTTP401NotAuthenticatedError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-operation-id-source: normalized
      x-operation-id-original: putV1Update key permissions
  /api/api-keys/{key_id}/suspend:
    post:
      tags:
      - API Keys
      summary: Suspend API key
      description: Suspend an API key
      operationId: postV1SuspendApiKey
      security:
      - HTTPBearerJWT: []
      parameters:
      - name: key_id
        in: path
        required: true
        schema:
          type: string
          title: Key Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIKeyInfo'
        '401':
          $ref: '#/components/responses/HTTP401NotAuthenticatedError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-operation-id-source: normalized
      x-operation-id-original: postV1Suspend api key
components:
  schemas:
    APIKeyPermission:
      type: string
      enum:
      - IDENTITY
      - EXECUTE_GRAPH
      - READ_GRAPH
      - WRITE_GRAPH
      - EXECUTE_BLOCK
      - READ_BLOCK
      - READ_STORE
      - WRITE_LIBRARY
      - USE_TOOLS
      - MANAGE_INTEGRATIONS
      - READ_INTEGRATIONS
      - DELETE_INTEGRATIONS
      title: APIKeyPermission
    APIKeyStatus:
      type: string
      enum:
      - ACTIVE
      - REVOKED
      - SUSPENDED
      title: APIKeyStatus
    APIKeyInfo:
      properties:
        user_id:
          type: string
          title: User Id
        scopes:
          items:
            $ref: '#/components/schemas/APIKeyPermission'
          type: array
          title: Scopes
        type:
          type: string
          const: api_key
          title: Type
          default: api_key
        created_at:
          type: string
          format: date-time
          title: Created At
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
        last_used_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Used At
        revoked_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Revoked At
        organization_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Organization Id
        team_id_restriction:
          anyOf:
          - type: string
          - type: 'null'
          title: Team Id Restriction
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        head:
          type: string
          title: Head
          description: The first 8 characters of the key
        tail:
          type: string
          title: Tail
          description: The last 8 characters of the key
        status:
          $ref: '#/components/schemas/APIKeyStatus'
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        owner_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Owner Type
      type: object
      required:
      - user_id
      - scopes
      - created_at
      - id
      - name
      - head
      - tail
      - status
      title: APIKeyInfo
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CreateAPIKeyRequest:
      properties:
        name:
          type: string
          title: Name
        permissions:
          items:
            $ref: '#/components/schemas/APIKeyPermission'
          type: array
          title: Permissions
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
      type: object
      required:
      - name
      - permissions
      title: CreateAPIKeyRequest
    CreateAPIKeyResponse:
      properties:
        api_key:
          $ref: '#/components/schemas/APIKeyInfo'
        plain_text_key:
          type: string
          title: Plain Text Key
      type: object
      required:
      - api_key
      - plain_text_key
      title: CreateAPIKeyResponse
    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
    UpdatePermissionsRequest:
      properties:
        permissions:
          items:
            $ref: '#/components/schemas/APIKeyPermission'
          type: array
          title: Permissions
      type: object
      required:
      - permissions
      title: UpdatePermissionsRequest
  responses:
    HTTP401NotAuthenticatedError:
      description: Authentication required
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
  securitySchemes:
    APIKeyAuthenticator-X-Postmark-Webhook-Token:
      type: apiKey
      in: header
      name: X-Postmark-Webhook-Token
    HTTPBearer:
      type: http
      scheme: bearer
    HTTPBearerJWT:
      type: http
      scheme: bearer
      bearerFormat: jwt