Read or write this application's own record about a user
An application-scoped sidecar keyed on (application, user) — never a field on the user. Invisible to every other application, absent from /userinfo/ on every scope. It survives a revoked grant and is deleted when the user deletes their account. PUT replaces the document, PATCH merges into it. Reading needs metadata:read; writing needs metadata:write, so a key can hold one without the other.
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 |
| 404 | not_found, api_key_application_not_found |
| 429 | rate_limited |
Before you run the sample
- Replace
YOUR_API_KEYwith your API key. - The key needs the
metadata:readscope, or no scopes at all. - Set
user_id(shown asUSER_ID).
curl -X GET "https://example.com/api/v1/manage/users/USER_ID/metadata/"{ "metadata": { "property1": null, "property2": null }}Read or write this application's own record about a user PATCH
An application-scoped sidecar keyed on (application, user) — never a field on the user. Invisible to every other application, absent from `/userinfo/` on every scope. It survives a revoked grant and is deleted when the user deletes their account. `PUT` replaces the document, `PATCH` merges into it. Reading needs `metadata:read`; writing needs `metadata:write`, so a key can hold one without the other.
Read or write this application's own record about a user PUT
An application-scoped sidecar keyed on (application, user) — never a field on the user. Invisible to every other application, absent from `/userinfo/` on every scope. It survives a revoked grant and is deleted when the user deletes their account. `PUT` replaces the document, `PATCH` merges into it. Reading needs `metadata:read`; writing needs `metadata:write`, so a key can hold one without the other.