# Draft an answer to an application form's question

Writes the candidate's answer to one question an application form asks, from the posting (the company, the role and its description) and the resume the application sends, with the answers saved to the apply profile. It never states a fact the resume or profile does not. Nothing is saved; the user checks the draft first. Counts one AI action. Requires authentication.

```http
POST https://hiresweep.com/api/openapi/applications/{applicationId}/answers/draft
x-api-key: YOUR_API_KEY
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `applicationId` | path | string | Yes |  |

## Request body

```json
{
  "type": "object",
  "properties": {
    "question": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "The question as the form, or the agent, asks it."
    },
    "draft": {
      "type": "string",
      "maxLength": 5000,
      "default": "",
      "description": "What the user already wrote, to improve rather than replace."
    }
  },
  "required": [
    "question"
  ]
}
```

## Responses

- `200`: The drafted answer.
- `502`: 502
