> You are reading the Docusign Developer Documentation. For clean Markdown of any page, append .md to the page URL.
>
> Documentation indexes by section:
> - APIs and SDKs: https://docusign.docs.buildwithfern.com/docs/llms.txt
> - Platform 101: https://docusign.docs.buildwithfern.com/platform/llms.txt
> - Extension Apps: https://docusign.docs.buildwithfern.com/extension-apps/llms.txt
> - Docusign CLI: https://docusign.docs.buildwithfern.com/docusign-cli/llms.txt
>
> Authentication (OAuth, JWT Grant, M2M): https://docusign.docs.buildwithfern.com/platform/auth
> Webhooks and Connect: https://docusign.docs.buildwithfern.com/platform/webhooks
>
> OpenAPI specifications: https://docusign.docs.buildwithfern.com/openapi.json
> MCP server: https://docusign.docs.buildwithfern.com/_mcp/server

# List CLM custom attributes

GET https://api-d.docusign.com/v1/accounts/{accountId}/clm-custom-attributes

Returns the account's CLM custom attributes as a group/set/attribute hierarchy.
Each group lists the attributes that belong to it directly and the sets it contains;
each set lists its member attributes.


Reference: https://developers.docusign.com/docs/agreement-manager-api/reference/agreementmanager/clmcustomattributes/getclmcustomattributes

## Authentication

- `Authorization` header (bearer token, required) — OAuth2 authentication. - Demo: - authorizationUrl: https://account-d.docusign.com/oauth/auth - tokenUrl: https://account-d.docusign.com/oauth/token - Production: - authorizationUrl: https://account.docusign.com/oauth/auth - tokenUrl: https://account.docusign.com/oauth/token

## Servers

- `https://api-d.docusign.com` (Demo server, default)
- `https://api.docusign.com` (Production server)

## Request

### Path parameters

- `accountId` (string, required)

## Response

### 200

A JSON object containing the CLM custom attribute hierarchy for the account.

- `data` (list of ClmCustomAttributeGroup, optional) — CLM custom attribute groups configured by the account, ordered by name.
- `response_metadata` (ResponseMetadata, optional) — Control information and metadata for the response.
- `_links` (PageLinks, optional) — Hypermedia controls (HATEOAS) for navigating between pages in a paginated collection of results. Links for the current page, next page, and previous page, with optional first and last page links.

## Errors

### 400 Bad Request Error

Bad Request - The request could not be understood or was missing required parameters.

- `type` (string, required) — A URI reference that identifies the problem type. When dereferenced, it should provide human-readable documentation for the problem type. Use "about:blank" when no specific type documentation exists.
- `title` (string, required) — A short, human-readable summary of the problem type. Should not change between occurrences.
- `status` (integer, required) — The HTTP status code generated by the origin server for this occurrence of the problem.
- `detail` (string, optional) — A human-readable explanation specific to this occurrence of the problem.
- `instance` (string, optional) — A URI reference that identifies the specific occurrence of the problem (typically the request path).
- `errors` (list of ValidationError, optional) — An array of detailed validation error objects when multiple issues exist. Each entry identifies a specific field-level or parameter-level error.
- `request_id` (string, optional) — Unique identifier for the request, useful for tracing and debugging with support.
- `timestamp` (string, optional) — The timestamp when the error occurred.

### 401 Unauthorized Error

Unauthorized - Authentication is required and has failed or not been provided.

- `type` (string, required) — A URI reference that identifies the problem type. When dereferenced, it should provide human-readable documentation for the problem type. Use "about:blank" when no specific type documentation exists.
- `title` (string, required) — A short, human-readable summary of the problem type. Should not change between occurrences.
- `status` (integer, required) — The HTTP status code generated by the origin server for this occurrence of the problem.
- `detail` (string, optional) — A human-readable explanation specific to this occurrence of the problem.
- `instance` (string, optional) — A URI reference that identifies the specific occurrence of the problem (typically the request path).
- `errors` (list of ValidationError, optional) — An array of detailed validation error objects when multiple issues exist. Each entry identifies a specific field-level or parameter-level error.
- `request_id` (string, optional) — Unique identifier for the request, useful for tracing and debugging with support.
- `timestamp` (string, optional) — The timestamp when the error occurred.

### 403 Forbidden Error

Forbidden - The request was valid, but you do not have permission to perform the action.

- `type` (string, required) — A URI reference that identifies the problem type. When dereferenced, it should provide human-readable documentation for the problem type. Use "about:blank" when no specific type documentation exists.
- `title` (string, required) — A short, human-readable summary of the problem type. Should not change between occurrences.
- `status` (integer, required) — The HTTP status code generated by the origin server for this occurrence of the problem.
- `detail` (string, optional) — A human-readable explanation specific to this occurrence of the problem.
- `instance` (string, optional) — A URI reference that identifies the specific occurrence of the problem (typically the request path).
- `errors` (list of ValidationError, optional) — An array of detailed validation error objects when multiple issues exist. Each entry identifies a specific field-level or parameter-level error.
- `request_id` (string, optional) — Unique identifier for the request, useful for tracing and debugging with support.
- `timestamp` (string, optional) — The timestamp when the error occurred.

### 404 Not Found Error

Not Found - The requested resource could not be found.

- `type` (string, required) — A URI reference that identifies the problem type. When dereferenced, it should provide human-readable documentation for the problem type. Use "about:blank" when no specific type documentation exists.
- `title` (string, required) — A short, human-readable summary of the problem type. Should not change between occurrences.
- `status` (integer, required) — The HTTP status code generated by the origin server for this occurrence of the problem.
- `detail` (string, optional) — A human-readable explanation specific to this occurrence of the problem.
- `instance` (string, optional) — A URI reference that identifies the specific occurrence of the problem (typically the request path).
- `errors` (list of ValidationError, optional) — An array of detailed validation error objects when multiple issues exist. Each entry identifies a specific field-level or parameter-level error.
- `request_id` (string, optional) — Unique identifier for the request, useful for tracing and debugging with support.
- `timestamp` (string, optional) — The timestamp when the error occurred.

### 500 Internal Server Error

Internal Server Error

- `type` (string, required) — A URI reference that identifies the problem type. When dereferenced, it should provide human-readable documentation for the problem type. Use "about:blank" when no specific type documentation exists.
- `title` (string, required) — A short, human-readable summary of the problem type. Should not change between occurrences.
- `status` (integer, required) — The HTTP status code generated by the origin server for this occurrence of the problem.
- `detail` (string, optional) — A human-readable explanation specific to this occurrence of the problem.
- `instance` (string, optional) — A URI reference that identifies the specific occurrence of the problem (typically the request path).
- `errors` (list of ValidationError, optional) — An array of detailed validation error objects when multiple issues exist. Each entry identifies a specific field-level or parameter-level error.
- `request_id` (string, optional) — Unique identifier for the request, useful for tracing and debugging with support.
- `timestamp` (string, optional) — The timestamp when the error occurred.

### 502 Bad Gateway Error

Bad Gateway – the upstream field definition service was unreachable or returned an unreadable response.

- `type` (string, required) — A URI reference that identifies the problem type. When dereferenced, it should provide human-readable documentation for the problem type. Use "about:blank" when no specific type documentation exists.
- `title` (string, required) — A short, human-readable summary of the problem type. Should not change between occurrences.
- `status` (integer, required) — The HTTP status code generated by the origin server for this occurrence of the problem.
- `detail` (string, optional) — A human-readable explanation specific to this occurrence of the problem.
- `instance` (string, optional) — A URI reference that identifies the specific occurrence of the problem (typically the request path).
- `errors` (list of ValidationError, optional) — An array of detailed validation error objects when multiple issues exist. Each entry identifies a specific field-level or parameter-level error.
- `request_id` (string, optional) — Unique identifier for the request, useful for tracing and debugging with support.
- `timestamp` (string, optional) — The timestamp when the error occurred.

### 504 Gateway Timeout Error

Gateway Timeout – the upstream field definition service did not respond in time.

- `type` (string, required) — A URI reference that identifies the problem type. When dereferenced, it should provide human-readable documentation for the problem type. Use "about:blank" when no specific type documentation exists.
- `title` (string, required) — A short, human-readable summary of the problem type. Should not change between occurrences.
- `status` (integer, required) — The HTTP status code generated by the origin server for this occurrence of the problem.
- `detail` (string, optional) — A human-readable explanation specific to this occurrence of the problem.
- `instance` (string, optional) — A URI reference that identifies the specific occurrence of the problem (typically the request path).
- `errors` (list of ValidationError, optional) — An array of detailed validation error objects when multiple issues exist. Each entry identifies a specific field-level or parameter-level error.
- `request_id` (string, optional) — Unique identifier for the request, useful for tracing and debugging with support.
- `timestamp` (string, optional) — The timestamp when the error occurred.

## Types

### ClmCustomAttributeGroup

A top-level group of CLM custom attributes.

- `key` (string, required) — Stable machine identifier of the group.
- `name` (string, required) — Human-readable display name of the group.
- `total_attributes` (integer, required) — Total number of attributes in the group, including those within its sets.
- `attributes` (list of ClmCustomAttribute, required) — Attributes belonging directly to the group (not within a set), in display order.
- `sets` (list of ClmCustomAttributeSet, required) — Sets within the group, in display order.

### ResponseMetadata

Control information and metadata for the response.

