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

# Get a specific constraint by ID

> **Required scope:** read

**Required scope:** `read`

### Path parameters

<ParamField path="id" type="string" required>
  Constraint ID
</ParamField>

### Response

`ConstraintResponse`

<ResponseField name="description" type="string" required />

<ResponseField name="expression" type="string" required />

<ResponseField name="id" type="string" required />

<ResponseField name="source" type="string" required />

<ResponseField name="strength" type="ConstraintStrengthRequest" required>
  <Expandable title="ConstraintStrengthRequest">
    <ResponseField name="type" type="string" required />
  </Expandable>
</ResponseField>

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | Constraint details                                 |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `404` | Constraint not found                               |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.nsr.stateset.com/api/v1/constraints/{id}' \
    --header 'X-API-Key: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "description": "Two-person tent, green — replacement for damaged pole set.",
    "expression": "string",
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "source": "string",
    "strength": {
      "type": "hard"
    }
  }
  ```
</ResponseExample>
