Listy Motywacyjne
Tworzenie, generowanie i renderowanie listow motywacyjnych.
curl https://api.laddro.com/v1/cover-letters \
-H "x-api-key: YOUR_API_KEY"
{
"data": [
{
"id": "cl_abc123",
"title": "Cover Letter for Acme Corp",
"createdAt": "2026-05-01T10:00:00Z"
}
]
}
GET /v1/cover-letters/{coverLetterId}
| Parametr | Typ | Lokalizacja | Opis |
|---|
coverLetterId | string | path | ID listu motywacyjnego |
{
"data": {
"id": "cl_abc123",
"title": "Cover Letter for Acme Corp",
"content": "Dear Hiring Manager,\n\n...",
"resumeId": "res_abc123",
"templateId": "graphite"
}
}
Utworz list motywacyjny recznie z wlasna trescia.
| Pole | Typ | Wymagane | Opis |
|---|
title | string | Tak | Tytul listu motywacyjnego |
content | string | Tak | Tresc listu motywacyjnego |
resumeId | string | Nie | ID powiazanego CV |
curl https://api.laddro.com/v1/cover-letters \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Cover Letter for Acme Corp",
"content": "Dear Hiring Manager,\n\nI am writing to..."
}'
POST /v1/cover-letters/generate
List motywacyjny wygenerowany przez AI na podstawie CV i opisu stanowiska. Obsluguje streaming SSE.
| Pole | Typ | Wymagane | Opis |
|---|
resumeId | string | Tak | CV, na ktorym ma sie opierac list |
jobDescription | string | Tak | Tekst lub URL opisu stanowiska |
curl https://api.laddro.com/v1/cover-letters/generate \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"resumeId": "res_abc123",
"jobDescription": "We are hiring a..."
}'
curl https://api.laddro.com/v1/cover-letters/generate \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: text/event-stream" \
-d '{
"resumeId": "res_abc123",
"jobDescription": "We are hiring a..."
}'
| Status | Opis |
|---|
400 | Brakujace wymagane pola |
401 | Brakujacy lub nieprawidlowy klucz API |
402 | Brak kredytow |
404 | CV nie znalezione |
PUT /v1/cover-letters/{coverLetterId}/render
| Parametr | Typ | Lokalizacja | Opis |
|---|
coverLetterId | string | path | ID listu motywacyjnego |
templateId | string | body | Szablon do uzycia |
curl https://api.laddro.com/v1/cover-letters/cl_abc123/render \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "templateId": "graphite" }' \
--output cover-letter.pdf
Zwraca dane binarne application/pdf.