# Profile Formation

Profile Formation endpoints return the **schema definitions** for Profile Data Types (PDTs) — structured data objects attached directly to a patient's profile (as opposed to CDTs, which can have multiple records per patient).

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

***

## Endpoints

### GET Get All PDTs

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

Returns schema definitions for all Profile Data Types configured in the instance.

#### Query Parameters

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

***

### GET Get PDT by Name

**GET** `/{tenantName}/{instanceName}/formation/pdts/{pdtName}`

Returns the schema definition for a single Profile Data Type by name.

#### Path Parameters

| Parameter | Type   | Required | Description                        |
| --------- | ------ | -------- | ---------------------------------- |
| `pdtName` | string | Yes      | PDT name as configured in Designer |

#### Example Response `200 OK`

```json
{
  "name": "insurance",
  "label": "Insurance Information",
  "fields": [
    { "name": "provider", "label": "Insurance Provider", "type": "STRING" },
    { "name": "memberId", "label": "Member ID", "type": "STRING" },
    { "name": "groupNumber", "label": "Group Number", "type": "STRING" },
    { "name": "effectiveDate", "label": "Effective Date", "type": "DATE" }
  ]
}
```


---

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