Skip to main content
POST
/
api
/
public
/
v1
/
orders
Create buy orders
curl --request POST \
  --url https://thefirm.biz/api/public/v1/orders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "slug": "thefirm",
      "maxSpendUsdc": "50",
      "expiresInMs": 86400000,
      "maxFdvUsdc": "5000000"
    }
  ]
}
'
{
  "results": [
    {
      "slug": "thefirm",
      "ok": true,
      "status": "created"
    },
    {
      "slug": "charms",
      "ok": true,
      "status": "unchanged"
    },
    {
      "slug": "no-such-project",
      "ok": false,
      "code": "unknown_project",
      "message": "No project matches the slug"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key issued via POST /api/public/v1/api-keys.

Body

application/json

The projects to order and their per-project buy caps.

items
object[]
required
Required array length: 1 - 50 elements

Response

Per-item results for the batch.

results
object[]
required