Skip to main content
POST
Add a restricted fund

Authorizations

Authorization
string
header
required

A group API key, sent as Authorization: Bearer sw_live_…. Keys from staging and the demo start sw_test_ instead. A group admin creates keys in Settings → Integrations → API keys.

Scopes

accounting:write

Headers

Idempotency-Key
string

Unique per fund: any printable text up to 255 characters. A retry with the same key and body within 24 hours answers with the first fund instead of making another. Recommended.

Required string length: 1 - 255

Body

application/json

A field not listed here is refused with a 400.

name
string
required

Unique in the group.

Required string length: 1 - 100
allocated
string

The amount the fund is set up with. Defaults to "0.00".

Pattern: ^\d+(\.\d{1,2})?$
{key}
any

Response

The fund an earlier request with the same Idempotency-Key made.

data
object
required
{key}
any