The new Cosmic dashboard is here!
Test drive it now →

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!


New REST API Docs

Our new REST API docs now live at https://cosmicjs.github.io/rest-api-docs.  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 https://www.npmjs.com/package/cosmicjs.  It has been bumped to version 3.0 and features new Promise-based methods:

Authenticate

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


2021 was a big year for Cosmic and we are pumped for what 2022 will bring. Here's a list of some of the things that we achieved over the past 12 months

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.

After months of painstaking design, development, and testing, we are excited to announce the release of the new Cosmic Dashboard! We have rebuilt the dashboard from the ground up and you can now be one of the first to test it in a private alpha release.

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 big updates to the new dashboard.

Get Started with Cosmic

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