Read the campaign one user arrived through
The first and most recent campaign your own sign-in links brought this user in through — the utm_* parameters on your /o/authorize/ link or your hosted sign-in page. Never how anybody else acquired the same person. attribution is null when no campaign was captured. Needs attribution:read and a plan that includes per-user attribution; otherwise 403 with attribution_not_entitled. A deployment that does not offer attribution answers 404 with feature_unavailable.
Authorization
apiKey An API key, presented as Authorization: Bearer eitozx_…. Carries the Application's own authority rather than authority a user delegated to it, and reaches only users who currently hold a grant with that Application. An organization's key reaches every application the organization owns and names the one it acts on in the Onefold-Application header. Not interchangeable with an OAuth2 access token despite the shared scheme.
In: header
Path Parameters
^[1-9][0-9]{0,18}$Header Parameters
The id of the application this call acts on. Required with an organization API key, which reaches every application its organization owns; ignored with an application's own key, which always acts on its application.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
Error codes
Every error response carries one of these in its code field. Branch on the code, never on the detail text.
| Status | code |
|---|---|
| 400 | validation_failed, parse_error, api_key_application_required |
| 401 | not_authenticated, authentication_failed |
| 403 | permission_denied, api_key_scope_missing, attribution_not_entitled |
| 404 | not_found, api_key_application_not_found, feature_unavailable |
| 429 | rate_limited |
Before you run the sample
- Replace
YOUR_API_KEYwith your API key. - The key needs the
attribution:readscope, or no scopes at all. - Set
user_id(shown asUSER_ID).
curl -X GET "https://example.com/api/v1/manage/users/USER_ID/attribution/"{ "attribution": { "first": { "campaign": "string", "campaign_id": "string", "content": "string", "landing_page": "string", "medium": "string", "referrer": "string", "source": "string", "term": "string" }, "first_touch_at": "2019-08-24T14:15:22Z", "latest": { "campaign": "string", "campaign_id": "string", "content": "string", "landing_page": "string", "medium": "string", "referrer": "string", "source": "string", "term": "string" }, "latest_touch_at": "2019-08-24T14:15:22Z" }}Read one user's activity with this application GET
Sign-ins to your application, consents given and withdrawn, blocks, and profile edits naming the fields the person's consent and your configuration disclose: the same body `GET /api/v1/userinfo/activity/` returns. Never another application's rows, an IP address or a user agent. Needs `profile_activity:read`; `profile_section_hidden` when your configuration hides the activity section.
List the users who have authorized this application GET
Consent-scoped: only users holding a currently-active grant with this application, determined live rather than from a stored list. Revoking a grant removes that user from this list immediately.