Normec Praxis

API reference · v1.1.0

CertProof for companies API

Read the trainings, certificates and employees of your company and connect them to your LMS, HR or safety system. JSON over HTTPS, authenticated with an API key.

OpenAPI specificationhttps://company.certproof.be/api/v1

Getting started

  1. Activate the API. The API is a paid option. Ask Normec Praxis (info-praxis@normecgroup.com) to enable it for your company.
  2. Create an API key. A company manager signs in to CertProof for companies and opens Settings → API. A key is shown only once — store it in a secrets manager.
  3. Call the API with the key as a Bearer token:
curl -H "Authorization: Bearer cp_live_…" \
  "https://company.certproof.be/api/v1/certificates?status=expiring&limit=100"

All dates are ISO 8601 (YYYY-MM-DD). Each request returns the current data.

Authentication

Send your API key in the Authorization header of every request: Authorization: Bearer cp_live_…. Keys are scoped to one company and give read-only access to its data. Revoke a key at any time under Settings → API; it stops working immediately. Never use the key in a browser or mobile app — the API is meant for server-to-server integrations.

Pagination

List endpoints return { data: [...], next_cursor }. Pass next_cursor as the cursor parameter to fetch the next page, until it is null. Use limit (1–500, default 100) to set the page size. Results are sorted by last name, first name and training.

GET /api/v1/certificates?limit=500
GET /api/v1/certificates?limit=500&cursor=eyJvIjo1MDB9
…until next_cursor is null

Synchronising

Read all pages of /certificates once a day; with limit=500 that is usually 1 to 3 requests. There is no “changed since” filter on purpose: Normec Praxis certificates have no modification date, and the status of a certificate changes every day as dates pass. A full daily read is the only way to never miss a change.

Link certificates to people with person.id: it is the same as id in /employees. Use /certificates?employee_id=… for one person. The id is based on name and date of birth, so it stays the same as long as those do not change. The response of /certificates also contains expiring_days: the number of days your company uses for expiring.

Rate limits

Each key can make 120 requests per minute. Above that the API responds with 429 and a Retry-After header (in seconds).

Errors

Errors use a consistent format:

{
  "error": {
    "code": "invalid_key",
    "message": "Missing or invalid API key."
  }
}
HTTPcodeMeaning
400invalid_requestA query parameter is missing or invalid. The message explains which one.
401invalid_keyThe API key is missing, malformed, unknown or revoked.
403api_disabledThe API is not enabled for this company. Contact Normec Praxis.
404not_foundThe certificate or file does not exist (for your company).
429rate_limitedMore than 120 requests in the current minute. Wait for the number of seconds in the Retry-After header.
502upstream_errorThe certificate data could not be retrieved. Retry later.

GET/certificates

List certificates

All certificates of your company, from Normec Praxis and external training providers, sorted by last name, first name and training.

Parameters

NameInTypeDescription
statusqueryarray of valid | expiring | expiredFilter on status. Repeat or comma-separate for several values.
expires_withinqueryinteger (1–3650)Only certificates that are still valid and expire within this number of days.
categoryquerystringFilter on category slug.
sourcequerynormec_praxis | externalFilter on source.
employee_idquerystringOnly the certificates of one employee (id from /employees or person.id). Add include_left=true for employees who have left.
include_leftqueryboolean = falseAlso include employees who have left the company (default: false).
limitqueryinteger = 100 (1–500)Maximum number of items per page.
cursorquerystringValue of next_cursor from the previous page.
langquerynl | fr | en = nlLanguage for category names.

Responses

StatusDescription
200A page of certificates.
400Invalid query parameter.
401Missing or invalid API key.
403The API is not enabled for your company.
429Rate limit exceeded; see the Retry-After header.
502Data could not be retrieved from Normec Praxis; try again later.

Example response

