List an app's service tokens
list_app_tokensList a private app's service tokens: the bearer credentials scripts and other apps call it with. Each token shows its name, whether it is live, expired, or retiring (the old value of a rotation, which keeps working until the time shown), its expiry, who minted it and when, and the callers' env vars a rotation delivered it to. A token's value is never shown. Call it before rotate_app_token to find a token's name and the callers it will update. Requires connecting a Valet account. Requires the Admin role.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "list_app_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The app's name, as list_services shows it: the app whose tokens these are. | |
| org_name | No | The Valet organization it belongs to. Omit to use the organization the account joined first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app the tokens belong to. | |
| org | Yes | Name of the Valet organization the call acted in. | |
| tokens | Yes | The app's tokens, oldest first. Empty when it has none. |