# Anzeigentext per KI entwerfen

`POST https://{tenant}.stamp.eu/rest/recruiting/postings/ai-draft`

A draft of the posting text from key points. Nothing
is saved; the editor takes the text over. 503 `ai_draft_unavailable` without Azure configuration,
429 `ai_draft_limit_reached` at the daily limit, 502 `ai_draft_failed` when Azure fails

## Request-Body

| Feld | Typ | Pflicht |
| --- | --- | --- |
| `title` | string | ja |
| `bullet_points` | string | ja |
| `employment_type` | `full_time`, `part_time`, `mini_job`, `working_student`, `internship`, `apprenticeship`, `temporary`, `freelance` \| null | nein |
| `workplace_type` | `onsite`, `hybrid`, `remote` \| null | nein |
| `tone` | `neutral`, `du`, `sie`, `null` \| null | nein |
| `language` | `de`, `en`, `tr`, `sq`, `null` \| null | nein |

## Antworten

### 200: `JobPostingAiDraftResource`

| Feld | Typ | Pflicht |
| --- | --- | --- |
| `data` | object | ja |
| `data.description_md` | string | ja |
| `data.usage` | object | ja |
| `data.usage.remaining_today` | integer | ja |
| `data.usage.daily_limit` | integer | ja |

### 401: Unauthenticated

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja | Error overview. |

### 422: Validation error

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja | Errors overview. |
| `errors` | object | ja | A detailed description of each field that failed validation. |
