Skip to main content
GET
/
v1
/
groups
/
{id}
/
state
/
attributes
/
{key}
Get a group attribute
curl --request GET \
  --url https://api.scrip.dev/v1/groups/{id}/state/attributes/{key} \
  --header 'X-API-Key: <api-key>'
{
  "key": "tier",
  "value": "gold"
}
Returns a single attribute by key. The key is passed as a path parameter. If the key does not exist, returns a 404.
For usage patterns and examples, see the State Management guide.

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header.

Path Parameters

id
string<uuid>
required

Group ID

key
string
required

Attribute key

Response

Attribute key-value pair

key
string

Attribute key

Example:

"tier"

value
string

Attribute value

Example:

"gold"