PlatformIntegrations
API ReferenceV1.2 (Current)

Files

Upload a file

POST
/files
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

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
filefile

File to upload (jpg, jpeg, png, or pdf). Maximum size 10MB.

Formatbinary
titlestring

The file's title. Required.

Response Body

application/json

application/json

curl -X POST "https://api.obligo.com/files" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -F file="string" \  -F title="Move-out ledger"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Get a file

GET
/files/{fileId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

fileIdstring
Formatuuid

Query Parameters

expiresAt?string

Custom expiration date for the download URL

Formatdate

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/files/497f6eca-6276-4993-bfeb-53cbbbba6f08?expiresAt=2019-08-24" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "title": "string",
  "fileName": "string",
  "fileType": "string",
  "fileSize": 0,
  "url": "http://example.com",
  "createdAt": "2019-08-24T14:15:22Z",
  "expiresAt": "2019-08-24T14:15:22Z",
  "metadata": {}
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Delete a file

DELETE
/files/{fileId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

fileIdstring
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

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

Update a file

PUT
/files/{fileId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

fileIdstring
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
titlestring

Response Body

application/json

application/json

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