> ## 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.

# List available primitive types

> **Required scope:** read

**Required scope:** `read`

### Response

`ListTypesResponse`

<ResponseField name="primitive_types" type="string[]" required />

<ResponseField name="subtypes" type="SubtypeRelation[]" required>
  <Expandable title="SubtypeRelation">
    <ResponseField name="subtype" type="string" required />

    <ResponseField name="supertype" type="string" required />
  </Expandable>
</ResponseField>

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | List of types                                      |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `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/types' \
    --header 'X-API-Key: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "primitive_types": [
      "string"
    ],
    "subtypes": [
      {
        "subtype": "string",
        "supertype": "string"
      }
    ]
  }
  ```
</ResponseExample>
