Skip to Content
Docs

What the team workspace spent this period (``?period=previous`` for the one before)

GET
/api/teams/{team_id}/usage

The team's Owner and Admins only: 403 workspace_role_required below Admin, 404 outside the team. Lists hold at most 200 rows, by cost then tokens. See :func:team_usage_body for the shape.

Not available to personal access tokens; call it from a signed-in session.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

team_id*string

Response Body

Success

Example Request
curl -X GET 'http://localhost:7091/api/teams/string/usage'
Example Response200
Empty