Start free. Scale as your blog grows.Get started

Developer documentation

Quickstart

You can make your first request in three steps.

1. Get your API key

Open your ContioReach workspace and navigate to:

Workspace
Developer Settings → API Keys

Copy your blog API key.

Treat this value as a secret. Your API key should remain in server side code or a secure server environment.

2. Add your environment variables

Create a .env.local file:

.env.local
CMS_API_KEY=your_api_key_here
CMS_API_URL=https://cms-api.contioreach.com

Do not commit your real API key to source control.

3. Fetch your posts

Create a helper function:

lib/posts.js
export async function getPosts() {
  const response = await fetch(
    `${process.env.CMS_API_URL}/v1/blogs?limit=10&minimal=true`,
    {
      headers: {
        "X-API-Key": process.env.CMS_API_KEY
      }
    }
  );

  if (!response.ok) {
    throw new Error(
      `Failed to fetch posts: ${response.status}`
    );
  }

  const result = await response.json();

  return result.data;
}

The data property contains the posts returned by ContioReach.

That is the basic integration

  • Your application requests the content.
  • ContioReach returns structured JSON.
  • Your frontend decides how to present it.