PlatformIntegrations
API ReferenceV1.2 (Current)

Accounts

List connected accounts

GET
/accounts
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Query Parameters

offset?integer
Default0
limit?integer
Default10
sortBy?string
Value in"createdAt" | "updatedAt" | "name" | "referenceCode"
descending?boolean
search?string

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Response Body

application/json

application/json

curl -X GET "https://api.obligo.com/accounts?offset=0&limit=10&sortBy=createdAt&descending=true&search=string" \  -H "Obligo-Version: string"
{
  "totalItems": 0,
  "items": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "referenceCode": "string",
      "name": "string",
      "displayName": "string",
      "consents": [
        {
          "type": "ObligoTermsOfService",
          "version": "2022-07-11",
          "firstName": "string",
          "lastName": "string",
          "ipAddress": "string",
          "timestamp": "2019-08-24T14:15:22Z"
        }
      ],
      "metadata": {},
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "connectedToAccountId": "b5c2868f-b487-44c3-8d83-3cc110c24b91"
    }
  ]
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Create a connected account

POST
/accounts
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Query Parameters

idempotencyId?string

Idempotency key for write requests. Cached for 24 hours.

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

namestring
displayName?string

Optional human-friendly name shown to users instead of name. When set here it is recorded as manually set and is never replaced by an automatically derived value. When omitted, a display name is derived from name.

Length1 <= length <= 255
consents?
metadata?

Response Body

application/json

application/json

curl -X POST "https://api.obligo.com/accounts?idempotencyId=string" \  -H "Obligo-Version: string" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Get a connected account

GET
/accounts/{accountId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

accountIdstring
Formatuuid

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Response Body

application/json

application/json

curl -X GET "https://api.obligo.com/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Obligo-Version: string"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "referenceCode": "string",
  "name": "string",
  "displayName": "string",
  "consents": [
    {
      "type": "ObligoTermsOfService",
      "version": "2022-07-11",
      "firstName": "string",
      "lastName": "string",
      "ipAddress": "string",
      "timestamp": "2019-08-24T14:15:22Z"
    }
  ],
  "metadata": {},
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "connectedToAccountId": "b5c2868f-b487-44c3-8d83-3cc110c24b91"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Update a connected account

PUT
/accounts/{accountId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

accountIdstring
Formatuuid

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

name?string
displayName?string

Optional human-friendly name shown to users instead of name. When set here it is recorded as manually set and is never replaced by an automatically derived value. Send null to discard a manually set name and go back to one derived from name, which also lets automatically derived values apply again. When omitted, the display name is left unchanged unless it was automatically derived and name changes, in which case it is re-derived from the new name.

Length1 <= length <= 255
metadata?

Response Body

application/json

application/json

curl -X PUT "https://api.obligo.com/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Obligo-Version: string" \  -H "Content-Type: application/json" \  -d '{}'
Empty
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
POST
/accounts/{accountId}/consents
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

accountIdstring
Formatuuid

Query Parameters

idempotencyId?string

Idempotency key for write requests. Cached for 24 hours.

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

typestring
Value in"ObligoTermsOfService"
versionstring

The version of the terms of service the consent was given to, one of the values listed here. Send it exactly as listed, case included. For compatibility the API also accepts a trailing .pdf or .html and the earlier name tos-2026-05-15, and stores the matching value from this list.

Value in"2022-07-11" | "2025-05-20" | "2026-05-15"
firstName?string

First name of the person who gave the consent. Optional.

Length2 <= length <= 20
lastName?string

Last name of the person who gave the consent. Optional.

Length2 <= length <= 20
ipAddressstring

IP address of the person who gave the consent. Optional when creating an account; required when adding a consent to an existing account.

timestampstring

When the consent was given. Optional when creating an account; required when adding a consent to an existing account.

Formatdate-time

Response Body

application/json

application/json

curl -X POST "https://api.obligo.com/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/consents?idempotencyId=string" \  -H "Obligo-Version: string" \  -H "Content-Type: application/json" \  -d '{    "type": "ObligoTermsOfService",    "version": "2022-07-11"  }'
Empty
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}