Setup
The Consent Manager API is a GraphQL API for copying, modifying, and publishing existing Consent Manager configurations.
Using the API
1. Create an API key
In the Osano Web Application (my.osano.com):
- Log in as an Administrator.
- Click on "Settings" (gear icon on the top-right of the screen).
- Choose API Keys.
- Click the green "+" to add a new key.
- When prompted, click "confirm" to generate a new API Key.
- Copy this key for safekeeping. (Once it disappears, you will not be able to access it again.) The API key will last for 5 years before it expires and is no longer valid.
2. Make a test request
In your preferred API Client (ex. Postman or similar tools), use these settings:
- Method: POST
- Endpoint: https://customer.api.osano.com/graphql
- Set the
Authorization
header to beBearer [API KEY]
where you replace[API KEY]
with the value you created in step 1 above.