Astrocal API Keys API
The API Keys API from Astrocal — 2 operation(s) for api keys.
The API Keys API from Astrocal — 2 operation(s) for api keys.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/astrocal-dev:astrocal-dev-api-keys-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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: 3.2.0
info:
title: Astrocal API Keys API
version: 1.0.0
description: Scheduling API for AI agents and developers
servers:
- url: https://api.astrocal.dev
description: Production
- url: https://api.astrocal.dev
description: Local development
security:
- BearerAuth: []
tags:
- name: API Keys
paths:
/v1/api-keys:
post:
tags:
- API Keys
summary: Create an API key
description: 'Creates a new API key for the authenticated organization. The full key is returned in the response — this is the only time it will be shown. Requires dashboard authentication: requests authenticated with an API key are rejected, so a leaked key cannot be used to mint further keys.'
requestBody:
content:
application/json:
schema:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 100
mode:
type: string
enum:
- live
- test
expires_at:
type: string
format: date-time
required:
- name
- mode
responses:
'201':
description: API key created
content:
application/json:
schema:
type: object
properties:
id:
type: string
org_id:
type: string
name:
type: string
key:
type: string
key_prefix:
type: string
mode:
type: string
enum:
- live
- test
expires_at:
type: string
nullable: true
created_at:
type: string
warning:
type: string
required:
- id
- org_id
- name
- key
- key_prefix
- mode
- expires_at
- created_at
- warning
'400':
description: Invalid input
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
details:
type: object
additionalProperties:
nullable: true
required:
- code
- message
required:
- error
'401':
description: Unauthorized
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
details:
type: object
additionalProperties:
nullable: true
required:
- code
- message
required:
- error
'403':
description: Forbidden — API keys cannot create other API keys
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
details:
type: object
additionalProperties:
nullable: true
required:
- code
- message
required:
- error
operationId: postV1ApiKeys
x-operation-id-source: derived
get:
tags:
- API Keys
summary: List API keys
description: Lists all API keys for the authenticated organization. Full keys are never shown — only the prefix for identification.
responses:
'200':
description: API keys list
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
id:
type: string
name:
type: string
key_prefix:
type: string
mode:
type: string
enum:
- live
- test
last_used_at:
type: string
nullable: true
expires_at:
type: string
nullable: true
revoked_at:
type: string
nullable: true
created_at:
type: string
required:
- id
- name
- key_prefix
- mode
- last_used_at
- expires_at
- revoked_at
- created_at
required:
- data
'401':
description: Unauthorized
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
details:
type: object
additionalProperties:
nullable: true
required:
- code
- message
required:
- error
operationId: getV1ApiKeys
x-operation-id-source: derived
/v1/api-keys/{id}:
delete:
tags:
- API Keys
summary: Revoke an API key
description: Revokes an API key by setting its revoked_at timestamp. Revoked keys immediately fail authentication. Idempotent — revoking an already-revoked key returns 204.
parameters:
- schema:
type: string
required: true
name: id
in: path
responses:
'204':
description: API key revoked
'401':
description: Unauthorized
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
details:
type: object
additionalProperties:
nullable: true
required:
- code
- message
required:
- error
'404':
description: API key not found
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
details:
type: object
additionalProperties:
nullable: true
required:
- code
- message
required:
- error
operationId: deleteV1ApiKeysById
x-operation-id-source: derived
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: API key authentication. Use your API key as the bearer token.