Youtarr Api Keys
youtarr_api_keysManage Youtarr API keys: list, create, update policy or channel grants, regenerate, and revoke keys through an operation-based tool.
Instructions
api keys operations on Youtarr. Pass operation and an arguments dict matching that operation's parameters.
youtarr_list_api_keys(): List API key metadata without raw key values; requires a full session.
youtarr_create_api_key(name, role=None, policy=None, channel_ids=None): WRITE: Create a download, status_read, or constrained external key; the raw key is shown once.
youtarr_update_api_key_policy(key_id, policy): WRITE: Replace a constrained external API key's policy.
youtarr_get_api_key_channels(key_id): Read the exact channel grants for an active constrained external API key.
youtarr_replace_api_key_channels(key_id, channel_ids): WRITE: Replace an external API key's exact channel grant set.
youtarr_replace_api_key_external_access(key_id, policy, channel_ids): WRITE: Atomically replace a constrained key's policy and channel grants.
youtarr_regenerate_api_key(key_id): WRITE: Regenerate an API key; the new raw key is shown once.
youtarr_revoke_api_key(key_id): DESTRUCTIVE: Revoke an API key while retaining its audit record.
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": {
"operation": "<operation>"
},
"name": "youtarr_api_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arguments | No | ||
| operation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |