CV-d
CV-d
Halda CV-sid. Loetle, hangi, parsi failidest ja renderda PDF-iks.
Loetle CV-d
GET /v1/resumesTagastab kõik autenditud kasutajale kuuluvad CV-d.
Päring
curl https://api.laddro.com/v1/resumes \
-H "x-api-key: YOUR_API_KEY"Vastus
{
"data": [
{
"id": "res_abc123",
"title": "Software Engineer Resume",
"createdAt": "2026-05-01T10:00:00Z",
"updatedAt": "2026-05-02T15:30:00Z"
}
]
}Hangi CV
GET /v1/resumes/{resumeId}Tagastab täieliku CV andmestiku koos kõigi sektsioonidega.
Parameetrid
| Parameeter | Tüüp | Asukoht | Kirjeldus |
|---|---|---|---|
resumeId | string | path | CV ID |
Päring
curl https://api.laddro.com/v1/resumes/res_abc123 \
-H "x-api-key: YOUR_API_KEY"Vastus
{
"data": {
"id": "res_abc123",
"title": "Software Engineer Resume",
"sections": {
"header": {
"name": "Jane Smith",
"email": "[email protected]",
"phone": "+49 170 1234567",
"location": "Berlin, Germany"
},
"summary": "Experienced software engineer...",
"experience": [...],
"education": [...],
"skills": [...],
"languages": [...]
}
}
}Vead
| Staatus | Kirjeldus |
|---|---|
401 | Puuduv või kehtetu API-võti |
404 | CV-d ei leitud |
Parsi CV
POST /v1/resumes/parseLaadi üles PDF- või DOCX-fail, et eraldada struktureeritud CV andmed. Faili parsitakse AI abil sektsioonide, kuupäevade ja sisu tuvastamiseks.
Päring
curl https://api.laddro.com/v1/resumes/parse \
-H "x-api-key: YOUR_API_KEY" \
-F "[email protected]"Parameetrid
| Parameeter | Tüüp | Asukoht | Kirjeldus |
|---|---|---|---|
file | file | form-data | PDF- või DOCX-fail (max 10 MB) |
Vastus
{
"data": {
"id": "res_def456",
"title": "Parsed Resume",
"sections": {
"header": { ... },
"summary": "...",
"experience": [...],
"education": [...],
"skills": [...]
}
}
}Vead
| Staatus | Kirjeldus |
|---|---|
400 | Vigane failivorming (ainult PDF/DOCX) |
401 | Puuduv või kehtetu API-võti |
402 | Krediite pole alles |
413 | Fail on liiga suur (max 10 MB) |
Renderda CV PDF-iks
PUT /v1/resumes/{resumeId}/renderRenderdab CV määratud malliga ja tagastab PDF-faili.
Parameetrid
| Parameeter | Tüüp | Asukoht | Kirjeldus |
|---|---|---|---|
resumeId | string | path | CV ID |
templateId | string | body | Kasutatav mall (nt graphite) |
fontId | string | body | Kasutatav font (valikuline) |
Päring
curl https://api.laddro.com/v1/resumes/res_abc123/render \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "templateId": "graphite" }' \
--output resume.pdfVastus
Tagastab application/pdf binaarandmed.
Vead
| Staatus | Kirjeldus |
|---|---|
401 | Puuduv või kehtetu API-võti |
402 | Krediite pole alles |
404 | CV-d või malli ei leitud |