Navigation ↓

Getting Started with the API

A content management system isn't very useful if you have no way of displaying the content. Fortunately, our powerful Content Delivery API exists. We serve your content in an easy to parse JSON format so it can quickly be connected to your apps and websites. There is no caching so your content will always be up to date.

To use the API, you'll need the UUID and an access token for the app you're wishing to query. All query parameters including the access_token can be passed as either a URL parameter or in the JSON body. Both GET and POST requests are accepted.

https://milk.jwb.cloud/api/cdn/{App UUID}?access_token={token} will return all the published content for your app with 20 contents per page. To access the next page of contents, pass the page parameter and set it equal to the page you would like to request.

Base URL

https://milk.jwb.cloud/api/cdn/{App UUID}

Replace "{App UUID}" with your app's UUID.

Example API return

Here's an example of the API returning a single content.

{
  "contents": [
    {
      "author": {
        "name": "Roger Cow"
      },
      "fields": {
        "tags": [
          "agriculture",
          "drinks"
        ],
        "body": "Chocolate milk is delicious both solo and with cereal.",
        "title": "Chocolate Milk"
      },
      "publishedAt": "Fri, 07 Feb 2020 04:47:20 GMT",
      "status": "published",
      "typeName": "Article",
      "typeSlug": "article",
      "updatedAt": null,
      "uuid": "MtCQczpuny8"
    }
  ],
  "page": 1,
  "perPage": 20,
  "total": 1
}