{
  "data": [
    {
      "id": "p:123456",
      "source": "normec_praxis",
      "status": "expiring",
      "valid_from": "2021-11-15",
      "valid_until": "2026-11-15",
      "end_date": "2021-11-15",
      "person": {
        "id": "3f9a1c0b7d2e4f6a8b1c",
        "first_name": "Jan",
        "last_name": "Peeters",
        "birth_date": "1985-04-12",
        "employee_number": "4711",
        "department": "Logistics",
        "job_title": "Warehouse operator",
        "left_at": null
      },
      "training": {
        "name": "HEFTRUCK",
        "subtitle": "TEGENGEWICHT",
        "category": {
          "slug": "heftruck-magazijn",
          "name": "Heftruck & magazijn"
        },
        "provider": "Normec Praxis",
        "certificate_number": null,
        "start_date": "2021-11-15",
        "end_date": "2021-11-15",
        "language": "nl",
        "location": "Neerlandweg 1, 2610 Wilrijk"
      },
      "pdf_url": "https://company.certproof.be/api/v1/certificates/p%3A123456/pdf"
    }
  ],
  "next_cursor": "eyJvIjoxMDB9",
  "expiring_days": 90
}

GET/certificates/{id}

Get a certificate

Parameters

NameInTypeDescription
idpathstringCertificate id, e.g. p:123456 (URL-encode the colon).
langquerynl | fr | en = nlLanguage for category names.

Responses

StatusDescription
200The certificate.
400Invalid query parameter.
401Missing or invalid API key.
403The API is not enabled for your company.
404Certificate not found.
429Rate limit exceeded; see the Retry-After header.
502Data could not be retrieved from Normec Praxis; try again later.

Example response

{
  "id": "p:123456",
  "source": "normec_praxis",
  "status": "expiring",
  "valid_from": "2021-11-15",
  "valid_until": "2026-11-15",
  "end_date": "2021-11-15",
  "person": {
    "id": "3f9a1c0b7d2e4f6a8b1c",
    "first_name": "Jan",
    "last_name": "Peeters",
    "birth_date": "1985-04-12",
    "employee_number": "4711",
    "department": "Logistics",
    "job_title": "Warehouse operator",
    "left_at": null
  },
  "training": {
    "name": "HEFTRUCK",
    "subtitle": "TEGENGEWICHT",
    "category": {
      "slug": "heftruck-magazijn",
      "name": "Heftruck & magazijn"
    },
    "provider": "Normec Praxis",
    "certificate_number": null,
    "start_date": "2021-11-15",
    "end_date": "2021-11-15",
    "language": "nl",
    "location": "Neerlandweg 1, 2610 Wilrijk"
  },
  "pdf_url": "https://company.certproof.be/api/v1/certificates/p%3A123456/pdf"
}

GET/certificates/{id}/pdf

Download the certificate file

Normec Praxis certificates are available in Dutch, French and English. For external trainings the uploaded file is returned (PDF or image), regardless of lang.

Parameters

NameInTypeDescription
idpathstringCertificate id, e.g. p:123456 (URL-encode the colon).
langquerynl | fr | en = nl

Responses

StatusDescription
200The certificate file.
400Invalid query parameter.
401Missing or invalid API key.
403The API is not enabled for your company.
404Certificate or file not found.
429Rate limit exceeded; see the Retry-After header.
502The file could not be retrieved; try again later.

GET/employees

List employees

Every person with at least one certificate, with the employee details recorded in the portal.

Parameters

NameInTypeDescription
include_leftqueryboolean = falseAlso include employees who have left the company (default: false).
limitqueryinteger = 100 (1–500)Maximum number of items per page.
cursorquerystringValue of next_cursor from the previous page.

Responses

StatusDescription
200A page of employees.
400Invalid query parameter.
401Missing or invalid API key.
403The API is not enabled for your company.
429Rate limit exceeded; see the Retry-After header.
502Data could not be retrieved from Normec Praxis; try again later.

Example response

