Skip to content

Get API key and org ID

You need two credentials before making any API calls: an API key and your organization ID. Both are available in the platform dashboard — no code required.

  1. Sign in to https://platform-dev.truconsent.io.
  2. Go to Settings → API Settings.

Two key scopes are required for the React Native SDK integration:

ScopeUsed for
Admin-scope keyFetching assetId and bannerId from the Management API
Consent-scope keyRuntime API calls made by TruConsentModal and NativeRightCenter
  1. Click Generate API Key.
  2. Select Admin scope — copy the key. You will use this only during setup to fetch asset and collection point IDs.
  3. Generate a second key, select Consent scope — this is the key you add to app.json as truConsentApiKey.

Your organization ID is displayed on the same API Settings page under Organization ID.

Copy it and set it as truConsentOrganizationId in app.json.

Under Allowed Domains, add your application’s bundle identifier or any domain used in consent flows (e.g. com.example.myapp).

Requests from unlisted origins are rejected with 403 Forbidden.

Your app.json extra block should now have these values filled in:

{
"expo": {
"extra": {
"truConsentApiKey": "your-consent-scope-key",
"truConsentOrganizationId": "your-organization-id"
}
}
}