Integrations
You already make the deliverable — the orthophoto, the GIS layer, the mesh. This is how it gets from your pipeline into your customer's Ollebo space, without either of you touching a browser. Your customer authorises once on your own page, and from then on your backend publishes on their behalf.
How it works
Seven steps, all plain HTTP. Nothing here needs a browser except the one-time authorisation, which happens on your page and returns you to your own callback.
your customer your backend Ollebo | | |
| 1. "connect my Ollebo" | |
|--------------------------->| 2. redirect to Keycloak |
|<===========================|============================>|
| 3. they sign in, you get a code -> tokens |
| | |
| | 4. GET /spaces |
| | 5. POST /assets -> upload URL
| | 6. PUT the file -> S3 |
| | 7. POST /maps|/layers|/models
| | poll until "ready" |
- Your customer presses Connect Ollebo on your site.
- You send them to Keycloak with your client id.
- They sign in; you exchange the code for an access token and a refresh token.
- You list their spaces and let them pick one.
- You create an asset and get a signed upload URL back in the same response.
- You PUT the file straight to storage.
- You publish it as a map, a layer or a 3D model, and poll until it is ready.
Get a client
Each partner gets their own OAuth client in our Keycloak realm. Email us at contact with:
- Your company name, and the name you want shown on the consent screen.
- Your exact redirect URI(s), e.g.
https://partner.example.com/oauth/callback. We do not allow wildcards.
You get back a client_id, a client_secret, and the three endpoints below.
AUTH=https://auth.ollebo.com/realms/master/protocol/openid-connect/auth TOKEN=https://auth.ollebo.com/realms/master/protocol/openid-connect/token API=https://www.ollebo.com/api/integration
Client credentials will not work for this API
A service-account token belongs to your application, not to a person, so it is a member of no space and every call would be refused. The whole point is that you act as your customer, with the access they already have. Use the authorisation code flow.
The flight request feed is the exception, and the reason is the same one: it is global rather than scoped to any customer's space, so there is no membership to check. That API uses client credentials and nothing else.
Authorise
Standard OAuth 2.0 authorisation code with PKCE. Send your customer here:
GET $AUTH ?client_id=partner-acme &response_type=code &scope=openid profile email &redirect_uri=https://partner.example.com/oauth/callback &code_challenge=YOUR_CHALLENGE &code_challenge_method=S256 &state=YOUR_STATE
They sign in, and Keycloak returns them to your callback with a code. Exchange it:
curl -s -X POST "$TOKEN" \
-d grant_type=authorization_code \
-d client_id=partner-acme \
-d client_secret=$CLIENT_SECRET \
-d code=$CODE \
-d code_verifier=$VERIFIER \
-d redirect_uri=https://partner.example.com/oauth/callback
# -> { "access_token": "...", "refresh_token": "...", "expires_in": 300, ... }
Access tokens are short-lived. Store the refresh token against your customer's account and
refresh when you get a 401:
curl -s -X POST "$TOKEN" \ -d grant_type=refresh_token \ -d client_id=partner-acme \ -d client_secret=$CLIENT_SECRET \ -d refresh_token=$REFRESH_TOKEN
Every call below sends that token as Authorization: Bearer $TOKEN. Call from
your backend — the token is a credential and does not belong in a browser.
Pick a space
A space is where a customer's data lives — assets, maps, layers, models, and the people who can see them. Most people have one; a company may have several. Every later call names the space in its URL.
curl -s -H "Authorization: Bearer $TOKEN" "$API/spaces"
# -> { "spaces": [ { "id": "SPACE_ID", "name": "Acme Survey",
# "slug": "acme-survey", "storageLimitGb": 100,
# "tier": "pro", "type": "company" } ] }
A customer who has never opened Ollebo gets a personal space created on their first call, so this never comes back empty.
Upload the file
One call creates the record and hands you a signed URL; the second sends the bytes straight to storage without passing through us.
curl -s -X POST "$API/spaces/SPACE_ID/assets" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"filename": "site-a-ortho.tif",
"name": "Site A orthophoto",
"type": "image/tiff",
"sizeBytes": 481203712,
"tags": "site-a",
"width": 0,
"height": 0
}'
# -> { "asset": { "id": "ASSET_ID", ... },
# "upload": { "method": "PUT", "url": "https://...",
# "expiresIn": 86400,
# "headers": { "Content-Type": "image/tiff" } } }
Then send the file to upload.url, with the same content type:
curl -X PUT "$UPLOAD_URL" \ -H "Content-Type: image/tiff" \ --upload-file site-a-ortho.tif
Getting the body right
sizeBytes,widthandheightare JSON numbers, not strings. Send0for the dimensions when the file is not an image.sizeBytesis what we check the space's storage allowance against, so send the real size — you get a413before the upload URL if it does not fit.- Keep the real extension on
filename. It is what decides how a layer or a model is read. - The upload URL is good for a single PUT within 24 hours. Need another go? Create a new asset.
Publish it
Same shape for all three, pointing at the asset you just uploaded. access is
public or private.
# a map, from a georeferenced raster
curl -s -X POST "$API/spaces/SPACE_ID/maps" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{ "asset": "ASSET_ID", "name": "Site A", "tags": "site-a",
"type": "regular", "access": "public" }'
# a vector layer
curl -s -X POST "$API/spaces/SPACE_ID/layers" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{ "asset": "ASSET_ID", "name": "Parcels", "tags": "site-a",
"access": "public" }'
# a 3D model
curl -s -X POST "$API/spaces/SPACE_ID/models" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{ "asset": "ASSET_ID", "name": "Site A mesh", "tags": "site-a",
"access": "public" }'
All three answer 202 with the new row. That means accepted, not finished —
see step 6.
What you can send
Maps .tif, .tiff
A georeferenced orthophoto that carries its coordinate system and extent. RGB works as is; single-band rasters like NDVI or elevation are colour-mapped for you.
3D models .glb, .gltf, .obj
Textured meshes. The type comes from the extension. Point clouds (.las / .laz) are not supported yet.
GeoJSON .geojson, .json
Must be WGS84. Passed straight through.
Shapefile .zip
Zip the .shp, .dbf, .shx and .prj
together. Reprojected to WGS84 automatically. A bare .shp is refused.
KML / KMZ / GPX .kml, .kmz, .gpx
Straight out of Google Earth, a flight planner or a GPS handset.
CSV .csv
Any table with latitude and longitude columns. Every other column becomes an attribute.
Layer sources are capped at 25 MB; GeoPackage
(.gpkg) is not supported yet — export to GeoJSON or a zipped Shapefile.
Maps and models have no format cap beyond the space's storage allowance.
Read it back
Publishing is asynchronous. Every row carries a status that moves
pending → processing → ready, or
failed. Poll until it settles — a few seconds for a layer, minutes for a large
raster. Back off as you go rather than hammering it.
curl -s -H "Authorization: Bearer $TOKEN" \
"$API/spaces/SPACE_ID/maps/MAP_ID"
# -> { "map": { "mapid": "MAP_ID", "status": "ready",
# "tilesurl": "https://maps.ollebo.com/...", ... } }
# or everything at once
curl -s -H "Authorization: Bearer $TOKEN" "$API/spaces/SPACE_ID/layers"
# -> { "items": [ { "layerid": "...", "status": "ready",
# "absoluteUrl": "https://maps.ollebo.com/layers/.../layer.geojson" } ] }
A finished map gives you tilesurl, ready for any XYZ raster source. A finished
layer gives you absoluteUrl — plain GeoJSON that anything can read.
Delete a map
curl -s -X DELETE -H "Authorization: Bearer $TOKEN" \ "$API/spaces/SPACE_ID/maps/MAP_ID" # -> 204 (404 if it was already gone)
This removes the map. The source asset stays, so the same file can back another map — and so deleting a map does not free storage allowance.
Endpoints
| Method & path | Purpose |
|---|---|
| GET /spaces | The spaces this user can push to |
| POST /spaces/{space}/assets | Create an asset, get a signed upload URL |
| GET /spaces/{space}/assets | List assets |
| POST /spaces/{space}/maps | Publish an asset as a map |
| POST /spaces/{space}/layers | Publish an asset as a vector layer |
| POST /spaces/{space}/models | Publish an asset as a 3D model |
| GET /spaces/{space}/maps | List maps, with status and tile URLs |
| GET /spaces/{space}/maps/{map} | One map — the endpoint to poll |
| GET /spaces/{space}/layers | List layers, with GeoJSON URLs |
| GET /spaces/{space}/models | List 3D models |
| DELETE /spaces/{space}/maps/{map} | Delete a map |
Base URL https://www.ollebo.com/api/integration. Every path is prefixed with it.
When something goes wrong
| Status | error | What to do |
|---|---|---|
| 401 | missing_bearer_token | No Authorization header. Send one. |
| 401 | invalid_token | Expired or bad token — refresh and retry once. |
| 403 | client_not_allowed | This client is not enabled for the API. Talk to us. |
| 403 | space_forbidden | Your customer is not in that space. Re-read GET /spaces. |
| 404 | asset_not_found | The asset id is not in this space. |
| 413 | quota_exceeded | The space is out of storage. message says the allowance. |
| 400 | layer_rejected | reason is a sentence you can show your user as is. |
| 400 | unsupported_type | Not a .glb / .gltf / .obj, or the extension is missing. |
Limits
- Storage follows the space's plan — 5 GB free, 100 GB on Pro, 250 GB on Full. See pricing.
- Layer sources up to 25 MB, converted one at a time. If another is running you get
layer_rejectedasking you to retry in a minute. - Upload URLs last 24 hours and are good for one PUT.
- Deleting a map does not free storage; deleting assets is not available yet.
Call it from your backend
The API is built for server-to-server calls, so there is no CORS to think about, and your customer's token never reaches a browser. If you genuinely need to call it from your own frontend, tell us the origin and we will allow it — but the token still belongs on your server.
Next
Publishing orthophotos is the common case and has a few more moving parts — Maps integrations walks the whole thing end to end with a script you can copy.