Skip to Content
Xeonr Developer Docs

Renew Agent Grant Token

POST
/xeonr.auth.api.v1.McpAgentGrantsService/RenewAgentGrantToken

Issues a fresh gateway token (at most one hour, never past the grant's expiry) for an agent grant the calling starter minted.

Required scopes: mcp:agent-grants

Authorization

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

grantId?string
Match^ag_[0-9]+$
Length4 <= length <= 32
lifetimeSeconds?string

Requested token lifetime in seconds; capped at one hour and the grant's expiry. 0 or unset: one hour. int64.lte = 3600 int64.gte = 0

Formatint64
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.McpAgentGrantsService/RenewAgentGrantToken" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "accessToken": "string",
  "expiresIn": "string",
  "expiresAt": "2023-01-15T01:30:15.01Z",
  "grantExpiresAt": "2023-01-15T01:30:15.01Z"
}