{
  "data": [
    {
      "id": "3f9a1c0b7d2e4f6a8b1c",
      "first_name": "Jan",
      "last_name": "Peeters",
      "birth_date": "1985-04-12",
      "employee_number": "4711",
      "department": "Logistics",
      "job_title": "Warehouse operator",
      "left_at": null,
      "certificates": 4
    }
  ],
  "next_cursor": null
}

GET/employees/{id}

Get an employee

One employee, also when they have left the company. Use /certificates?employee_id=… for their certificates.

Parameters

NameInTypeDescription
idpathstringCertificate id, e.g. p:123456 (URL-encode the colon).

Responses

StatusDescription
200The employee.
400Invalid query parameter.
401Missing or invalid API key.
403The API is not enabled for your company.
404Employee not found.
429Rate limit exceeded; see the Retry-After header.
502Data could not be retrieved from Normec Praxis; try again later.

Example response

{
  "id": "3f9a1c0b7d2e4f6a8b1c",
  "first_name": "Jan",
  "last_name": "Peeters",
  "birth_date": "1985-04-12",
  "employee_number": "4711",
  "department": "Logistics",
  "job_title": "Warehouse operator",
  "left_at": null,
  "certificates": 4
}

GET/categories

List categories

The training categories. Use slug in the category filter of /certificates.

Parameters

NameInTypeDescription
langquerynl | fr | en = nlLanguage for category names.

Responses

StatusDescription
200All categories.
400Invalid query parameter.
401Missing or invalid API key.
403The API is not enabled for your company.
429Rate limit exceeded; see the Retry-After header.
502Data could not be retrieved from Normec Praxis; try again later.

Example response

{
  "data": [
    {
      "slug": "heftruck-magazijn",
      "name": "Heftruck & magazijn"
    },
    {
      "slug": "vca",
      "name": "VCA"
    }
  ]
}

Schemas

Certificate

FieldTypeDescription
idstringStable identifier.
sourcenormec_praxis | externalnormec_praxis = training at Normec Praxis; external = added by your company (other training provider).
statusvalid | expiring | expiredvalid; expiring = expires within the company's "expiring soon" period; expired.
valid_fromstring | null (date)Date the certificate was obtained.
valid_untilstring | null (date)Expiry date; null means unlimited validity.
end_datestring | null (date)End date of the training, or valid_from if unknown.
personPersonThe person the certificate belongs to, with the employee record kept in the portal.
person.idstringEmployee id, the same as id in /employees. Based on name and date of birth: it stays the same as long as those do not change.
person.first_namestring | nullFirst name.
person.last_namestring | nullLast name.
person.birth_datestring | null (date)Date of birth.
person.employee_numberstring | nullEmployee number (employee record).
person.departmentstring | nullDepartment (employee record).
person.job_titlestring | nullJob title (employee record).
person.left_atstring | null (date)Date the employee left the company; null if still employed.
trainingobjectThe training the certificate was issued for.
training.namestring | nullTraining / discipline.
training.subtitlestring | nullAdditional description, e.g. the type of machine.
training.categoryobject | null
training.category.slugstring
training.category.namestring
training.providerstring | nullTraining provider.
training.certificate_numberstring | nullCertificate number (external trainings).
training.start_datestring | null (date)Start date of the training.
training.end_datestring | null (date)End date of the training.
training.languagestring | nullLanguage of the training (nl, fr, en, …).
training.locationstring | nullLocation of the training.
pdf_urlstring | null (uri)URL of the certificate file (requires the API key); null if there is no file.

Employee

FieldTypeDescription
idstringEmployee id, the same as person.id in certificates. Based on name and date of birth: it stays the same as long as those do not change.
first_namestring | nullFirst name.
last_namestring | nullLast name.
birth_datestring | null (date)Date of birth.
employee_numberstring | nullEmployee number.
departmentstring | nullDepartment.
job_titlestring | nullJob title.
left_atstring | null (date)Date the employee left the company; null if still employed.
certificatesintegerNumber of certificates.

status: expiring means the certificate expires within the company's “expiring soon” period (default 90 days, configurable by the company manager).