PlatformIntegrations
API ReferenceGetting Started

Authentication

Authenticate requests to the Obligo API.

The Obligo API uses HTTP Basic Authentication. Pass your clientId as the username and your clientSecret as the password.

Warning: Do not expose your clientSecret in client-side code or public repositories. Store credentials in a secure server environment or secrets manager.

Request

curl https://api.sandbox.myobligo.com/leases \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -H "Obligo-Version: 1.2"

The -u flag encodes the pair as an Authorization: Basic … header.

Connected accounts

To perform operations on a connected account (a sub-account managed through your platform), include the Account-Id header with that account's identifier.

curl https://api.sandbox.myobligo.com/leases \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -H "Obligo-Version: 1.2" \
  -H "Account-Id: 8d3c5c2e-1f4a-4b2c-9e7d-6a5b4c3d2e1f"

Omit Account-Id when the request applies to your own primary account.

Don't send Account-Id to the /accounts endpoints, including their settings and portfolio assessment. They take the connected account's ID in the path, and return 400 with errorCode AccountIdHeaderNotAllowed if the header is present.

Next: Versioning