Stampfactory
Dokumentation
Sonstiges

Anzeigentext per KI entwerfen

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

POST
/recruiting/postings/ai-draft
AuthentifizierungBearer <token>

Bearer-Token, erhalten über den Login-Endpunkt (POST /rest/login).

Ort: header

Request-Body

application/json

TypeScript-Definitionen

TypeScript-Typ für request body.

Input of the AI job text (OpenSpec add-recruiting, D16, task 11.4): title, key points (a list of short strings or one text, together at most {@see MAX_BULLET_POINTS_LENGTH} characters), optional employment and workplace type, tone (neutral, du, sie) and language (de, en, tr, sq, default the tenant language). Access is checked by the route middleware.

Response-Body

application/json

application/json

application/json

curl -X POST "https://example.com/recruiting/postings/ai-draft" \  -H "Content-Type: application/json" \  -d '{    "title": "string",    "bullet_points": "string"  }'
{  "data": {    "description_md": "string",    "usage": {      "remaining_today": 0,      "daily_limit": 0    }  }}