Getting started
This is the v2 partner API. Everything lives under /api/v2. Authentication is
OAuth2 client credentials only — there is no API-key, no session-cookie, and
no human in the loop.
Do not build on /api/v1: it is switched off and answers 410 Gone. See
v1 vs v2.
Prefer to click through it first? The interactive quickstart
runs this whole flow with sample data (no account needed) or live with your own credentials.
1. Register a partner application
- Sign in to your Orobo organisation as an owner (or platform admin).
- Open Organisations → Integrations (
/organisations/integrations) and find the Partner API Applications panel. - Click Create Application (or + New Application in the panel header if you already have apps), name it (e.g. Production ETL), and select the scopes you need. See Authentication for the full scope catalogue.
- After save, Orobo shows you the
client_idplus a freshly mintedclient_secretexactly once. Store both server-side; you will not be able to retrieve the secret again. - Optional but recommended: add one or more CIDR ranges to the IP allowlist so token holders are bound to the IPs you control.
You can rotate or revoke individual secrets from the same screen — old and new
secrets remain valid in parallel until you revoke the old one, so partners can
roll keys without downtime.
2. Get a token
Exchange your credentials for a bearer token valid for 15 minutes
(expires_in: 900). This call is throttled to
30 attempts per minute per IP.
curl -sS https://orobo.io/oauth/token \
-d grant_type=client_credentials \
-d client_id=$OROBO_CLIENT_ID \
-d client_secret=$OROBO_CLIENT_SECRET \
-d scope='dpps:read templates:read'
{
"access_token": "eyJhbGciOi...",
"token_type": "Bearer",
"expires_in": 900,
"scope": "dpps:read templates:read",
"created_at": 1742480000
}
Cache the token until created_at + expires_in - 60s and re-issue when it expires.
Re-using credentials before expiry is wasteful but harmless; rate limits apply.
3. Make your first call
List your organisation's product templates (scope templates:read):
curl -sS https://orobo.io/api/v2/product_templates \
-H "Authorization: Bearer $TOKEN"
{
"data": [ { "id": "01G...", "name": "EV Battery v3", "sections": [ ... ] } ],
"meta": { "page": 1, "per_page": 25, "total_pages": 1, "total_count": 1 }
}
If you get back a 200 (an empty data array is fine for a new
organisation), your credentials, scopes, and IP allowlist are all correctly
set up. A 403 means the token lacks templates:read. From here, see Product Templates,
DPPs, and the rest of the resource references in the sidebar.
To create DPPs you need a template owned by your organisation: the API
doesn't list the shared Orobo templates you may use in the web app. If the list
is empty, clone the template you want under Templates in the web app first
(see Product Templates).
SDK-free clients in 4 languages
require "net/http"
require "json"
uri = URI("https://orobo.io/oauth/token")
res = Net::HTTP.post_form(uri,
grant_type: "client_credentials",
client_id: ENV["OROBO_CLIENT_ID"],
client_secret: ENV["OROBO_CLIENT_SECRET"],
scope: "dpps:read templates:read")
token = JSON.parse(res.body).fetch("access_token")
http_get = Net::HTTP::Get.new("/api/v2/product_templates", "Authorization" => "Bearer #{token}")
puts Net::HTTP.start("api.orobo.tech", 443, use_ssl: true) { |h| h.request(http_get).body }
cURL
See above. To run the whole flow (token, templates, a draft DPP, the public read)
with generated code in all four languages, use the
interactive quickstart.
What to read next
- v1 vs v2 — what is generally available today and what is still behind a flag.
- Authentication — scopes, secret rotation, IP allowlist.
- Conventions — pagination, idempotency, RFC 7807 errors.
- DPPs and Product Templates — the meat of the API.
- Webhooks — receive
dpp.publishedand friends in your own backend. - Errors reference — every status code we emit and why.