# Assessment Formation

Assessment Formation endpoints return the **schema definitions** for assessments — their questions, field types, scoring rules, and associated CDTs. Use these endpoints to understand an assessment's structure before creating records via the [Assessment Records](/developer-and-integration-guide/api-reference/assessment-records.md) endpoints.

**Base path:** `/{tenantName}/{instanceName}/formation/assessments`

***

## Endpoints

### GET Get All Assessments

**GET** `/{tenantName}/{instanceName}/formation/assessments`

Returns schema definitions for all assessments configured in the instance.

#### Query Parameters

| Parameter | Type    | Default | Description      |
| --------- | ------- | ------- | ---------------- |
| `page`    | integer | `0`     | Page number      |
| `size`    | integer | `20`    | Results per page |

#### Example Request

```http
GET /acme-health/live/formation/assessments
Authorization: Bearer <token>
```

#### Example Response `200 OK`

```json
{
  "data": [
    {
      "name": "phq9",
      "label": "PHQ-9 Depression Screening",
      "cdtName": "phq9-responses",
      "scoringEnabled": true,
      "questions": [...]
    }
  ],
  "metaInfo": { "page": 0, "pageSize": 20, "totalElements": 12 }
}
```

***

### GET Get One Assessment

**GET** `/{tenantName}/{instanceName}/formation/assessments/{assessmentName}`

Returns the schema definition for a single assessment by name.

#### Path Parameters

| Parameter        | Type   | Required | Description                            |
| ---------------- | ------ | -------- | -------------------------------------- |
| `assessmentName` | string | Yes      | Assessment name as defined in Designer |

***

### GET Get All CDTs Related to Assessment

**GET** `/{tenantName}/{instanceName}/formation/assessments/{assessmentName}/cdts`

Returns the list of Custom Data Types (CDTs) associated with a specific assessment. These CDTs store the assessment response data.

#### Path Parameters

| Parameter        | Type   | Required | Description     |
| ---------------- | ------ | -------- | --------------- |
| `assessmentName` | string | Yes      | Assessment name |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.welkinhealth.com/developer-and-integration-guide/api-reference/assessment-formation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
