/v1/gtm/channel-inventoryAPI keyRead sending capacity
Read what each connected sending account may send today, and what it has spent.
Capacity is per account per day and is not advisory — a send past it is refused, not queued. Read this before planning a batch rather than discovering the ceiling partway through one.
curl -X GET "https://runlog-7613480744.us-central1.run.app/v1/gtm/channel-inventory" \
-H "Authorization: Bearer $RUNLOG_API_KEY" \
-H "X-Project-Id: p7Kd2mQx"{
"accounts": [
{
"accountId": "acc_7Hq2Rm",
"dailyLimit": 20,
"kind": "professional-network",
"spentToday": 6
}
]
}Errors
| Status | error | When |
|---|---|---|
| 404 | project not found | The project does not exist, or you have no access to it. Projects are non-enumerable, so a denied read is indistinguishable from a missing one. |
| 401 | invalid API key | The `Authorization` header is missing, malformed, or names a revoked key. |
| 400 | name the target project via the X-Project-Id header or projectId query | No project was named and the key is not bound to one. |
| 429 | rate limit exceeded | You passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait. |
| 500 | internal error | The relay failed to serve the request. Retry with backoff; the cause is logged server-side against your request. |