es_work_historySpanish employment history report (vida laboral)
Employment history report from the Spanish Social Security Treasury: registrations and terminations by employer and scheme, with total days contributed; signed PDF.
- Category
- Employment
- Country
- Spain
- Fields it extracts
- 8 fields
- Cost
- 1 credit
es_work_historyspecimen- Holder name
- Holder ID number
- Issue date
- Social security number
- Date of birth
- Total days
- Periods
- Secure Verification Code (CSV)
What it checks
- National identifiers. Official checksum or format of the number (NIF, CPF, CURP, RUT, SSN…).
es_nif - Holder. Name, number or date of birth match what you expect.
- Recency. Issued less than N days ago.
- Secure verification code. Format of the code used to check it with the issuer.
- PDF electronic signature. PAdES signature verified when the original PDF is sent.
Fields it extracts
- Holder name
holder_name - Holder ID number
holder_id - Issue date
issue_date - Social security number
social_security_number - Date of birth
birth_date - Total days
total_days - Periods
periods - Secure Verification Code (CSV)
csv_code
Where it is used
Sample request
curl https://api.constaia.com/v1/analyze \
-H "Authorization: Bearer $CONSTAIA_API_KEY" \
-F "file=@document.pdf" \
-F 'options={
"expect": "es_work_history",
"checks": {
"max_age_days": 90,
"holder": {
"full_name": "Carmen Especimen Ruiz"
}
},
"storage": "none"
}'Sample response
Fictitious data. Shortened response.
200 OK · application/json
{
"id": "an_01J9Z3K8QW4T6Y2B7N5M1R0PXC",
"object": "analysis",
"status": "completed",
"livemode": false,
"document": {
"type": "es_work_history",
"label": "Spanish employment history report (vida laboral)",
"confidence": 0.97
},
"verdict": {
"expected": [
"es_work_history"
],
"match": true,
"status": "valid",
"reasons": [
{
"code": "type_match",
"severity": "info",
"message": "The document is: Spanish employment history report (vida laboral)."
}
]
},
"fields": {
"holder_name": {
"value": "JUAN ESPAÑOL ESPAÑOL",
"confidence": 0.99,
"validated": true
},
"holder_id": {
"value": "99999999R",
"confidence": 0.98,
"validated": null
},
"issue_date": {
"value": "2026-09-01",
"confidence": 0.97,
"validated": null
},
"social_security_number": {
"value": "281234567840",
"confidence": 0.96,
"validated": null
},
"birth_date": {
"value": "1985-07-30",
"confidence": 0.99,
"validated": null
},
"total_days": {
"value": 5120,
"confidence": 0.98,
"validated": null
},
"periods": {
"value": [
{
"regime": "GENERAL",
"company": "ESPECIMEN S.L.",
"ccc": "28123456789",
"start_date": "2015-03-02",
"effective_date": "2015-03-02",
"part_time_coefficient": 100,
"contract_type": "100",
"days": 4202
}
],
"confidence": 0.97,
"validated": null
}
},
"checks": [
{
"code": "id_number",
"passed": true,
"message": "id_number"
},
{
"code": "csv_format",
"passed": true,
"message": "The verification code has a valid format."
}
],
"warnings": [],
"storage": {
"mode": "none",
"file_deleted_at": "2026-09-29T10:00:02Z",
"expires_at": null
},
"usage": {
"credits": 1,
"pages": 1
}
}FAQ
Does Constaia prove that the document is authentic?
No. It checks the type, the consistency of the data and your rules, and flags signals such as a possible edit or a photo of a screen. That does not prove authenticity.
Is a copy of the document kept?
Only if it needs review: it is then kept encrypted until someone decides and for 24 hours after that (configurable). Otherwise it is deleted as soon as the analysis ends. You can choose never to keep it.
Other documents
And for the record…
Create your free account and validate your first document in five minutes. No card required.