Authorization and Request format for Web API

Authorization and Request format for Web API

Authorization

API requests must be authenticated by your public API key as the Authorization header with the value Api-Key {your_public_api_key}, for example, Api-Key public_live_.... Find this key in the Adapty Dashboard -> App Settings -> General tab -> API keys section.

API keys are app-specific. If you have several apps, ensure you are using different keys for each of them.

Request format

  • Content-Type header: Set the Content-Type header to application/json for the API to process your request.
  • Body: The API expects the request to use the body as JSON.