Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Exporting with the REST API

For developers moving content to a records system, an archive or an open data portal - the read routes of Exponential's REST API (v1 and v2), authentication with OAuth2 tokens or personal API keys, permission checks…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/records-and-archiving/rest-api-export.md

On this page

Exporting with the REST API

This page is for developers who build a repeatable export from an Exponential site into a records system, an archive or another platform. The REST API answers under /api/ezp/<version> with JSON; every content route needs a user by default and checks that user's permissions (REST API v1 and v2).

Contents

  1. Read routes
  2. Authentication
  3. A repeatable export
  4. Limits
  5. Related pages

Read routes

Relative to /api/ezp/<version> (v1 and v2):

RouteReturns
GET /content/node/<id>one node (ResponseGroups=Metadata,Locations,Fields, OutputFormat=xhtml for rendered text)
GET /content/node/<id>/list(/offset/<n>)(/limit/<n>)(/sort/<key>(/asc|desc))the children, paged
GET /content/node/<id>/childrenCountthe number of children
GET /content/node/<id>/fields, /field/<identifier>the object's fields
GET /content/object/<id>, .../fields, .../field/<identifier>the same by object id

Writes (create, delete) exist only in v2; an export needs none.

Authentication

rest.ini [Authentication] RequireAuthentication=enabled is the default. Use OAuth2 tokens or a personal API key of a dedicated export user (API keys). Give that user a role with read access limited to what the export needs (sections, subtrees); the API asks the user's policies the way the content module does. Answers: 401 without a valid token or key, 403 when the user may not.

A repeatable export

  1. Choose the root node(s) of what to export (for example the notices folder).
  2. Walk the tree with /list in pages (/offset/<n>/limit/<n>), fetching /fields for each object.
  3. Store each object's JSON together with its node id, object id, modification date and the export date.
  4. Files of file and image fields: check what the field JSON returns for them in your version; where it gives no address you can fetch, copy the files from var/storage in a server-side export.
  5. On the next run, compare modification dates and export only what changed.
  6. Log each run; keep the export user's key in your secret store.

Limits

  • The API returns the current published version; earlier versions are not exposed by these routes (use the versions page or a database export for history).
  • listAtom answers 500 (a known issue in the guide).
  • Large exports load the site: run them off-peak and page with modest limits.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x