Retrieving your API Key(s), Guid, and API URL

Follow

Making a call to the Content Fetch API requires that you know your API KeyAPI URL (if calling the REST API directly over HTTP) or your Guid if you are using an official SDK.

See Authenticating your Content Fetch API Calls for details.

Retrieving your Values

  1. Login to Agility CMS.

  2. Check the Dashboard, you should see values for your Instance GUID and API Urls.  You can click "Show API Key(s)" to see those values.
    Screen_Shot_2019-09-04_at_9.12.15_AM.png

 

Managing Your API Keys

  1. Navigate to Settings > API Keys.

    mceclip0.png
  2. Select a key from the list (defaultlive key and defaultpreview key are created for you by default).  Note that using a preview API Key will return you the latest content, while the fetch API Key will only return you published content.

    mceclip4.png

  3. In the above ^ example, we can extract the values as:
    baseUrl: "https://046a1a87-api.agilitycms.cloud/fetch",
    guid: "046a1a87",
    apiKey: "defaultlive.2b7f3a91559d794bed************

Now you are ready to make your first API call.

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.