Skip to main content
GET
/
v2
/
budgets
/
{budget_id}
Retrieve a budget
curl --request GET \
  --url https://api.orq.ai/v2/budgets/{budget_id} \
  --header 'Authorization: Bearer <token>'
{
  "budget": {
    "budget_id": "<string>",
    "workspace_id": "<string>",
    "scope": {
      "workspace": {},
      "project": {
        "project_id": "<string>"
      },
      "identity": {
        "identity_external_id": "<string>"
      },
      "api_key": {
        "api_key_id": "<string>"
      },
      "provider": {
        "provider": "<string>"
      },
      "model": {
        "model_id": "<string>"
      }
    },
    "limits": {
      "amount": 123,
      "token_limit": "<string>"
    },
    "rate_limit": {
      "requests_per_minute": 123
    },
    "is_active": true,
    "expires_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

budget_id
string
required

Budget id to retrieve.

Response

200 - application/json

OK

budget
object

Requested budget.