The account itself is an API: layers, sources, exports, keys, users and reporting.
Layers and versions
Create, style, publish, version
The operations the web app performs, over REST: create a layer from a file or a connected source, apply a style, publish a version.
# Publish a new version
$ curl -X POST -H "Authorization: key YOUR_KEY" \
https://data.linz.govt.nz/services/api/v1.x/layers/50804/versions/
Example shape. Check the layer's Services tab for the exact
endpoint.
AI Pro User, Team Cloud, Business Cloud, Enterprise
Connected data sources
Index where the data already lives
AWS S3, Esri REST feature services, WFS and Postgres/PostGIS are indexed on a schedule rather than copied. CIFS/SMB by arrangement on Enterprise. Uploaded files work on any paid plan.
Team Cloud, Business Cloud, Enterprise
Exports
Request a clip, a reprojection, a format
Crop to an extent, pick any EPSG CRS, choose a format, then poll for the download. Export volume is metered.
$ curl -X POST -H "Authorization: key YOUR_KEY" \
-d '{"items":[{"item":".../layers/50804/"}],"crs":"EPSG:2193"}' \
https://data.linz.govt.nz/services/api/v1.x/exports/
Example shape. Check the layer's Services tab for the exact
endpoint.
AI Pro User, Team Cloud, Business Cloud, Enterprise
API keys and tokens
Issue, scope and revoke
Every request carries a key. Scoping controls (limit to group-owned or group-accessible data, domain-locking) are Team and above.
AI Pro User, Team Cloud, Business Cloud, Enterprise
Users and groups
Invite, group, review, block
Paid seats, groups, and viewer/export users, with per-group find, view, export and manage policies. Not part of the single-seat plans.
Team Cloud, Business Cloud, Enterprise
Sites and custom domain
Your own branded site, on your own domain
A branded site comes with Team and above. Serving it from your own domain, and running your APIs against that domain, is Business and above.
Team Cloud, Business Cloud, Enterprise
Usage reporting
Who exported what, and how much was used
Export history across the account, plus per-user history. Account-wide reporting is Business and above.
Business Cloud, Enterprise