Skip to main content
POST
/
agents
/
{agentId}
/
regenerate-token
Regenerate agent token
curl --request POST \
  --url https://api.onecli.sh/v1/agents/{agentId}/regenerate-token \
  --header 'Authorization: Bearer <token>'
{
  "error": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key obtained from the dashboard or GET /user/api-key

Path Parameters

agentId
string
required

Response

New token generated. The response includes the new access token.