Skip to main content
POST
/
user
/
v1
/
contracts
Create contract
curl --request POST \
  --url https://api.machines.cash/user/v1/contracts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'idempotency-key: <idempotency-key>' \
  --data '{}'
{
  "ok": true,
  "data": {},
  "summary": "success"
}

Authorizations

Authorization
string
header
required

Bearer session token for User API operations. Legacy UserSessionBearer naming remains supported.

Headers

idempotency-key
string
required

Required for state-changing financial writes.

Minimum string length: 8

Body

application/json

The body is of type object.

Response

Success

ok
boolean
data
object
summary
string
errors
object[]
next
string