Cosmic · Authentication Profile

Cosmic Authentication

Authentication

Cosmic secures its APIs with apiKey and http across 2 declared security schemes, as derived from its OpenAPI definitions.

CompanyHeadless CMSContent ManagementContent APIAI AgentsMCPWebhookJAMstack
Methods: apiKey, http Schemes: 2 OAuth flows: API key in: query

Security Schemes

readKey apiKey
· in: query (read_key)
writeKey http
scheme: bearer

Source

Authentication Profile

Raw ↑
generated: '2026-11-04'
method: searched
source: https://www.cosmicjs.com/docs/api/authentication.md
summary:
  types:
  - apiKey
  - http
  api_key_in:
  - query
schemes:
- name: readKey
  type: apiKey
  in: query
  parameter: read_key
  description: The Bucket read key, passed as a query parameter. Grants read access to a single Bucket and nothing
    else. Find it under Bucket > Settings > API Access in the dashboard. Buckets with no read key configured accept
    reads without one.
  sources:
  - openapi/cosmicjs-com-openapi.yml
- name: writeKey
  type: http
  scheme: bearer
  description: 'The Bucket write key, passed as `Authorization: Bearer <write_key>`. Grants read and write access
    to a single Bucket and nothing else. Find it under Bucket > Settings > API Access in the dashboard. The bare
    key without the `Bearer ` prefix is also accepted, but `Bearer` is the documented form. Buckets with no write
    key configured accept writes without one.'
  sources:
  - openapi/cosmicjs-com-openapi.yml
docs: https://www.cosmicjs.com/docs/api/authentication
derived_from: openapi/cosmicjs-com-openapi.yml
documented_credentials:
- name: Bucket read key
  use: read access to one Bucket (read_key query parameter)
  where: Bucket Settings > API Access
- name: Bucket write key
  use: 'writes to one Bucket via Authorization: Bearer header'
  note: Never expose your Bucket write key in any client-side code.
- name: Personal Access Token
  prefix: cos_
  host: dapi.cosmicjs.com
  use: dashboard-level API access (agents, workflows, account settings); recommended for the Agent messages API
  note: Tokens use the `cos_` prefix and carry your full account permissions.
- name: Agent key
  prefix: agk_
  use: short-lived bearer token issued by POST /v3/agents/sign-up; authenticates only the agent-flow endpoints (POST
    /v3/agents/verify, GET /v3/agents/status)

Work with this as data

Every security artifact 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 security posture

4 MCP tools reach this
  • find_securityBrowse and filter every security artifact in the catalog.
  • 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 security artifact
curl "https://apis.io/api/v1/security/cosmicjs-com-authentication"
All security posture
curl "https://apis.io/api/v1/security?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.