past-dev Management API

Projects and project keys, with the management key.

Operations 4

GET /api/v1/projects List projects #
POST /api/v1/projects Create a project #
POST /api/v1/projects/{slug}/keys Mint a project key #
DELETE /api/v1/projects/{slug}/keys/{keyId} Revoke a project 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/past-dev:past-dev-management-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

past-dev-management-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Past Dev Management API
  version: 1.0.0
  contact:
    name: past.dev
    url: https://past.dev/call
    email: support@past.dev
  description: 'Operations tagged management across 2 of this provider''s published API definitions: past-dev-openapi.json, past-dev.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.past.dev
  description: Production
security:
- bearerAuth: []
tags:
- name: Management
  description: Projects and project keys, with the management key.
paths:
  /api/v1/projects:
    get:
      operationId: listProjects
      tags:
      - Management
      summary: List projects
      description: List the organization's projects, archived ones included, with each one's caps and month-to-date usage.
      security:
      - managementKeyAuth: []
      responses:
        '200':
          description: The organization's projects.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectList'
        '400':
          description: The request is malformed or violates a field constraint. Match behavior on the response code field.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'missing-api-key: no bearer. malformed-api-key: the header or the key has the wrong shape. unauthorized: the key is unknown, expired, revoked, or is a project key. These routes take the management key.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Any other failure uses the same JSON error envelope.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      operationId: createProject
      tags:
      - Management
      summary: Create a project
      description: Create a project from a display name. The slug is derived from the name and never changes.
      security:
      - managementKeyAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProjectRequest'
      responses:
        '201':
          description: The created project.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Project'
        '400':
          description: The request is malformed or violates a field constraint. Match behavior on the response code field.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'missing-api-key: no bearer. malformed-api-key: the header or the key has the wrong shape. unauthorized: the key is unknown, expired, revoked, or is a project key. These routes take the management key.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: The plan's projects are all in use, archived projects included.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Any other failure uses the same JSON error envelope.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.past.dev
      description: Production
  /api/v1/projects/{slug}/keys:
    post:
      operationId: createProjectKey
      tags:
      - Management
      summary: Mint a project key
      description: Mint a project key for one project. The clear value is in this response and nowhere else on the API.
      security:
      - managementKeyAuth: []
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
          minLength: 2
          maxLength: 40
        description: 'The slug: 2 to 40 lowercase letters, digits and dashes, with a letter or digit at each end.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateKeyRequest'
      responses:
        '201':
          description: The created key, with its clear value.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatedKey'
        '400':
          description: The request is malformed or violates a field constraint. Match behavior on the response code field.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'missing-api-key: no bearer. malformed-api-key: the header or the key has the wrong shape. unauthorized: the key is unknown, expired, revoked, or is a project key. These routes take the management key.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The organization holds no live project with this slug.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Any other failure uses the same JSON error envelope.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.past.dev
      description: Production
  /api/v1/projects/{slug}/keys/{keyId}:
    delete:
      operationId: revokeProjectKey
      tags:
      - Management
      summary: Revoke a project key
      description: Revoke one project key by the id returned when it was created. The key stops working on its next call. Returns no body.
      security:
      - managementKeyAuth: []
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
          minLength: 2
          maxLength: 40
        description: 'The slug: 2 to 40 lowercase letters, digits and dashes, with a letter or digit at each end.'
      - name: keyId
        in: path
        required: true
        schema:
          type: string
        description: The id returned when the key was created.
      responses:
        '204':
          description: The key was revoked. No response body.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
        '400':
          description: The request is malformed or violates a field constraint. Match behavior on the response code field.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 'missing-api-key: no bearer. malformed-api-key: the header or the key has the wrong shape. unauthorized: the key is unknown, expired, revoked, or is a project key. These routes take the management key.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The key is not a live key of that project.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Any other failure uses the same JSON error envelope.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.past.dev
      description: Production
components:
  schemas:
    CreateProjectRequest:
      type: object
      required:
      - name
      additionalProperties: false
      properties:
        name:
          type: string
          maxLength: 255
          description: Display name with at least two letters or digits. The slug is derived from it.
    CreatedKey:
      type: object
      required:
      - id
      - name
      - keyPrefix
      - keySuffix
      - createdAt
      - key
      additionalProperties: false
      properties:
        id:
          type: string
          description: The key id, used to revoke it.
        name:
          type: string
        keyPrefix:
          type: string
        keySuffix:
          type: string
        createdAt:
          type: string
          format: date-time
        key:
          type: string
          description: The clear value. Returned in this response and nowhere else.
    Error:
      type: object
      required:
      - code
      - status
      properties:
        code:
          type: string
          description: Stable kebab-case identifier.
        status:
          type: integer
          description: HTTP status repeated in the body.
        debugMessage:
          type: string
        data: {}
    ProjectList:
      type: object
      required:
      - projects
      additionalProperties: false
      properties:
        projects:
          type: array
          items:
            $ref: '#/components/schemas/Project'
    CreateKeyRequest:
      type: object
      required:
      - name
      additionalProperties: false
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 64
    Project:
      type: object
      required:
      - slug
      - name
      - description
      - isArchived
      - memoryCount
      - ingestionCap
      - monthIngestions
      - creditCap
      - monthCredits
      - createdAt
      additionalProperties: false
      properties:
        slug:
          type: string
        name:
          type: string
        description:
          type: string
        isArchived:
          type: boolean
        memoryCount:
          type: integer
        ingestionCap:
          type:
          - integer
          - 'null'
          description: The project's monthly data-point cap. Null when the project carries none.
        monthIngestions:
          type: integer
          description: Data points accepted this calendar month.
        creditCap:
          type:
          - integer
          - 'null'
          description: The project's monthly credit cap. Null when the project carries none.
        monthCredits:
          type: number
          description: Credits spent this calendar month.
        createdAt:
          type: string
          format: date-time
  headers:
    RequestId:
      description: Server-generated id of this call, beginning with req_. Present on every /api/v1 response. The console's Requests screen lists the call under it.
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Project API key beginning with past_sk_.
    managementKeyAuth:
      type: http
      scheme: bearer
      description: Management key beginning with past_mk_. One per organization, created from Settings in the console.
    agentTokenAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Agent access token for one person, issued by https://sso.past.dev after the person approves the agent. https://api.past.dev/auth.md gives the procedure. The operation names the scope it asks for: memory:read or memory:write. Send X-Past-Project with the project slug; without it, the only live project of the organization is used, and an organization with two or more returns 400 project-required. Managed service only.'
x-refined-from:
- past-dev-openapi.json
- past-dev.json