Authenticating your Content Fetch API Calls

Whether you are hitting the Content Fetch REST API over HTTP directly or through an SDK, you'll need to know a few things about your instance in order to authenticate your requests, all of which can be found under Settings > API Keys in your Agility CMS Dashboard.

Authentication Components

API URL - This is the URL where your API requests will be sent to. Some client SDKs, such as the Content Fetch JS SDK will resolve this automatically for you.

https://api.aglty.io/{GUID}/fetch

GUID - This is your instance's unique identifier.

https://api.aglty.io/4582b5fa-u/fetch

API Key - This is your secret API Key used for authentication that must be included in the header for each REST API request. You can create as many API Keys as you see fit. API Keys may also have an optional expiry date.

There are two types of API Keys, one for viewing published (live) content and the other to view the latest content.

  1. Content Fetch - when using this API Key, only Published content will be returned by the Content Fetch API.

  2. Content Preview - when using this API Key, All the latest content will be returned by the Content Fetch API, regardless of whether it is in Staging or Published

Ready to Fetch Some Content?

Explore the Content Fetch API using Swagger

1 out of 1 found this helpful

Comments

0 comments

Please sign in to leave a comment.