curl --request GET \ --url https://api.scrip.dev/v1/participants/{id}/state/attributes/{key} \ --header 'X-API-Key: <api-key>'
{ "key": "tier", "value": "gold"}
State
Get participant attribute
Retrieve a single attribute by key.
GET
/
v1
/
participants
/
{id}
/
state
/
attributes
/
{key}
Get participant attribute
curl --request GET \ --url https://api.scrip.dev/v1/participants/{id}/state/attributes/{key} \ --header 'X-API-Key: <api-key>'
{ "key": "tier", "value": "gold"}
Returns a single attribute by its key. The key is passed as a path parameter.This is useful when you need one specific attribute value without fetching the full attribute set. If the key does not exist, the endpoint returns a 404.