Value in
Value in
Value in
Value in
Value in
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/sdk/identify" \ -H "x-distinct-id: string" \ -H "x-publishable-key: string" \ -H "x-client-bundle-id: string" \ -H "x-is-backgrounded: true" \ -H "x-is-debug-build: true" \ -H "x-observer-mode: true" \ -H "x-platform: string" \ -H "x-platform-flavor: native" \ -H "x-sdk: react-native" \ -H "x-sdk-version: string" \ -H "Content-Type: application/json" \ -d '{ "distinctId": "string" }'{ "distinctId": "string", "email": "string", "entitlements": { "grants": [ { "expiresAt": "string", "perkId": "string", "perkSlug": "string", "source": "subscription", "sourceId": "string", "sourcePersonId": "string", "status": "active" } ] }, "name": "string", "personId": "string", "purchases": { "history": [ { "createdAt": "string", "productId": "string", "providerKey": "string", "purchaseId": "string", "sourcePersonId": "string", "type": "one_time" } ] }, "snapshotContext": { "includedPersonIds": [ "string" ], "migrationJobId": "string", "mode": "persisted" }, "subscriptions": { "current": { "expiresAt": "string", "productId": "string", "status": "none", "subscriptionId": "string" }, "history": [ { "canceledAt": "string", "expiresAt": "string", "isTrial": true, "productId": "string", "sourcePersonId": "string", "startsAt": "string", "status": "active", "subscriptionId": "string" } ] }}{ "_tag": "Api/SdkValidationError", "message": "string"}{ "_tag": "Api/AuthenticationError", "cause": "string", "message": "string"}{ "_tag": "Api/SdkPersonNotFoundError", "message": "string"}{ "_tag": "Api/SdkPersonAlreadyIdentifiedError", "distinctId": "string"}{ "_tag": "Api/SdkServiceError", "cause": "string"}