PlatformIntegrations
API ReferenceV1.2 (Current)

Users

List users

GET
/users
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"
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.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid

Response Body

application/json

curl -X GET "https://api.obligo.com/users?offset=0&limit=10&sortBy=createdAt&descending=true&search=string" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "totalItems": 0,
  "items": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "email": "user@example.com",
      "roles": [
        {
          "type": "Admin"
        }
      ],
      "directConsoleAccess": true,
      "active": true,
      "metadata": {},
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ]
}

Create a user

POST
/users
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.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid
emailstring
Formatemail
roles
directConsoleAccessboolean
activeboolean
metadata?
correlationId?string

Response Body

application/json

application/json

curl -X POST "https://api.obligo.com/users?idempotencyId=string" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "email": "user@example.com",    "roles": [      {        "type": "Admin"      }    ],    "directConsoleAccess": true,    "active": true  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Get a user

GET
/users/{userId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

userIdstring
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.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid

Response Body

application/json

application/json

curl -X GET "https://api.obligo.com/users/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "email": "user@example.com",
  "roles": [
    {
      "type": "Admin"
    }
  ],
  "directConsoleAccess": true,
  "active": true,
  "metadata": {},
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Delete a user

DELETE
/users/{userId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

userIdstring
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.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid

Response Body

application/json

curl -X DELETE "https://api.obligo.com/users/497f6eca-6276-4993-bfeb-53cbbbba6f08?idempotencyId=string" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Update a user

PUT
/users/{userId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

userIdstring
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.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid
roles?
directConsoleAccess?boolean
active?boolean
metadata?

Response Body

application/json

application/json

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

Create a user session

POST
/users/{userId}/session
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

userIdstring
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.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid

Response Body

application/json

application/json

application/json

curl -X POST "https://api.obligo.com/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/session" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "token": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}