younifyd
Menu

List Attribute Definitions

List Attribute Definitions

GET/v2026-04-27/organizations/{organizationId}/attribute-definitions

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the List Attribute Definitions action (under User Attributes).
  3. Fill in the fields below, then reference the result from later steps as {{listAttributeDefinitions.response.data}}.

Request

Path parameters

organizationIdstringrequired

Unique identifier of the organization

Query parameters

cursorstring

Cursor for pagination

limitinteger

The number of items to return per page.

Default 100

Response

Returns 200 with an object. Read it in later steps with {{listAttributeDefinitions.response.data.<field>}}.

definitionsarray<object>

List of attribute definitions grouped by key

keystringrequired

Textual name of the attribute

typestringrequired

Type of the attribute

One ofstringstring-arrayintegerinteger-arraynumbernumber-arrayboolean

sourcesarray<string>required

All sources where this attribute key is defined. Can contain 'saml', 'sanity', or both. When both sources exist, it indicates the same attribute key is defined in both SAML and API-managed contexts.

createdAtstring (date-time)required

Timestamp when the definition was first created (uses earliest created definition when multiple sources exist)

alreadyExistsboolean

Only present in POST responses. When true, indicates the definition already existed and was returned instead of being created.

nextCursorstring

Cursor for the next page of results (the last key from this page)

hasMoreboolean

Indicates if there are more results available

json
{
  "definitions": [
    {
      "key": "year_started",
      "type": "string",
      "sources": [
        "saml",
        "sanity"
      ],
      "createdAt": "2026-01-08T12:00:00Z",
      "alreadyExists": true
    }
  ],
  "hasMore": false,
  "nextCursor": "string"
}

Need more? See the Sanity guide for connection setup and behaviour shared by every action.