Exports

Bulk JSON-LD tenant export.

Returns every product, every passport (regardless of status), and every referenced category template the workspace owns, as one JSON-LD document.

Not API-key reachable. Auth is dashboard JWT (admin role) — same trust level as deleting the company. No plan or billing gate: every plan, Free included, whatever the billing status and after cancelling (EU Data Act). The pragmatic flow is: open Settings → Data export in the dashboard and click "Download JSON-LD"; "Export everything" on the same page builds a full-account ZIP that also holds the documents, supplier requests, passport versions, battery measurements and scan analytics. Programmatic access requires a session cookie issued by /api/auth/login.

Synchronous response with Content-Disposition: attachment; filename="tracepass-tenant-export-<companyId>-<YYYY-MM-DD>.jsonld". No pagination — all-or-nothing.

get/api/exports/tenant

Request

  • Base URL: https://app.tracepass.eu
  • URL: https://app.tracepass.eu/api/exports/tenant
  • Auth: API key in cookie tp_session

Headers

Accept'application/ld+json' | 'application/json'

Response

Tenant export.

@contextstring uri
@type'TenantExport'
exportedAtstring date-time

Example response

{
  "company": {
    "_id": "6650a1b2c3d4e5f6a7b8c9d0"
  },
  "products": [
    {
      "_id": "6650a1b2c3d4e5f6a7b8c9d0",
      "templateId": "6650a1b2c3d4e5f6a7b8c9d0"
    }
  ],
  "passports": [
    {
      "_id": "6650a1b2c3d4e5f6a7b8c9d0",
      "companyId": "6650a1b2c3d4e5f6a7b8c9d0",
      "productId": "6650a1b2c3d4e5f6a7b8c9d0",
      "templateId": "6650a1b2c3d4e5f6a7b8c9d0",
      "identifier": {
        "gtin": "04012345000015"
      },
      "gs1": {
        "gtin": "04012345000015",
        "serialNumber": "BP-48V-100-000001",
        "digitalLinkUri": "https://id.tracepass.eu/p/01/04012345000015/21/BP-48V-100-000001"
      },
      "lineage": {
        "predecessors": [
          {
            "internalPassportId": "6650a1b2c3d4e5f6a7b8c9d0"
          }
        ]
      },
      "successors": [
        {
          "passportId": "6650a1b2c3d4e5f6a7b8c9d0"
        }
      ]
    }
  ],
  "templates": [
    {
      "id": "6650a1b2c3d4e5f6a7b8c9d0"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.