---
title: "Get an agent's max-tokens admission status"
method: GET
path: "/v1/agents/{id}/max-tokens-status"
tags: ["Agents"]
---

# Get an agent's max-tokens admission status

`GET /v1/agents/{id}/max-tokens-status`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/agents/{id}/max-tokens-status`
- Auth: one of:
  - API key in header `GREPR-API-KEY`
  - OpenID Connect (`https://grepr-prod.us.auth0.com/.well-known/openid-configuration`)

Returns whether a new investigation could start for the agent right now, the max-tokens limit blocking it when not, and when the current max-tokens window resets.

## Path parameters

- `id` string, required

## Response `200`

Max-tokens status retrieved successfully

- AgentMaxTokensStatus
  - `admits` boolean
  - `agentLimit` integer
  - `agentReserved` integer
  - `agentUsage` integer
  - `blockedBy` 'AGENT_MAX_TOKENS' | 'INTEGRATION_MAX_TOKENS'
  - `integrationLimit` integer
  - `integrationReserved` integer
  - `integrationUsage` integer
  - `investigationsQueued` integer
  - `reservation` integer
  - `windowResetsAt` string, date-time

## Other responses

- `401`: Unauthorized
- `404`: Agent not found

---

[API](https://skmtc.dev/grepr/apis/grepr-api.md) - [All operations](https://skmtc.dev/grepr/apis/grepr-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grepr/apis/grepr-api/revisions/2a5ce03a0bf0?raw)
