Skip to content

Management API

Manage your Engy account programmatically with the Management API.

The Management API lets you manage your Engy account programmatically, on your own behalf. This page explains what the API provides and how to authenticate and call it. It is intended for developers who build monitoring, budgeting, or automation tools.

Capabilities

EndpointDescription
GET /api/v1/balanceReturns your balance and the amount available after holds.
GET /api/v1/usageReturns requests and spending, aggregated by day and by model.
GET /api/v1/modelsReturns the model catalog with prices and token limits.

The base URL is https://engy.ai.

The Management API was previously named the Agent API. The endpoints and account tokens are the same.

The current endpoints are read-only. To create or delete API keys and to add credits, use the dashboard. To send inference requests, use the inference API with an API key.

Authentication

The Management API uses an account token. Account tokens are different from API keys:

CredentialPrefixPurposeCan spend credits
Account tokenrk-engy-Read account data through the Management APINo
API keysk-engy-Send inference requestsYes

Because an account token cannot spend credits, you can give it to monitoring tools and agents with less risk than an API key.

Create an account token

Open the account tokens page

In the dashboard, go to Account tokens.

Create the token

Click Create account token.

Copy the token

Copy the token and store it securely.

The token is displayed only once. If you lose it, regenerate it.

Each account has one active account token. To replace it, click Regenerate token. The previous token stops working immediately, so update every tool that uses it.

Make a request

Send the account token in the Authorization header:

curl https://engy.ai/api/v1/balance \
  -H "Authorization: Bearer $ENGY_ACCOUNT_TOKEN"

API reference

For the parameters, response fields, errors, and rate limits of each endpoint, see the Management API reference: