mocop
Browse · Docs · Guide · Analyze

Cosmic REST API v3

API by Cosmic · rest

The Cosmic v3 REST API for content operations against a single Bucket. When to use this API Reach for this API to model content (Object types and Metafields), create and query content (Objects), read version history (Revisions), and manage media metadata. A Bucket is the unit of isolation: every path below is scoped to one Bucket slug, and the access keys are per-Bucket. Authentication Reads use the Bucket read key as a read_key query parameter. Writes use the Bucket write key as an Authorization: Bearer header. Both keys are found under Bucket > Settings > API Access in the dashboard. There is no account-level credential: a key grants access to exactly one Bucket. Scope of this document This document describes only the endpoints served by https://api.cosmicjs.com/v3. Other documented parts of the Cosmic surface live on different hosts: - Agent signup, agent status, and user endpoints (/v3/agents/*, /v3/users/*) are served by https://dapi.cosmicjs.com. An…

Endpoint: https://api.cosmicjs.com/v3

Verification: observed. Source: crawl.

Capabilities (21)

  • List content Blocks
  • List and query media
  • Get a media item by id
  • Update media metadata
  • Delete a media item
  • List Object types
  • Create an Object type
  • Get an Object type
  • Update an Object type
  • Delete an Object type
  • List and query Objects
  • Create an Object
  • Batch create update and delete Objects
  • Get an Object by id
  • Update an Object
  • Delete an Object
  • List an Object's revisions
  • Add a revision to an Object
  • Get a single revision
  • Get this OpenAPI document
  • Check API status
About · Contact · Privacy