# API Input

Human URL: https://dochorizon.klippa.com/docs/capturing/prompt-builder/api-input
Source: https://dochorizon.klippa.com/docs/llms/capturing/prompt-builder/api-input.md

> Sending documents for capturing using the Prompt Builder model

---

To use the Prompt Builder API, create a JSON payload containing a list of document objects. The payload must include at least one document object.

Send the JSON payload to the endpoint URL. The URL should include the slug of the Prompt Builder configuration you want to call.

**POST** `document_capturing/v1/prompt_builder/configurations/{slug}`

### Path Parameters

**slug** *(required)* `string`

The slug of the Prompt Builder configuration to use.

### The Document

To send a document to the Prompt Builder model, format it as a `document` object. Provide the `document` object in an array assigned to a field named `documents`.

For more information on sending documents refer to the [sending documents documentation](https://dochorizon.klippa.com/docs/llms/api/sending-documents.md).

See the code example below for an overview of the input schema:

```json
{
  "documents": [
    {
      "content_type": "string",
      "data": "string",
      "file_id": "string",
      "filename": "string",
      "page_ranges": "string",
      "password": "string",
      "url": "string"
    }
  ]
}
```