Create Connection

Create a new connection in the sandbox. This endpoint is only available in sandbox mode (live_mode: false).

post/connections

Request

  • Base URL
    https://app.moderntreasury.com/api
  • URL
    https://app.moderntreasury.com/api/connections
  • Auth
    HTTP basic

Request body

entity_id'example1' | 'example2' | 'modern_treasury' required

The entity ID of the connection. Currently supported values are example1, example2, and modern_treasury.

nicknamestring

An optional human-friendly nickname for the connection.

Response

201

idstring
objectstring
live_modeboolean
vendor_idstring
vendor_namestring
vendor_customer_idunknown
discarded_atunknown
created_atstring
updated_atstring

Example response

{
  "id": "dac94e63-9f4a-46b9-ba6b-412acfbf4cc1",
  "object": "connection",
  "vendor_id": "modern_treasury",
  "vendor_name": "Modern Treasury",
  "created_at": "2025-07-24T23:43:49Z",
  "updated_at": "2025-07-24T23:43:49Z"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.