Skip to main content
Every cosmic.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Media

delete

media.delete Delete Media by id Risk: write
Input Output

find

media.find List Media in a Bucket Risk: read
Input
Output

findOne

media.findOne Get a single Media item by name Risk: read
Input Output

insert

media.insert Upload Media to a Bucket Risk: write
Input
Output

update

media.update Update Media metadata by id Risk: write
Input
Output

Objects

batch

objects.batch Run up to 25 Object operations in one request Risk: write
Input
Output

delete

objects.delete Delete an Object by id Risk: write
Input Output

find

objects.find List Objects in a Bucket with filtering and pagination Risk: read
Input
Output

findOne

objects.findOne Get a single Object by type and slug Risk: read
Input Output

getById

objects.getById Get a single Object by id Risk: read
Input Output

insert

objects.insert Create an Object in a Bucket Risk: write
Input
Output

update

objects.update Update an Object by id Risk: write
Input
Output

Object Types

delete

objectTypes.delete Delete an Object type by slug Risk: write
Input Output

find

objectTypes.find List Object types in a Bucket Risk: read
Input Output

findOne

objectTypes.findOne Get a single Object type by slug Risk: read
Input Output

insert

objectTypes.insert Create an Object type Risk: write
Input
Output

update

objectTypes.update Update an Object type by slug Risk: write
Input
Output

Revisions

find

revisions.find List Revisions for an Object Risk: read
Input Output

findOne

revisions.findOne Get a single Revision by id Risk: read
Input Output

insert

revisions.insert Add a draft Revision to an Object Risk: write
Input
Output