Skip to content

Get user's metafields

GET
/users/{id}/metafields
curl --request GET \
--url https://acme.mykreezalid.com/api/v1/users/1/metafields \
--header 'Authorization: Basic <credentials>'

Lists the metafields attached to a user.

id
required
integer

ID of your user

The user’s metafields

Media typeapplication/json
object
metafields
Array<object>

A custom value you attach to a resource, identified by its namespace and title.

object
namespace
required

Group the metafield belongs to

string
title
required

Name of the metafield, unique within its namespace

string
value
required

Value of the metafield. Usually a string; it can be returned as a number or a JSON value depending on how the metafield was defined.

string

Example

{
"metafields": [
{
"namespace": "erp",
"title": "warehouse_code",
"value": "WH-42"
}
]
}

No user has this identifier.