All sections

Enterprise certificates

Unless stated otherwise, this page refers to Ukrainian companies and individual entrepreneurs and uses identifiers from Ukrainian public registries.

This section describes requests used to work with enterprise certificates, attestations, and statements, their validity periods, statuses, and related files. For brevity, the term certificates is used throughout this page.

Certificate list

GET /api/v1/enterprises/{registry_id}/certificates/{domain}

This request returns enterprise certificates within a single domain, including attestations, statements, and similar records. The response includes the main certificate attributes, validity periods, status, and links to related files, if any.

The registry_id and domain parameters in the request path are required. registry_id is the enterprise identifier.

Available domain values can be retrieved from the Data domains request.

Example request

$ ESG_API_TOKEN="your_api_token"
$ curl "https://esg.saveecobot.com/api/v1/enterprises/00178353/certificates/forest?certificate_type_id=1" \
  -H "Authorization: Bearer $ESG_API_TOKEN" \
  -H 'Accept: application/json'

Example response

{
  "results": {
    "enterprise": {
      "type": "company",
      "registry_id": "00178353"
    },
    "domain": {
      "slug": "forest",
      "label": "Ліси"
    },
    "items": [
      {
        "id": 1,
        "type_id": 1,
        "type_name": "Сертифікат про походження лісоматеріалів",
        "registry_id": "CERT-001",
        "authority_name": "Держлісагентство",
        "name": "Сертифікат про походження лісоматеріалів",
        "description_lines": [
          "Виданий для партії лісоматеріалів"
        ],
        "status": "Видано",
        "issued_at": "2025-01-10",
        "valid_from": "2025-01-10",
        "valid_to": "2025-12-31",
        "is_active": true,
        "files_count": 2,
        "links": {
          "details": "https://esg.saveecobot.com/api/v1/enterprises/00178353/certificate-details/1",
          "files": "https://esg.saveecobot.com/api/v1/enterprises/00178353/certificate-files/1"
        }
      }
    ]
  },
  "stats": { "..." }
}

Pagination parameters

  • page: page number.

Filters

  • year: certificate year.
  • certificate_type_id: certificate type identifier. Available values can be retrieved from the Certificate types request.

Response fields

results.items[]

  • id: certificate identifier.
  • type_id: certificate type identifier.
  • type_name: certificate type name.
  • registry_id: certificate number or registration number.
  • authority_name: certificate authority or source.
  • name: certificate name.
  • description_lines[]: short certificate description split into lines.
  • status: certificate status.
  • issued_at: issue date.
  • valid_from: validity start date.
  • valid_to: validity end date.
  • is_active: indicates whether the certificate is active.
  • files_count: number of related files.
  • links.details: link to certificate details.
  • links.files: link to the separate file list.

Certificate details

GET /api/v1/enterprises/{registry_id}/certificate-details/{certificate_id}

This request returns full data for a specific certificate. The response contains the same fields as the certificate list, plus a links block for navigating to related files.

The registry_id and certificate_id parameters in the request path are required. registry_id is the enterprise identifier. certificate_id is the certificate identifier.

Example request

$ ESG_API_TOKEN="your_api_token"
$ curl "https://esg.saveecobot.com/api/v1/enterprises/00178353/certificate-details/1" \
  -H "Authorization: Bearer $ESG_API_TOKEN" \
  -H 'Accept: application/json'

Example response

{
  "results": {
    "enterprise": { "type": "company", "registry_id": "00178353" },
    "object": {
      "id": 1,
      "type_id": 1,
      "type_name": "Сертифікат про походження лісоматеріалів",
      "registry_id": "CERT-001",
      "authority_name": "Держлісагентство",
      "name": "Сертифікат про походження лісоматеріалів",
      "description_lines": ["Виданий для партії лісоматеріалів"],
      "status": "Видано",
      "issued_at": "2025-01-10",
      "valid_from": "2025-01-10",
      "valid_to": "2025-12-31",
      "is_active": true,
      "files_count": 2,
      "links": {
        "files": "https://esg.saveecobot.com/api/v1/enterprises/00178353/certificate-files/1"
      }
    }
  },
  "stats": { "..." }
}

Response fields

results.object

The object fields are the same as in results.items[] in the certificate list.

results.object.links

  • files: link to the separate certificate files list, if files exist.

Certificate files

GET /api/v1/enterprises/{registry_id}/certificate-files/{certificate_id}

This request returns files for a specific certificate. Along with the file list, the response also returns an object block with short information about the certificate itself.

The registry_id and certificate_id parameters in the request path are required. registry_id is the enterprise identifier. certificate_id is the certificate identifier.

Example request

$ ESG_API_TOKEN="your_api_token"
$ curl "https://esg.saveecobot.com/api/v1/enterprises/00178353/certificate-files/1" \
  -H "Authorization: Bearer $ESG_API_TOKEN" \
  -H 'Accept: application/json'

Example response

{
  "results": {
    "enterprise": { "type": "company", "registry_id": "00178353" },
    "object": {
      "type": "certificate",
      "id": 1,
      "registry_id": "CERT-001",
      "type_id": 1,
      "type_name": "Сертифікат про походження лісоматеріалів",
      "name": "Сертифікат про походження лісоматеріалів"
    },
    "items": [
      {
        "id": 1,
        "type_id": 1,
        "type_name": "Скан-копія сертифіката",
        "name": "certificate.pdf",
        "description": "Сертифікат про походження лісоматеріалів",
        "format": "application/pdf",
        "size": 65021,
        "uploaded_at": "2025-01-10T12:00:00+02:00",
        "downloaded_at": "2025-01-11T09:00:00+02:00",
        "links": {
          "download": "https://esg.saveecobot.com/api/v1/enterprises/00178353/certificate-files/1/download/1"
        }
      }
    ]
  },
  "stats": { "..." }
}

Response fields

results.object

  • type: object type. For this request, the value is certificate.
  • id: certificate identifier.
  • registry_id: certificate number or registration number.
  • type_id: certificate type identifier.
  • type_name: certificate type name.
  • name: certificate name.

results.items[]

  • id: certificate file identifier.
  • type_id: file type identifier.
  • type_name: file type name.
  • name: file name.
  • description: short file description.
  • format: file format.
  • size: file size in bytes.
  • uploaded_at: date when the file was uploaded or published in the source.
  • downloaded_at: date when the file was downloaded into ESG SaveEcoBot.
  • links.download: file download link.

Certificate file download

GET /api/v1/enterprises/{registry_id}/certificate-files/{certificate_id}/download/{file_id}

This request returns the binary certificate file for download.

The registry_id, certificate_id, and file_id parameters in the request path are required. registry_id is the enterprise identifier. certificate_id is the certificate identifier. file_id is the certificate file identifier.

Example request

$ ESG_API_TOKEN="your_api_token"
$ curl -L "https://esg.saveecobot.com/api/v1/enterprises/00178353/certificate-files/1/download/1" \
  -H "Authorization: Bearer $ESG_API_TOKEN"

Participate in testing the ESG company profile
in the SaveEcoBot system in Ukraine

Make your ESG analysis flawless!