{ "opencollection": "1.0.0", "info": { "name": "Portkey Analytics > Graphs Api-Keys API", "version": "2.0.0" }, "request": { "auth": { "type": "apikey", "key": "x-portkey-api-key", "value": "{{x-portkey-api-key}}", "placement": "header" } }, "items": [ { "info": { "name": "Api-Keys", "type": "folder" }, "items": [ { "info": { "name": "Create API Keys", "type": "http" }, "http": { "method": "POST", "url": "https://api.portkey.ai/v1/api-keys/:type/:sub-type", "params": [ { "name": "type", "value": "", "type": "path" }, { "name": "sub-type", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new API key.\n" }, { "info": { "name": "Get All", "type": "http" }, "http": { "method": "GET", "url": "https://api.portkey.ai/v1/api-keys", "params": [ { "name": "page_size", "value": "1", "type": "query" }, { "name": "current_page", "value": "0", "type": "query" }, { "name": "workspace_id", "value": "ws-shared-123", "type": "query" } ] }, "docs": "Get All" }, { "info": { "name": "Get API Keys", "type": "http" }, "http": { "method": "GET", "url": "https://api.portkey.ai/v1/api-keys/:id", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Get API Keys" }, { "info": { "name": "Update API Keys", "type": "http" }, "http": { "method": "PUT", "url": "https://api.portkey.ai/v1/api-keys/:id", "params": [ { "name": "id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates an existing API key. The API key type (user vs service) and associated user_id cannot be changed after creation.\n" }, { "info": { "name": "Remove an API Key", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.portkey.ai/v1/api-keys/:id", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Remove an API Key" }, { "info": { "name": "Rotate API Key", "type": "http" }, "http": { "method": "POST", "url": "https://api.portkey.ai/v1/api-keys/:id/rotate", "params": [ { "name": "id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Rotates an existing API key and returns a newly generated key value.\nThe previous key remains valid during the transition period and expires at `key_transition_expires_at`.\n" } ] } ], "bundled": true }