API ReferenceGetting Started
Versioning
Control which API version your requests use.
API behavior is selected with the Obligo-Version request header.
| Value | Notes |
|---|---|
1.2 | Current version. Use for new integrations. |
1.1 | Supported for existing integrations. |
1 | Supported for existing integrations. See API v1.0 (Legacy). |
A value that an endpoint doesn't accept, such as 1.0, returns 400 with errorCode ApiVersionNotSupported.
Pinning a version
Include the header on every request so upgrades on Obligo's side do not change your integration unexpectedly.
curl https://api.sandbox.myobligo.com/leases \
-u "$CLIENT_ID:$CLIENT_SECRET" \
-H "Obligo-Version: 1.2"Omitting the header
If you omit Obligo-Version, Obligo uses your app's API version. Apps created on the Obligo dashboard's Developers page use 1.2.
Next: Errors