Billing
A slot is a paid seat; connecting an account occupies one slot of its tier. These endpoints let a platform provision and release slots programmatically — onboard users and buy the slots they need, release them as customers churn, with no dashboard step.
Purchasing requires a saved card
Card collection needs a browser (PCI and 3-D Secure), so add a card once in the dashboard under Settings → Billing; after that the API can charge it. Call GET /v1/slots/payment-method first to confirm — otherwise POST /v1/slots returns 402 payment_method_required.
Get usage
/v1/usageAccount slot usage per tier (used / limit / available). The cheapest way to check whether you need to buy a slot before connecting an account.
curl https://api.metakit.cloud/v1/usage \
-H "Authorization: Bearer stk_live_..."{
"readonly_accounts": { "used": 1, "limit": 2, "available": 1 },
"full_accounts": { "used": 0, "limit": 1, "available": 1 }
}Check payment method
/v1/slots/payment-methodWhether a saved card is on file. When configured is false, slot purchases are rejected with 402 — add a card in the dashboard first. There is deliberately no API endpoint to store a card.
curl https://api.metakit.cloud/v1/slots/payment-method \
-H "Authorization: Bearer stk_live_..."{
"configured": true,
"brand": "visa",
"last4": "4242"
}List slots
/v1/slotsEvery slot you own, including canceled ones so you can reconcile against your own records. connected_account_id is the numeric account currently occupying the slot, or null when free.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
status | string | No | Filter by active, past_due, canceled or incomplete. |
page | integer | No | Page number (default 1). |
limit | integer | No | Items per page (default 25, max 100). |
curl https://api.metakit.cloud/v1/slots \
-H "Authorization: Bearer stk_live_..."{
"data": [
{
"id": "6a5a8ba4e7637702503bd8f0",
"tier": "full",
"status": "active",
"connected_account_id": 2,
"created_at": "2026-07-10T12:00:00.000Z",
"updated_at": "2026-07-10T12:00:00.000Z"
}
],
"page": 1, "limit": 25, "total": 1, "total_pages": 1
}Buy a slot
/v1/slotsPurchases one slot and charges your saved card immediately, starting a recurring subscription at your account’s slot price. Returns 402 payment_method_required when no card is on file. A slot with status incomplete means the charge has not settled yet (for example 3-D Secure) — it becomes usable once the subscription is active.
{ "tier": "full" }curl https://api.metakit.cloud/v1/slots \
-H "Authorization: Bearer stk_live_..." \
-H "Content-Type: application/json" \
-X POST \
-d '{ "tier": "full" }'{
"slot": {
"id": "6a5a8ba4e7637702503bd8f1",
"tier": "full",
"status": "active",
"connected_account_id": null,
"created_at": "2026-07-28T10:00:00.000Z",
"updated_at": "2026-07-28T10:00:00.000Z"
},
"charged_to": { "brand": "visa", "last4": "4242" }
}Release a slot
/v1/slots/{id}Cancels the slot and its subscription. Returns 409 slot_occupied while an account occupies it — delete the account first (a stopped account still occupies its slot). A billing call will never disconnect a live trading account as a side effect. Returns 204.
curl https://api.metakit.cloud/v1/slots/123 \
-H "Authorization: Bearer stk_live_..." \
-X DELETE204 No Content