Skip to main content
GET
/
orgs
/
{org_id}
/
billing
/
budgets
cURL
curl --request GET \
  --url https://api.timbal.ai/orgs/{org_id}/billing/budgets \
  --header 'Authorization: Bearer <token>'
{
  "budgets": [
    {
      "budget_type": "<string>",
      "limit_credits": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "current_credits": 123,
      "id": 123,
      "period_end": "2023-11-07T05:31:56Z",
      "period_start": "2023-11-07T05:31:56Z",
      "project_id": 123,
      "project_name": "<string>",
      "role_id": 123,
      "role_name": "<string>",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Timbal API key. Obtain your API key from the Timbal platform settings. See Authentication for more information.

Path Parameters

org_id
string
required

Query Parameters

project_id
string | null

When set, return at most the project budget for this project (0 or 1 rows).

role_id
string | null

When set, return at most the role budget for this role (0 or 1 rows).

Response

Budgets

budgets
object[]
required