Making API Calls
Rikke Søndergaard avatar
Written by Rikke Søndergaard
Updated over a week ago

How to Make API calls

All REST API calls to APSIS One API must include the base URL to the API service.

Per region host names

APSIS One API is provided under different hostnames depending on your region. For EU use https://api.apsis.one/ and for APAC call https://api-apac.apsis.one/.

Heres an example of a GET call to the Sections resource, which fetches all the Sections in the account.

Since Sections are protected content, you will need the access token as a bearer token for the Authorization request header. This will grant you access to the resource.

curl --request GET \
  --url https://api.apsis.one/audience/sections \
  --header 'accept: application/json' \
  --header 'authorization: Bearer '

Missing the access token?

A successful request will return the JSON object with the following.

{
  "items": [
    {
      "discriminator": "com.apsis1.sections.my-section",
      "name": "My Section",
      "description": "My Section of Profiles"
    }
  ]
}

What's Next?

Did this answer your question?