Official data and documents API

API for retrieving the Seguridad Social employment history report (vida laboral)

Official name: Informe de vida laboral

Integrate the employment history report (vida laboral) into your customer onboarding or your risk assessment. The data subject authorises the request and you receive the registration periods as data, alongside the official report in PDF.

Available Individuals

What data it retrieves

The response brings together the content of the employment history report (vida laboral) issued by the Tesorería General de la Seguridad Social:

  • Registration periods: employer or status, scheme, registration and deregistration dates, and days contributed in each period.
  • Contract and contribution group: the type of contract and the contribution group for each period, where the report states them.
  • Totals: days registered, days of simultaneous registration in more than one activity, and days contributed for benefit purposes.
  • Official report: the PDF issued by the Seguridad Social, encoded in Base64.
{
  "success": true,
  "payload": {
    "employment": {
      "summary": {
        "totalDaysRegistered": 4318,
        "daysInMultipleActivity": 0,
        "daysContributedForBenefits": 4318
      },
      "periods": [
        {
          "employer": "EJEMPLO SERVICIOS SL",
          "regime": "GENERAL",
          "startDate": "2019-03-01",
          "endDate": "Actual",
          "contributedDays": 2815
        },
        {
          "employer": "MUESTRA LOGISTICA SA",
          "regime": "GENERAL",
          "startDate": "2014-09-15",
          "endDate": "2018-10-26",
          "contributedDays": 1503
        }
      ],
      "pdf_file": "JVBERi0xLjcK…"
    }
  }
}

Excerpt from the response. The values are illustrative.

What it is used for

  • Lending and mortgages. Check the length of service and job stability the applicant declares against their official record.

  • Rental. Verify a tenant’s employment status without asking them to download and forward the report.

  • Experience verification. Confirm the periods worked in recruitment or accreditation processes.

How to integrate it through an API

The flow is the same for every document in the catalogue, on the Wealthreader API.

  1. Your system calls the API with your API key and the document code.

  2. The data subject identifies themselves and authorises the request.

  3. Your system repeats the call with the same session and collects the data and the original document.

View the integration guide
curl https://api.wealthreader.com/entities/ \
  -d api_key=$API_KEY \
  -d code=vida_laboral \
  -d user=$DNI \
  -d password=$BIRTH_DATE \
  -d second_password=$MOBILE

What authorisation is required

Your system sends the data subject’s DNI or NIE, date of birth and mobile phone number. The Seguridad Social sends them a code by SMS and, by entering it in your process, the data subject authorises the request. No password is used.

View security and compliance

Points to note

  • The mobile phone number sent must be the one the data subject has registered with the Seguridad Social.
  • The report covers registrations with the Spanish Seguridad Social; it does not include periods worked abroad.

See how Govreader fits your process

We review your use case and available coverage to show you the identification, retrieval and response flow you need.

Request a demo