Users

Read one user's profile fields

GET
/api/v1/manage/users/{user_id}/profile-fields/

The person's profile with your organization as their consent and your application's profile configuration disclose it: the same body GET /api/v1/userinfo/profile/ returns for a token holding the scopes the person granted. Needs profile_fields:read.

Authorization

apiKey
AuthorizationBearer <token>

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

user_id*string
Match^[1-9][0-9]{0,18}$

Header Parameters

Onefold-Application?string

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.

Statuscode
400validation_failed, parse_error, api_key_application_required
401not_authenticated, authentication_failed
403permission_denied, api_key_scope_missing
404not_found, api_key_application_not_found
429rate_limited

Before you run the sample

  • Replace YOUR_API_KEY with your API key.
  • The key needs the profile_fields:read scope, or no scopes at all.
  • Set user_id (shown as USER_ID).
curl -X GET "https://example.com/api/v1/manage/users/USER_ID/profile-fields/"
{  "avatar_url": "string",  "banner_url": "string",  "date_of_birth": "2019-08-24",  "display_name": "string",  "family_name": "string",  "fields": {    "property1": null,    "property2": null  },  "form": {    "core": {      "property1": "hidden",      "property2": "hidden"    },    "custom": [      {        "class": "shared",        "field_type": "short_text",        "help_text": "string",        "key": "string",        "label": "string",        "max_length": 0,        "options": [          "string"        ],        "placeholder": "string",        "required": true,        "user_editable": true,        "writable": true      }    ]  },  "gender": "string",  "given_name": "string",  "locale": "string",  "middle_name": "string",  "nickname": "string",  "private_fields": {    "property1": null,    "property2": null  },  "sub": "string",  "website": "string"}