|
| 1 | +{ |
| 2 | + "name": "apiKeys", |
| 3 | + "displayName": "API Keys", |
| 4 | + "description": "API keys in your Claude Console organization", |
| 5 | + "tags": ["API Keys"], |
| 6 | + "baseDataSourceName": "httpRequestUnscoped", |
| 7 | + "config": { |
| 8 | + "httpMethod": "get", |
| 9 | + "endpointPath": "v1/organizations/api_keys", |
| 10 | + "getArgs": [ |
| 11 | + { |
| 12 | + "key": "limit", |
| 13 | + "value": "1000" |
| 14 | + }, |
| 15 | + { |
| 16 | + "key": "created_by_user_id", |
| 17 | + "value": "{{ (createdBy && createdBy.length) ? (Array.isArray(createdBy[0].rawId) ? createdBy[0].rawId[0] : createdBy[0].rawId) : null }}" |
| 18 | + } |
| 19 | + ], |
| 20 | + "paging": { |
| 21 | + "mode": "none" |
| 22 | + }, |
| 23 | + "expandInnerObjects": true, |
| 24 | + "postRequestScript": "apiKeys.js" |
| 25 | + }, |
| 26 | + "matches": "none", |
| 27 | + "ui": [ |
| 28 | + { |
| 29 | + "type": "objects", |
| 30 | + "name": "workspace", |
| 31 | + "label": "Workspace (optional)", |
| 32 | + "matches": { |
| 33 | + "sourceType": { |
| 34 | + "type": "oneOf", |
| 35 | + "values": ["Workspace"] |
| 36 | + } |
| 37 | + } |
| 38 | + }, |
| 39 | + { |
| 40 | + "type": "objects", |
| 41 | + "name": "createdBy", |
| 42 | + "label": "Created by (optional)", |
| 43 | + "matches": { |
| 44 | + "sourceType": { "type": "oneOf", "values": ["Member"] } |
| 45 | + } |
| 46 | + } |
| 47 | + ], |
| 48 | + "metadata": [ |
| 49 | + { |
| 50 | + "name": "id", |
| 51 | + "displayName": "API Key ID", |
| 52 | + "shape": "string" |
| 53 | + }, |
| 54 | + { |
| 55 | + "name": "name", |
| 56 | + "displayName": "Name", |
| 57 | + "shape": "string", |
| 58 | + "role": "label" |
| 59 | + }, |
| 60 | + { |
| 61 | + "name": "status", |
| 62 | + "displayName": "Status", |
| 63 | + "shape": [ |
| 64 | + "state", |
| 65 | + { |
| 66 | + "map": { |
| 67 | + "success": ["active"], |
| 68 | + "unknown": ["expired", "archived", "inactive"] |
| 69 | + } |
| 70 | + } |
| 71 | + ] |
| 72 | + }, |
| 73 | + { |
| 74 | + "name": "workspace_id", |
| 75 | + "displayName": "Workspace ID", |
| 76 | + "shape": "string" |
| 77 | + }, |
| 78 | + { |
| 79 | + "name": "partial_key_hint", |
| 80 | + "displayName": "Key Hint", |
| 81 | + "shape": "string" |
| 82 | + }, |
| 83 | + { |
| 84 | + "name": "created_at", |
| 85 | + "displayName": "Created", |
| 86 | + "shape": "date" |
| 87 | + }, |
| 88 | + { |
| 89 | + "name": "expires_at", |
| 90 | + "displayName": "Expires", |
| 91 | + "shape": "date" |
| 92 | + }, |
| 93 | + { |
| 94 | + "name": "created_by.id", |
| 95 | + "displayName": "Created By", |
| 96 | + "shape": "string" |
| 97 | + } |
| 98 | + ], |
| 99 | + "timeframes": false |
| 100 | +} |
0 commit comments