{ "opencollection": "1.0.0", "info": { "name": "Portkey Analytics > Graphs Labels API", "version": "2.0.0" }, "request": { "auth": { "type": "apikey", "key": "x-portkey-api-key", "value": "{{x-portkey-api-key}}", "placement": "header" } }, "items": [ { "info": { "name": "Labels", "type": "folder" }, "items": [ { "info": { "name": "List labels", "type": "http" }, "http": { "method": "GET", "url": "https://api.portkey.ai/v1/labels", "params": [ { "name": "organisation_id", "value": "", "type": "query", "description": "ID of the organisation" }, { "name": "workspace_id", "value": "", "type": "query", "description": "ID or slug of the workspace" }, { "name": "search", "value": "", "type": "query", "description": "Search query to filter labels by name" }, { "name": "current_page", "value": "", "type": "query", "description": "Page number for pagination" }, { "name": "page_size", "value": "", "type": "query", "description": "Number of items per page" } ], "auth": { "type": "apikey", "key": "x-portkey-api-key", "value": "{{x-portkey-api-key}}", "placement": "header" } }, "docs": "Returns a list of labels based on filters" }, { "info": { "name": "Create a new label", "type": "http" }, "http": { "method": "POST", "url": "https://api.portkey.ai/v1/labels", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "x-portkey-api-key", "value": "{{x-portkey-api-key}}", "placement": "header" } }, "docs": "Creates a new label in the system" }, { "info": { "name": "Get a label by ID", "type": "http" }, "http": { "method": "GET", "url": "https://api.portkey.ai/v1/labels/:labelId", "params": [ { "name": "labelId", "value": "", "type": "path", "description": "ID of the label to retrieve" }, { "name": "organisation_id", "value": "", "type": "query", "description": "ID of the organisation" }, { "name": "workspace_id", "value": "", "type": "query", "description": "ID or slug of the workspace" } ], "auth": { "type": "apikey", "key": "x-portkey-api-key", "value": "{{x-portkey-api-key}}", "placement": "header" } }, "docs": "Returns a specific label by its ID" }, { "info": { "name": "Update a label", "type": "http" }, "http": { "method": "PUT", "url": "https://api.portkey.ai/v1/labels/:labelId", "params": [ { "name": "labelId", "value": "", "type": "path", "description": "ID of the label to update" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "x-portkey-api-key", "value": "{{x-portkey-api-key}}", "placement": "header" } }, "docs": "Updates an existing label" }, { "info": { "name": "Delete a label", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.portkey.ai/v1/labels/:labelId", "params": [ { "name": "labelId", "value": "", "type": "path", "description": "ID of the label to delete" } ], "auth": { "type": "apikey", "key": "x-portkey-api-key", "value": "{{x-portkey-api-key}}", "placement": "header" } }, "docs": "Deletes a label" } ] } ], "bundled": true }