# Cosmic JS GraphQL API

Welcome to the Cosmic JS GraphQL documentation. Learn about all of the features and methods to perform queries and mutations.

Quick Tip

For a quick reference to get content from your Bucket, click the "Developer Tools" button found on select pages in your Bucket Dashboard .

# API Endpoint

All queries and mutations are called to the Cosmic JS GraphQL endpoint:

https://graphql.cosmicjs.com/v2

# Status Check

You can check on the API system status via the Cosmic JS status page.

# Playground

Use the playground for a full interactive demonstration. Use the "Docs" and "Schema" buttons on the right side for documentation on models, queries, inputs, and descriptions.

Full screen  

# Changelog

# v2

New Queries:

  • getObjectRevisions: gets Object Revisions
  • addObjectRevision: adds an Object Revision

New query format:

  • getObjects requires a new query format. Now includes params limit, total, and skip.
  • getMedia requires a new query format. Now includes params limit, total, and skip.

Search and Filter Options:

  • The getObjects method now allows you to search and filter by metadata.

View previous version docs here.