The Acoustic Connect API service is available to all existing clients. You only need an API key to authenticate your requests.

Getting access to the service

Here is where to get an API key for your requests.

  1. Log in to Connect under an administrator account.
  2. Go to Administration > Brand settings > Marketing API keys.
  1. Click Generate API key.
  1. Enter the name of the person or application that will be using the key and provide a description.
  2. Copy your key to a secure location (for security purposes, it will not be visible in Connect after you close the dialogue).

Making requests

All requests to the Acoustic Connect API are structured in the same way.

1: API endpoint

https://{host}, where {host} is the API server assigned to your organization. Below is the list of all available API servers.

Region codeAPI server
us-east-1connect-gql-us-1.goacoustic.com
ap-southeast-2connect-gql-ap-3.goacoustic.com
eu-central-1connect-gql-eu-1.goacoustic.com

2: Headers

Header nameDescriptionRequired?Values
x-api-keyAn access key associated with a user account. See theGetting access to the service section above for instructions.RequiredString
Content-TypeThe original media type of the resourceRequiredapplication/json

3: Body

The body contains a query or a mutation.

Sample request

Here is a sample request for your reference.

curl --location 'https://connect-gql-us-1.goacoustic.com' \
--header 'x-api-key: 123445678890000000XXXX0091' \
--header 'Content-Type: application/json' \
--data '{"query":"query {\n  dataSets {\n    nodes {\n      dataSetId\n      consentGroups {\n        id\n        name\n      }\n    }\n  }\n}","variables":{}}'