adjust-icon

Server-to-server (S2S) API

Use the Adjust server-to-server API to connect your app to Adjust without changing your app code.

Authentication

The S2S API uses Bearer tokens for authentication. You MUST include your Adjust API token in an Authorization header with each request you make to the Blocklist API.

If your organization has enabled Single Sign-On (SSO), contact your Adjust representative or email support@adjust.com for help with finding your API token.

For non-SSO accounts, API tokens are located in a user’s profile. To find your token, follow these steps:

  1. Select the account (user) icon.
  2. Select Account settings.
  3. Select the My profile tab.
  4. Your API Token is shown with your User Details. Select the copy button to copy the token to your system clipboard.

Reset your Adjust API token

You can reset your Adjust API token at any time. Resetting your token invalidates the old token. If you reset your Adjust API token, you MUST replace your old token anywhere that you’re using it. Requests made with an invalidated token are rejected by Adjust.

To reset your Adjust API token:

  1. Select the account (user) icon.
  2. Select Account settings.
  3. Select the My Profile tab.
  4. Your API Token is shown with your User details.
  5. Select Reset API token.
  6. Enter your account password in the modal that appears and select Reset to reset your API token. A confirmation appears in the top right of the screen.
  7. Select the copy button next to the API Token to copy the token to your system clipboard.

S2S endpoints

EndpointFunction
https://s2s.adjust.com/eventNotifies Adjust of in-app events
https://s2s.adjust.com/ad_revenueNotifies Adjust of ad revenue data
https://s2s.adjust.com/sessionNotifies Adjust of session data

Device identifiers

The device identifiers accepted for S2S events are as follows:

Preferred identifiers

NameValue
Raw IDFA (IOS only)idfa
Raw Google advertising IDgps_adid
Raw Amazon Fire advertising IDfire_adid
Open Advertising ID (OAID, Huawei only)oaid
Web ID (Generated by the Adjust Web SDK)web_uuid

Backup identifiers

NameValue
Raw IDFV (IOS only)idfv
Android ID (Android only)android_id

Event submission responses

All successfully recorded events return an OK response.

Failed events return an HTTP error code and JSON message.

Error response
{ "error": "Event request failed (${error_message})" }

Error messages define the request problem. Use this table to identify your error, then review your setup or reach out to support@adjust.com for help.

Error codeError messageReason
400Bad event stateOccurs if request details don’t meet expectations. For example: created at time is before installed_at time.
400Invalid app tokenApp token not set correctly
400Ignoring event, earlier unique event trackedA unique event was already recorded. This is ignored as a duplicate.
400Invalid callback parametersCallback parameters couldn’t be extracted
400Invalid event tokenEvent token doesn’t exist, was set incorrectly, or doesn’t match the app token.
400Invalid revenueAmount set incorrectly or value too high (limit = 100,000,000,000)
401Failed to authorize requestAuthorization token missing or doesn’t match
403App is inactiveApp was deactivated in the dashboard
403Tracking disabledMeasurement not enabled for this platform
403Event token blocklistedEvent token blocklisted
404App token not foundApp token not found
404Device not foundNo device data found
413Request size too largeYour request exceeds the limit of 1 MB
451Device is opted outDevice is opted out
500Internal error, contact support@adjust.comInternal error when updating device data