Gokapi Auth
gokapi_authManage Gokapi API keys: create new keys, delete or rename existing keys, and grant or revoke individual permissions to control access for shares, uploads, and admin tasks.
Instructions
gokapi auth operations on Gokapi. Pass operation and an arguments dict matching that operation's parameters.
gokapi_auth_create(friendly_name=None, basic_permissions=None) - Create a new API key (POST /api/auth/create). Returns the new key - store it immediately, it cannot be retrieved again.
gokapi_auth_delete(target_key) - Delete an API key (DELETE /api/auth/delete). target_key is the key's public ID or the key itself.
gokapi_auth_friendlyname(target_key, friendly_name) - Rename an API key (PUT /api/auth/friendlyname).
gokapi_auth_modify(target_key, permission, permission_modifier) - Grant/revoke one API-key permission (PUT /api/auth/modify). permission is one of PERM_VIEW, PERM_UPLOAD, PERM_DELETE, PERM_API_MOD, PERM_EDIT, PERM_REPLACE, PERM_MANAGE_USERS, PERM_MANAGE_LOGS, PERM_MANAGE_FILE_REQUESTS, PERM_DOWNLOAD; permission_modifier is GRANT or REVOKE.
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": "gokapi_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arguments | No | ||
| operation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |