> ## Documentation Index
> Fetch the complete documentation index at: https://docs.capcells.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Read a declared attribute

> One attribute this Tenancy declared, exactly as it was recorded.

A declaration never changes. What this call answers is what every Credit policy version naming the attribute was validated against, and what every Decision stating it was checked against.

> [!NOTE]
>
> You declare and withdraw attributes at the Console, not here. This door reads.

## Path parameters

**tenant\_id** `string` *required*

The Tenancy asking.

**local** `string` *required*

The attribute's local name, without your namespace.

## Response

**name** `string` *required*

The namespaced spelling, `<tenant_id>:<local_name>`. A rule and an application use this one.

**local\_name** `string` *required*

The name without the namespace.

**kind** `string` *required*

Always `declared`: you state the value in the application.

**unit** `string` *required*

What the value counts in: `years`, `months`, `minor units`, `count`, `basis points` or `flag`.

**min** `integer` *required*

The lowest value admitted.

**max** `integer` *required*

The highest value admitted.

**admits** `array` *required*

The absent states the attribute admits. Empty when a value is always required.

**max\_age\_days** `integer` *required*

How old a stated value may be, in days.

**rationale** `string` *required*

Your statement of what the attribute is for.

**basis** `string` *required*

Your stated basis for reading it. It is yours, not the Platform's verdict.

**declared\_by** `string` *required*

The person who declared it, as your identity provider names them.

**declared\_at** `string` *required*

When, as an RFC 3339 moment.

**withdrawn** `boolean` *required*

Whether the attribute is closed to new policy versions.

**withdrawn\_by** `string`

Who withdrew it. Absent until it is withdrawn.

**withdrawn\_at** `string`

When it was withdrawn. Absent until it is.

**withdrawal\_reason** `string`

The reason given. Absent until it is withdrawn.

## Refusals

This route reads no query parameter and takes no body.

| Status | Code | When |
| - | - | - |
| `400` | `invalid_query` | The URL carries a query parameter, which this route does not read |
| `403` | | The key authenticates for another Tenancy |
| `404` | `unknown_declaration` | This Tenancy declared no attribute under that local name |

A read-scoped key is enough.

```bash Read theme={null}
curl https://api.capcells.com/v1/tenants/capyplazo/attributes/months_at_employer \
  -H "Authorization: $(capcells_sign "$CAPCELLS_API_KEY" GET /v1/tenants/capyplazo/attributes/months_at_employer)"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.