New REST API Docs and NPM Module 🎉

Cosmic Blog
Cosmic Blog New REST API Docs and NPM Module 🎉
by Tony Spiro on January 17, 2018

We are excited to announce that we have completely rebuilt both our REST API docs and NPM module from the ground up.   This comes after weeks of development and gathering feedback from the Cosmic Community.  Thank you to everyone who helped us with this big release!


Our new REST API docs now live at  The new design makes it a lot easier to find what you need, allowing you to toggle between bash and JavaScript code (more languages coming soon!).  We've also added more detail for powerful features such as Metafields, Webhooks and Extensions.

New NPM Module

Our new NPM module can be found at  It has been bumped to version 3.0 and features new Promise-based methods:


Add Bucket

Add Object

Get Objects

Add Media

View more methods available with the updated NPM module.

It is our goal to help teams build apps faster, and with these updates, we are happy to provide teams even more powerful tools for an even better developer experience.

Photo by Carl Cerstrand on Unsplash

You may also like

We released our additional users Add-on a few weeks ago and it has become one of the most popular products. We think customers really like the flexibility it gives their team to upgrade just a portion of their usage plan instead of jumping up to the next plan. With that flexibility in mind, we are happy to offer two more add-ons to help you get the most out of Cosmic while allowing more billing flexibility.

Both Gatsby and Next.js are among the most popular frameworks for websites and online applications. In this article, we’re going to compare Gatsby vs. Next.js to help you choose the right framework for your next web project. We’ll talk about how they handle data and render static websites.

We’re excited to announce the official release of Gatsby Preview for Cosmic that enables you to add powerful content preview functionality to your Cosmic Gatsby website.

We believe headless is positioned to dominate the CMS market in the next decade. How so? Take a peek into our insights.

GraphQL vs. ReST - which works better for your application? This article compares similarities and key differences, and provides considerations for when to choose one or the other.

Jamstack is the newest stack innovation, and it's kicking old school app development to the curb. What's the Jamstack? How can you start using it?

Get Started with Cosmic

Build personal projects for free. Add your team at unbeatable prices.
Start Building Talk to Sales