- `request_id` (string, required) — Unique identifier for the request, useful for tracking and debugging.
- `response_timestamp` (string, required) — The timestamp indicating when the response was generated.
- `response_duration_ms` (integer, required) — The duration of time, in milliseconds, that the server took to process and respond to the request. This is measured from the time the server received the request until the time the response was sent.
- `page_limit` (integer, optional, default: 25) — The maximum number of items that can be returned in a single page.

### PageLinks

Hypermedia controls (HATEOAS) for navigating between pages in a paginated collection of results. Links for the current page, next page, and previous page, with optional first and last page links.

- `first` (PageLink, optional) — A URL that references a specific page in the pagination process. This is typically used for navigation between paginated results.
- `self` (PageLink, optional) — A URL that references a specific page in the pagination process. This is typically used for navigation between paginated results.
- `next` (PageLink, optional) — A URL that references a specific page in the pagination process. This is typically used for navigation between paginated results.

### ValidationError

A single field-level or parameter-level validation error.

- `code` (string, required) — A machine-readable error code identifying the specific validation failure.
- `message` (string, required) — A human-readable description of the validation error.
- `target` (string, optional) — The name of the field, parameter, or path segment that caused the error.

### ClmCustomAttribute

A CLM custom attribute (the leaf data point of the hierarchy).

- `key` (string, required) — Stable machine identifier of the attribute. Labels are not unique; use this key to identify an attribute.
- `name` (string, required) — Human-readable display name of the attribute.
- `type` (enum, required) — The data type of a CLM custom attribute.
  - Allowed values: `STRING`, `NUMBER`, `DECIMAL`, `DATE`, `DROPDOWN`, `DYNAMIC_DROPDOWN`, `CASCADE`, `AUTO_NUMBER`, `USER_GROUPS`
- `options` (list of string, optional) — Available values. Present only on dropdown attributes that define inline options.
- `validation` (ClmCustomAttributeValidation, optional) — A custom validation rule configured on a CLM custom attribute.

### ClmCustomAttributeSet

A set bundling attributes within a group as a unit. Can be repeatable.

- `key` (string, required) — Stable machine identifier of the set.
- `name` (string, required) — Human-readable display name of the set.
- `type` (enum, required) — The kind of a CLM custom attribute set. `STANDARD` sets bundle related attributes; `CASCADE` sets are lookup-driven, and contain only `CASCADE` attributes.
  - Allowed values: `STANDARD`, `CASCADE`
- `repeatable` (boolean, required) — Whether the set can be captured multiple times on a single agreement.
- `attribute_count` (integer, required) — Number of attributes in the set.
- `attributes` (list of ClmCustomAttribute, required) — Attributes belonging to the set, in display order.

### PageLink

A URL that references a specific page in the pagination process. This is typically used for navigation between paginated results.

- `href` (string, required) — The URL for the referenced page.

### ClmCustomAttributeValidation

A custom validation rule configured on a CLM custom attribute.

- `pattern` (string, optional) — Regular expression a value must match.
- `message` (string, optional) — Error message shown when a value does not match the pattern.

## Examples

**Response**

```json
{
  "data": [
    {
      "key": "group_283107b0_cff9_ef11_b05f_9440c970a918",
      "name": "Contract Details",
      "total_attributes": 1,
      "attributes": [
        {
          "key": "attribute_e8149fe0_9c13_ef11_9c7a_78e3b50531f2",
          "name": "Contract Value",
          "type": "STRING",
          "options": [
            "string"
          ],
          "validation": {
            "pattern": "string",
            "message": "string"
          }
        }
      ],
      "sets": [
        {
          "key": "set_9f3107b0_cff9_ef11_b05f_9440c970a918",
          "name": "Address",
          "type": "STANDARD",
          "repeatable": true,
          "attribute_count": 1,
          "attributes": [
            {
              "key": "attribute_e8149fe0_9c13_ef11_9c7a_78e3b50531f2",
              "name": "Contract Value",
              "type": "STRING",
              "options": [
                "string"
              ],
              "validation": {
                "pattern": "string",
                "message": "string"
              }
            }
          ]
        }
      ]
    }
  ],
  "response_metadata": {
    "request_id": "3f7c9e4b-851c-4f9b-89e7-123456789abc",
    "response_timestamp": "2024-10-17T14:30:00Z",
    "response_duration_ms": 150,
    "page_limit": 10
  },
  "_links": {
    "first": {
      "href": "https://api.docusign.com/v1/accounts/12345678/agreements?limit=10&ctoken=abc123"
    },
    "self": {
      "href": "https://api.docusign.com/v1/accounts/12345678/agreements?limit=10&ctoken=abc123"
    },
    "next": {
      "href": "https://api.docusign.com/v1/accounts/12345678/agreements?limit=10&ctoken=abc123"
    }
  }
}
```