Create an API tool that lets agents work in this account with the token
The body carries the token's plaintext token, which only the caller
holds (it was just shown to them), and base_url, where the API is
reached. The tool gets an action for each endpoint the token may call
(see docsgpt.api.pat.agent_tool), with the token sealed as their
Authorization header. Deletes, and asking another agent, start
switched off; the response names them in inactive.
Not available to personal access tokens; call it from a signed-in session.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
token_id*stringSuccess
curl -X POST 'http://localhost:7091/api/user/tokens/string/tool'Issue a new secret for a token and reset its expiry POST
Name, scopes and restrictions stay; the old secret stops working at once. `expires_in_days` is optional and defaults to the lifetime the token was last issued with. An expired token can be renewed this way; a revoked one cannot. The plaintext `token` is returned here and never again. Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.
Create a token POST
The plaintext `token` is returned here and never again. Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.