{
  "opencollection": "1.0.0",
  "info": {
    "name": "Portkey API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "x-portkey-api-key",
      "value": "{{x-portkey-api-key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Chat",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Chat",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/chat/completions",
            "headers": [
              {
                "name": "x-portkey-trace-id",
                "value": ""
              },
              {
                "name": "x-portkey-span-id",
                "value": ""
              },
              {
                "name": "x-portkey-parent-span-id",
                "value": ""
              },
              {
                "name": "x-portkey-span-name",
                "value": ""
              },
              {
                "name": "x-portkey-metadata",
                "value": ""
              },
              {
                "name": "x-portkey-cache-namespace",
                "value": ""
              },
              {
                "name": "x-portkey-cache-force-refresh",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Chat"
        }
      ]
    },
    {
      "info": {
        "name": "Realtime",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Realtime",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/realtime",
            "headers": [
              {
                "name": "x-portkey-trace-id",
                "value": ""
              },
              {
                "name": "x-portkey-span-id",
                "value": ""
              },
              {
                "name": "x-portkey-parent-span-id",
                "value": ""
              },
              {
                "name": "x-portkey-span-name",
                "value": ""
              },
              {
                "name": "x-portkey-metadata",
                "value": ""
              },
              {
                "name": "x-portkey-cache-namespace",
                "value": ""
              },
              {
                "name": "x-portkey-cache-force-refresh",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "model",
                "value": "",
                "type": "query",
                "description": "Often required for OpenAI-style realtime; other query params pass through unchanged."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Connect to the Realtime API endpoint."
        }
      ]
    },
    {
      "info": {
        "name": "Completions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Completions",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/completions",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Completions"
        }
      ]
    },
    {
      "info": {
        "name": "Collections",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List collections",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/collections",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "query",
                "description": "ID or slug of the workspace"
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination (0-indexed)"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of items per page"
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Search query to filter collections by name"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Lists all collections in the specified workspace"
        },
        {
          "info": {
            "name": "Create a new collection",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/collections",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Creates a new collection in the specified workspace"
        },
        {
          "info": {
            "name": "Get collection details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/collections/:collectionId",
            "params": [
              {
                "name": "collectionId",
                "value": "",
                "type": "path",
                "description": "ID or slug of the collection"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves details of a specific collection"
        },
        {
          "info": {
            "name": "Update collection",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/collections/:collectionId",
            "params": [
              {
                "name": "collectionId",
                "value": "",
                "type": "path",
                "description": "ID or slug of the collection"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Updates a collection's details"
        },
        {
          "info": {
            "name": "Delete collection",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/collections/:collectionId",
            "params": [
              {
                "name": "collectionId",
                "value": "",
                "type": "path",
                "description": "ID or slug of the collection"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Deletes a collection"
        }
      ]
    },
    {
      "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"
        }
      ]
    },
    {
      "info": {
        "name": "Prompts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List prompts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/prompts",
            "params": [
              {
                "name": "collection_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "workspace_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query"
              },
              {
                "name": "search",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "List prompts"
        },
        {
          "info": {
            "name": "Create a new prompt",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/prompts",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create a new prompt"
        },
        {
          "info": {
            "name": "Get a prompt by ID or slug",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/prompts/:promptId",
            "params": [
              {
                "name": "promptId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Get a prompt by ID or slug"
        },
        {
          "info": {
            "name": "Update a prompt",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/prompts/:promptId",
            "params": [
              {
                "name": "promptId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Update a prompt's metadata and/or create a new version with updated template content.\n\n**Partial version updates:** Set `patch: true` to perform a partial update of version fields (`string`, `parameters`, `model`, `virtual_key`, `version_description`, `functions`, `tools`, `tool_choice`, `is_raw_template`, `prompt_metadata`). When enabled, any version fields omitted from the request are backfilled from the current latest version, allowing you to update only the fields you need. When `patch` is o"
        },
        {
          "info": {
            "name": "Delete a prompt",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/prompts/:promptId",
            "params": [
              {
                "name": "promptId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Delete a prompt"
        },
        {
          "info": {
            "name": "Get all versions of a prompt",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/prompts/:promptId/versions",
            "params": [
              {
                "name": "promptId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Get all versions of a prompt"
        },
        {
          "info": {
            "name": "Get a specific version of a prompt",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/prompts/:promptId/versions/:versionId",
            "params": [
              {
                "name": "promptId",
                "value": "",
                "type": "path"
              },
              {
                "name": "versionId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Get a specific version of a prompt"
        },
        {
          "info": {
            "name": "Update a specific version of a prompt",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/prompts/:promptId/versions/:versionId",
            "params": [
              {
                "name": "promptId",
                "value": "",
                "type": "path"
              },
              {
                "name": "versionId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Updates metadata for a specific prompt version. **This endpoint only supports updating the `label_id` field.**\n\nPrompt versions are immutable — their `string`, `parameters`, and `model` content cannot be changed after creation. To update prompt content, use `PUT /prompts/{promptId}` which creates a new version with the updated content.\n"
        },
        {
          "info": {
            "name": "Set a version as the default for a prompt",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/prompts/:promptId/makeDefault",
            "params": [
              {
                "name": "promptId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Set a version as the default for a prompt"
        },
        {
          "info": {
            "name": "Prompts Completions",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/prompts/:promptId/completions",
            "params": [
              {
                "name": "promptId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the prompt template to use"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Execute your saved prompt templates on Portkey\n"
        },
        {
          "info": {
            "name": "Prompts Render",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/prompts/:promptId/render",
            "params": [
              {
                "name": "promptId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the prompt template to render"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Renders a prompt template with its variable values filled in\n"
        }
      ]
    },
    {
      "info": {
        "name": "PromptPartials",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List prompt partials",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/prompts/partials",
            "params": [
              {
                "name": "collection_id",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "List prompt partials"
        },
        {
          "info": {
            "name": "Create a new prompt partial",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/prompts/partials",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create a new prompt partial"
        },
        {
          "info": {
            "name": "Get a prompt partial by ID or slug",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/prompts/partials/:promptPartialId",
            "params": [
              {
                "name": "promptPartialId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Get a prompt partial by ID or slug"
        },
        {
          "info": {
            "name": "Update a prompt partial",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/prompts/partials/:promptPartialId",
            "params": [
              {
                "name": "promptPartialId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Update a prompt partial"
        },
        {
          "info": {
            "name": "Delete a prompt partial",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/prompts/partials/:promptPartialId",
            "params": [
              {
                "name": "promptPartialId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Delete a prompt partial"
        },
        {
          "info": {
            "name": "Get all versions of a prompt partial",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/prompts/partials/:promptPartialId/versions",
            "params": [
              {
                "name": "promptPartialId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Get all versions of a prompt partial"
        },
        {
          "info": {
            "name": "Set a version as the default for a prompt partial",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/prompts/partials/:promptPartialId/makeDefault",
            "params": [
              {
                "name": "promptPartialId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Set a version as the default for a prompt partial"
        }
      ]
    },
    {
      "info": {
        "name": "Guardrails",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List guardrails",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/guardrails",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "query",
                "description": "Workspace UUID to filter guardrails"
              },
              {
                "name": "organisation_id",
                "value": "",
                "type": "query",
                "description": "Organisation UUID to filter guardrails"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of items per page"
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query",
                "description": "Current page number (0-indexed)"
              }
            ]
          },
          "docs": "Retrieves a paginated list of guardrails for the specified workspace or organisation"
        },
        {
          "info": {
            "name": "Create a new guardrail",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/guardrails",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new guardrail with specified checks and actions"
        },
        {
          "info": {
            "name": "Get a specific guardrail",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/guardrails/:guardrailId",
            "params": [
              {
                "name": "guardrailId",
                "value": "",
                "type": "path",
                "description": "Guardrail UUID or slug (with guard_ prefix)"
              }
            ]
          },
          "docs": "Retrieves details of a specific guardrail by ID or slug"
        },
        {
          "info": {
            "name": "Update a guardrail",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/guardrails/:guardrailId",
            "params": [
              {
                "name": "guardrailId",
                "value": "",
                "type": "path",
                "description": "Guardrail UUID or slug to update"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing guardrail's name, checks, or actions"
        },
        {
          "info": {
            "name": "Delete a guardrail",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/guardrails/:guardrailId",
            "params": [
              {
                "name": "guardrailId",
                "value": "",
                "type": "path",
                "description": "Guardrail UUID or slug to delete"
              }
            ]
          },
          "docs": "Deletes an existing guardrail"
        }
      ]
    },
    {
      "info": {
        "name": "Images",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create Image",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/images/generations",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create Image"
        },
        {
          "info": {
            "name": "Create Image Edit",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/images/edits",
            "body": {
              "type": "multipart-form",
              "data": []
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create Image Edit"
        },
        {
          "info": {
            "name": "Creates Image Variation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/images/variations",
            "body": {
              "type": "multipart-form",
              "data": []
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Creates Image Variation"
        }
      ]
    },
    {
      "info": {
        "name": "Embeddings",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Embeddings",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/embeddings",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Embeddings"
        }
      ]
    },
    {
      "info": {
        "name": "Rerank",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Rerank",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/rerank",
            "headers": [
              {
                "name": "x-portkey-trace-id",
                "value": ""
              },
              {
                "name": "x-portkey-span-id",
                "value": ""
              },
              {
                "name": "x-portkey-parent-span-id",
                "value": ""
              },
              {
                "name": "x-portkey-span-name",
                "value": ""
              },
              {
                "name": "x-portkey-metadata",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Reranks a list of documents based on their relevance to a query. This endpoint provides a unified interface to reranking models from multiple providers including Cohere, Voyage, Jina, Pinecone, Bedrock, and Azure AI.\n\nReranking is useful for improving search results by scoring and sorting documents based on semantic relevance to a query, rather than just keyword matching.\n"
        }
      ]
    },
    {
      "info": {
        "name": "Audio",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create Speech",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/audio/speech",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create Speech"
        },
        {
          "info": {
            "name": "Create Transcription",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/audio/transcriptions",
            "body": {
              "type": "multipart-form",
              "data": []
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create Transcription"
        },
        {
          "info": {
            "name": "Create Translation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/audio/translations",
            "body": {
              "type": "multipart-form",
              "data": []
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create Translation"
        }
      ]
    },
    {
      "info": {
        "name": "Files",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Files",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/files",
            "params": [
              {
                "name": "purpose",
                "value": "",
                "type": "query",
                "description": "Only return files with the given purpose."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "List Files"
        },
        {
          "info": {
            "name": "Upload a file to be used across various endpoints, such as Assistant (<2M tokens), Fine-Tuning, and Batch (<100 MB). Total size of your bucket is 100 GB.\n",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/files",
            "body": {
              "type": "multipart-form",
              "data": []
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Upload a file to be used across various endpoints, such as Assistant (<2M tokens), Fine-Tuning, and Batch (<100 MB). Total size of your bucket is 100 GB.\n"
        },
        {
          "info": {
            "name": "Returns information about a specific file.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/files/:file_id",
            "params": [
              {
                "name": "file_id",
                "value": "",
                "type": "path",
                "description": "The ID of the file to use for this request."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Returns information about a specific file."
        },
        {
          "info": {
            "name": "Delete File",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/files/:file_id",
            "params": [
              {
                "name": "file_id",
                "value": "",
                "type": "path",
                "description": "The ID of the file to use for this request."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Delete File"
        },
        {
          "info": {
            "name": "Returns the contents of the specified file.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/files/:file_id/content",
            "params": [
              {
                "name": "file_id",
                "value": "",
                "type": "path",
                "description": "The ID of the file to use for this request."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Returns the contents of the specified file."
        }
      ]
    },
    {
      "info": {
        "name": "Fine-tuning",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List your organization's fine-tuning jobs\n",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/fine_tuning/jobs",
            "params": [
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "Identifier for the last job from the previous pagination request."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of fine-tuning jobs to retrieve."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "List your organization's fine-tuning jobs\n"
        },
        {
          "info": {
            "name": "Get info about a fine-tuning job.\n\n[Learn more about fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)\n",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/fine_tuning/jobs/:fine_tuning_job_id",
            "params": [
              {
                "name": "fine_tuning_job_id",
                "value": "",
                "type": "path",
                "description": "The ID of the fine-tuning job.\n"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Get info about a fine-tuning job.\n\n[Learn more about fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)\n"
        },
        {
          "info": {
            "name": "Get status updates for a fine-tuning job.\n",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/fine_tuning/jobs/:fine_tuning_job_id/events",
            "params": [
              {
                "name": "fine_tuning_job_id",
                "value": "",
                "type": "path",
                "description": "The ID of the fine-tuning job to get events for.\n"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "Identifier for the last event from the previous pagination request."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of events to retrieve."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Get status updates for a fine-tuning job.\n"
        },
        {
          "info": {
            "name": "Immediately cancel a fine-tune job.\n",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/fine_tuning/jobs/:fine_tuning_job_id/cancel",
            "params": [
              {
                "name": "fine_tuning_job_id",
                "value": "",
                "type": "path",
                "description": "The ID of the fine-tuning job to cancel.\n"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Immediately cancel a fine-tune job.\n"
        },
        {
          "info": {
            "name": "List checkpoints for a fine-tuning job.\n",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/fine_tuning/jobs/:fine_tuning_job_id/checkpoints",
            "params": [
              {
                "name": "fine_tuning_job_id",
                "value": "",
                "type": "path",
                "description": "The ID of the fine-tuning job to get checkpoints for.\n"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "Identifier for the last checkpoint ID from the previous pagination request."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of checkpoints to retrieve."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "List checkpoints for a fine-tuning job.\n"
        }
      ]
    },
    {
      "info": {
        "name": "Finetune",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a Finetune Job",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/fine_tuning/jobs",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Finetune a provider model"
        }
      ]
    },
    {
      "info": {
        "name": "Models",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Available Models",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/models",
            "params": [
              {
                "name": "ai_service",
                "value": "",
                "type": "query",
                "description": "Filter models by the AI service (e.g., 'openai', 'anthropic')."
              },
              {
                "name": "provider",
                "value": "",
                "type": "query",
                "description": "Filter models by the provider."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of models to return."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "The number of models to skip before starting to collect the result set."
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "The field to sort the results by."
              },
              {
                "name": "order",
                "value": "",
                "type": "query",
                "description": "The order to sort the results in."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Lists the currently available models that can be used through Portkey, and provides basic information about each one."
        },
        {
          "info": {
            "name": "Retrieves a model instance, providing basic information about the model such as the owner and permissioning.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/models/:model",
            "params": [
              {
                "name": "model",
                "value": "",
                "type": "path",
                "description": "The ID of the model to use for this request"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves a model instance, providing basic information about the model such as the owner and permissioning."
        },
        {
          "info": {
            "name": "Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/models/:model",
            "params": [
              {
                "name": "model",
                "value": "",
                "type": "path",
                "description": "The model to delete"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Delete a fine-tuned model. You must have the Owner role in your organization to delete a model."
        }
      ]
    },
    {
      "info": {
        "name": "Moderations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Identify potentially harmful content in text and images. **Only** works with [OpenAI's Moderations endpoint](https://platform.openai.com/docs/guides/moderation) currently.\n",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/moderations",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Identify potentially harmful content in text and images. **Only** works with [OpenAI's Moderations endpoint](https://platform.openai.com/docs/guides/moderation) currently.\n"
        }
      ]
    },
    {
      "info": {
        "name": "Assistants",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Returns a list of assistants.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/assistants",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n"
              },
              {
                "name": "order",
                "value": "",
                "type": "query",
                "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n"
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Returns a list of assistants."
        },
        {
          "info": {
            "name": "Create an assistant with a model and instructions.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/assistants",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create an assistant with a model and instructions."
        },
        {
          "info": {
            "name": "Retrieves an assistant.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/assistants/:assistant_id",
            "params": [
              {
                "name": "assistant_id",
                "value": "",
                "type": "path",
                "description": "The ID of the assistant to retrieve."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves an assistant."
        },
        {
          "info": {
            "name": "Modifies an assistant.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/assistants/:assistant_id",
            "params": [
              {
                "name": "assistant_id",
                "value": "",
                "type": "path",
                "description": "The ID of the assistant to modify."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Modifies an assistant."
        },
        {
          "info": {
            "name": "Delete an assistant.",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/assistants/:assistant_id",
            "params": [
              {
                "name": "assistant_id",
                "value": "",
                "type": "path",
                "description": "The ID of the assistant to delete."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Delete an assistant."
        },
        {
          "info": {
            "name": "Create a thread.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/threads",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create a thread."
        },
        {
          "info": {
            "name": "Retrieves a thread.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/threads/:thread_id",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the thread to retrieve."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves a thread."
        },
        {
          "info": {
            "name": "Modifies a thread.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/threads/:thread_id",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the thread to modify. Only the `metadata` can be modified."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Modifies a thread."
        },
        {
          "info": {
            "name": "Delete a thread.",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/threads/:thread_id",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the thread to delete."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Delete a thread."
        },
        {
          "info": {
            "name": "Returns a list of messages for a given thread.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/threads/:thread_id/messages",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) the messages belong to."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n"
              },
              {
                "name": "order",
                "value": "",
                "type": "query",
                "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n"
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n"
              },
              {
                "name": "run_id",
                "value": "",
                "type": "query",
                "description": "Filter messages by the run ID that generated them.\n"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Returns a list of messages for a given thread."
        },
        {
          "info": {
            "name": "Create a message.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/threads/:thread_id/messages",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) to create a message for."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create a message."
        },
        {
          "info": {
            "name": "Retrieve a message.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/threads/:thread_id/messages/:message_id",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) to which this message belongs."
              },
              {
                "name": "message_id",
                "value": "",
                "type": "path",
                "description": "The ID of the message to retrieve."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Retrieve a message."
        },
        {
          "info": {
            "name": "Modifies a message.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/threads/:thread_id/messages/:message_id",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the thread to which this message belongs."
              },
              {
                "name": "message_id",
                "value": "",
                "type": "path",
                "description": "The ID of the message to modify."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Modifies a message."
        },
        {
          "info": {
            "name": "Deletes a message.",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/threads/:thread_id/messages/:message_id",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the thread to which this message belongs."
              },
              {
                "name": "message_id",
                "value": "",
                "type": "path",
                "description": "The ID of the message to delete."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Deletes a message."
        },
        {
          "info": {
            "name": "Create a thread and run it in one request.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/threads/runs",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create a thread and run it in one request."
        },
        {
          "info": {
            "name": "Returns a list of runs belonging to a thread.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/threads/:thread_id/runs",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the thread the run belongs to."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n"
              },
              {
                "name": "order",
                "value": "",
                "type": "query",
                "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n"
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Returns a list of runs belonging to a thread."
        },
        {
          "info": {
            "name": "Create a run.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/threads/:thread_id/runs",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the thread to run."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create a run."
        },
        {
          "info": {
            "name": "Retrieves a run.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/threads/:thread_id/runs/:run_id",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was run."
              },
              {
                "name": "run_id",
                "value": "",
                "type": "path",
                "description": "The ID of the run to retrieve."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves a run."
        },
        {
          "info": {
            "name": "Modifies a run.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/threads/:thread_id/runs/:run_id",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was run."
              },
              {
                "name": "run_id",
                "value": "",
                "type": "path",
                "description": "The ID of the run to modify."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Modifies a run."
        },
        {
          "info": {
            "name": "When a run has the `status: \"requires_action\"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request.\n",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/threads/:thread_id/runs/:run_id/submit_tool_outputs",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) to which this run belongs."
              },
              {
                "name": "run_id",
                "value": "",
                "type": "path",
                "description": "The ID of the run that requires the tool output submission."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "When a run has the `status: \"requires_action\"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request.\n"
        },
        {
          "info": {
            "name": "Cancels a run that is `in_progress`.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/threads/:thread_id/runs/:run_id/cancel",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the thread to which this run belongs."
              },
              {
                "name": "run_id",
                "value": "",
                "type": "path",
                "description": "The ID of the run to cancel."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Cancels a run that is `in_progress`."
        },
        {
          "info": {
            "name": "Returns a list of run steps belonging to a run.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/threads/:thread_id/runs/:run_id/steps",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the thread the run and run steps belong to."
              },
              {
                "name": "run_id",
                "value": "",
                "type": "path",
                "description": "The ID of the run the run steps belong to."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n"
              },
              {
                "name": "order",
                "value": "",
                "type": "query",
                "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n"
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Returns a list of run steps belonging to a run."
        },
        {
          "info": {
            "name": "Retrieves a run step.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/threads/:thread_id/runs/:run_id/steps/:step_id",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path",
                "description": "The ID of the thread to which the run and run step belongs."
              },
              {
                "name": "run_id",
                "value": "",
                "type": "path",
                "description": "The ID of the run to which the run step belongs."
              },
              {
                "name": "step_id",
                "value": "",
                "type": "path",
                "description": "The ID of the run step to retrieve."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves a run step."
        }
      ]
    },
    {
      "info": {
        "name": "Responses",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Creates a model response\n",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/responses",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a model response\n"
        },
        {
          "info": {
            "name": "Retrieves a model response with the given ID.\n",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/responses/:response_id",
            "params": [
              {
                "name": "response_id",
                "value": "",
                "type": "path",
                "description": "The ID of the response to retrieve."
              },
              {
                "name": "include",
                "value": "",
                "type": "query",
                "description": "Specify additional output data to include in the response. Currently\nsupported values are:\n- `file_search_call.results`: Include the search results of\n  the file search tool call.\n- `message.input_image.image_url`: Include image urls from the input message.\n- `computer_call_output.output.image_url`: Include image urls from the computer call output.\n"
              }
            ]
          },
          "docs": "Retrieves a model response with the given ID.\n"
        },
        {
          "info": {
            "name": "Deletes a model response with the given ID.\n",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/responses/:response_id",
            "params": [
              {
                "name": "response_id",
                "value": "",
                "type": "path",
                "description": "The ID of the response to delete."
              }
            ]
          },
          "docs": "Deletes a model response with the given ID.\n"
        },
        {
          "info": {
            "name": "Returns a list of input items for a given response.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/responses/:response_id/input_items",
            "params": [
              {
                "name": "response_id",
                "value": "",
                "type": "path",
                "description": "The ID of the response to retrieve input items for."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "A limit on the number of objects to be returned. Limit can range between\n1 and 100, and the default is 20.\n"
              },
              {
                "name": "order",
                "value": "",
                "type": "query",
                "description": "The order to return the input items in. Default is `asc`.\n- `asc`: Return the input items in ascending order.\n- `desc`: Return the input items in descending order.\n"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "An item ID to list items after, used in pagination.\n"
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "An item ID to list items before, used in pagination.\n"
              }
            ]
          },
          "docs": "Returns a list of input items for a given response."
        }
      ]
    },
    {
      "info": {
        "name": "Vector Stores",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Returns a list of vector stores.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/vector_stores",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n"
              },
              {
                "name": "order",
                "value": "",
                "type": "query",
                "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n"
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Returns a list of vector stores."
        },
        {
          "info": {
            "name": "Create a vector store.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/vector_stores",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create a vector store."
        },
        {
          "info": {
            "name": "Retrieves a vector store.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/vector_stores/:vector_store_id",
            "params": [
              {
                "name": "vector_store_id",
                "value": "",
                "type": "path",
                "description": "The ID of the vector store to retrieve."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves a vector store."
        },
        {
          "info": {
            "name": "Modifies a vector store.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/vector_stores/:vector_store_id",
            "params": [
              {
                "name": "vector_store_id",
                "value": "",
                "type": "path",
                "description": "The ID of the vector store to modify."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Modifies a vector store."
        },
        {
          "info": {
            "name": "Delete a vector store.",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/vector_stores/:vector_store_id",
            "params": [
              {
                "name": "vector_store_id",
                "value": "",
                "type": "path",
                "description": "The ID of the vector store to delete."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Delete a vector store."
        },
        {
          "info": {
            "name": "Returns a list of vector store files.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/vector_stores/:vector_store_id/files",
            "params": [
              {
                "name": "vector_store_id",
                "value": "",
                "type": "path",
                "description": "The ID of the vector store that the files belong to."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n"
              },
              {
                "name": "order",
                "value": "",
                "type": "query",
                "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n"
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n"
              },
              {
                "name": "filter",
                "value": "",
                "type": "query",
                "description": "Filter by file status. One of `in_progress`, `completed`, `failed`, `cancelled`."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Returns a list of vector store files."
        },
        {
          "info": {
            "name": "Create a vector store file by attaching a [File](https://platform.openai.com/docs/api-reference/files) to a [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object).",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/vector_stores/:vector_store_id/files",
            "params": [
              {
                "name": "vector_store_id",
                "value": "",
                "type": "path",
                "description": "The ID of the vector store for which to create a File.\n"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create a vector store file by attaching a [File](https://platform.openai.com/docs/api-reference/files) to a [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)."
        },
        {
          "info": {
            "name": "Retrieves a vector store file.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/vector_stores/:vector_store_id/files/:file_id",
            "params": [
              {
                "name": "vector_store_id",
                "value": "",
                "type": "path",
                "description": "The ID of the vector store that the file belongs to."
              },
              {
                "name": "file_id",
                "value": "",
                "type": "path",
                "description": "The ID of the file being retrieved."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves a vector store file."
        },
        {
          "info": {
            "name": "Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](https://platform.openai.com/docs/api-reference/files/delete) endpoint.",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/vector_stores/:vector_store_id/files/:file_id",
            "params": [
              {
                "name": "vector_store_id",
                "value": "",
                "type": "path",
                "description": "The ID of the vector store that the file belongs to."
              },
              {
                "name": "file_id",
                "value": "",
                "type": "path",
                "description": "The ID of the file to delete."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](https://platform.openai.com/docs/api-reference/files/delete) endpoint."
        },
        {
          "info": {
            "name": "Create a vector store file batch.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/vector_stores/:vector_store_id/file_batches",
            "params": [
              {
                "name": "vector_store_id",
                "value": "",
                "type": "path",
                "description": "The ID of the vector store for which to create a File Batch.\n"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create a vector store file batch."
        },
        {
          "info": {
            "name": "Retrieves a vector store file batch.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/vector_stores/:vector_store_id/file_batches/:batch_id",
            "params": [
              {
                "name": "vector_store_id",
                "value": "",
                "type": "path",
                "description": "The ID of the vector store that the file batch belongs to."
              },
              {
                "name": "batch_id",
                "value": "",
                "type": "path",
                "description": "The ID of the file batch being retrieved."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves a vector store file batch."
        },
        {
          "info": {
            "name": "Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/vector_stores/:vector_store_id/file_batches/:batch_id/cancel",
            "params": [
              {
                "name": "vector_store_id",
                "value": "",
                "type": "path",
                "description": "The ID of the vector store that the file batch belongs to."
              },
              {
                "name": "batch_id",
                "value": "",
                "type": "path",
                "description": "The ID of the file batch to cancel."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible."
        },
        {
          "info": {
            "name": "Returns a list of vector store files in a batch.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/vector_stores/:vector_store_id/file_batches/:batch_id/files",
            "params": [
              {
                "name": "vector_store_id",
                "value": "",
                "type": "path",
                "description": "The ID of the vector store that the files belong to."
              },
              {
                "name": "batch_id",
                "value": "",
                "type": "path",
                "description": "The ID of the file batch that the files belong to."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n"
              },
              {
                "name": "order",
                "value": "",
                "type": "query",
                "description": "Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and `desc` for descending order.\n"
              },
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n"
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n"
              },
              {
                "name": "filter",
                "value": "",
                "type": "query",
                "description": "Filter by file status. One of `in_progress`, `completed`, `failed`, `cancelled`."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Returns a list of vector store files in a batch."
        }
      ]
    },
    {
      "info": {
        "name": "Batch",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List your organization's batches.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/batches",
            "params": [
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.\n"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.\n"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "List your organization's batches."
        },
        {
          "info": {
            "name": "Creates and executes a batch from an uploaded file of requests",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/batches",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Creates and executes a batch from an uploaded file of requests"
        },
        {
          "info": {
            "name": "Returns batch output as stream.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/batches/:batch_id/output",
            "params": [
              {
                "name": "batch_id",
                "value": "",
                "type": "path",
                "description": "The ID of the batch to retrieve output for."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Returns batch output as stream."
        },
        {
          "info": {
            "name": "Retrieves a batch.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/batches/:batch_id",
            "params": [
              {
                "name": "batch_id",
                "value": "",
                "type": "path",
                "description": "The ID of the batch to retrieve."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves a batch."
        },
        {
          "info": {
            "name": "Cancels an in-progress batch. The batch will be in status `cancelling` for up to 10 minutes, before changing to `cancelled`, where it will have partial results (if any) available in the output file.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/batches/:batch_id/cancel",
            "params": [
              {
                "name": "batch_id",
                "value": "",
                "type": "path",
                "description": "The ID of the batch to cancel."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Cancels an in-progress batch. The batch will be in status `cancelling` for up to 10 minutes, before changing to `cancelled`, where it will have partial results (if any) available in the output file."
        }
      ]
    },
    {
      "info": {
        "name": "Configs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all configs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/configs"
          },
          "docs": "List all configs"
        },
        {
          "info": {
            "name": "Create a config",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/configs",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a config"
        },
        {
          "info": {
            "name": "Get a config",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/configs/:slug",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a config"
        },
        {
          "info": {
            "name": "Update a config",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/configs/:slug",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a config"
        },
        {
          "info": {
            "name": "Delete a config",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/configs/:slug",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a config"
        },
        {
          "info": {
            "name": "List versions for a config",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/configs/:slug/versions",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List versions for a config"
        }
      ]
    },
    {
      "info": {
        "name": "Feedback",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create new feedback",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/feedback",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint allows users to submit feedback for a particular interaction or response."
        },
        {
          "info": {
            "name": "Updates existing feedback",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/feedback/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Feedback ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint allows users to update existing feedback."
        }
      ]
    },
    {
      "info": {
        "name": "Integrations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List All Integrations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/integrations",
            "params": [
              {
                "name": "current_page",
                "value": "",
                "type": "query",
                "description": "Current page, defaults to 0"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Page size, default to 100"
              },
              {
                "name": "workspace_id",
                "value": "",
                "type": "query",
                "description": "Filter integrations accessible by a specific workspace. When using workspace API keys, this value will be enforced based on the API key details"
              },
              {
                "name": "type",
                "value": "",
                "type": "query",
                "description": "For type=workspace, the API will only return Workpace-Scoped integrations. For type=organisation, the API will only return Global (organisation level) integrations. For type=all, both types of integrations will be returned."
              }
            ]
          },
          "docs": "List All Integrations"
        },
        {
          "info": {
            "name": "Create a Integration",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/integrations",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a Integration"
        },
        {
          "info": {
            "name": "Get a Integration",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/integrations/:slug",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a Integration"
        },
        {
          "info": {
            "name": "Update a Integration",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/integrations/:slug",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a Integration"
        },
        {
          "info": {
            "name": "Delete a Integration",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/integrations/:slug",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a Integration"
        }
      ]
    },
    {
      "info": {
        "name": "Integrations > Models",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List integration models",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/integrations/:slug/models",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieves all model access for a specific integration with their configuration and pricing details."
        },
        {
          "info": {
            "name": "Bulk update integration models",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/integrations/:slug/models",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates model access, pricing configuration, and settings for multiple models in an integration.\nCan enable/disable models and configure custom pricing.\n"
        },
        {
          "info": {
            "name": "Bulk delete integration custom models",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/integrations/:slug/models",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "slugs",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of model slugs to delete"
              }
            ]
          },
          "docs": "Removes multiple custom models from an integration by their slugs."
        }
      ]
    },
    {
      "info": {
        "name": "Integrations > Workspaces",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List integration workspace access",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/integrations/:slug/workspaces",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieves workspace access configuration for an integration, including usage limits and rate limits."
        },
        {
          "info": {
            "name": "Bulk update workspace access",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/integrations/:slug/workspaces",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates workspace access permissions, usage limits, and rate limits for an integration.\nCan configure global workspace access or per-workspace settings.\n"
        }
      ]
    },
    {
      "info": {
        "name": "Providers",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List All Providers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/providers",
            "params": [
              {
                "name": "current_page",
                "value": "",
                "type": "query",
                "description": "Current page, defaults to 0"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Page size, default to 50"
              },
              {
                "name": "workspace_id",
                "value": "",
                "type": "query",
                "description": "Not required when using workspace API keys. Required when using organisation admin keys"
              }
            ]
          },
          "docs": "List All Providers"
        },
        {
          "info": {
            "name": "Create a Provider",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/providers",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a Provider"
        },
        {
          "info": {
            "name": "Get a Provider",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/providers/:slug",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "query",
                "description": "optional, needed when using organisation admin keys"
              },
              {
                "name": "slug",
                "value": "",
                "type": "path",
                "description": "Provider slug"
              }
            ]
          },
          "docs": "Get a Provider"
        },
        {
          "info": {
            "name": "Update a Provider",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/providers/:slug",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "query",
                "description": "optional, needed when using organisation admin keys"
              },
              {
                "name": "slug",
                "value": "",
                "type": "path",
                "description": "Provider slug"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a Provider"
        },
        {
          "info": {
            "name": "Delete a Provider",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/providers/:slug",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "query",
                "description": "optional, needed when using organisation admin keys"
              },
              {
                "name": "slug",
                "value": "",
                "type": "path",
                "description": "Provider slug"
              }
            ]
          },
          "docs": "Delete a Provider"
        }
      ]
    },
    {
      "info": {
        "name": "Virtual-keys",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List All Virtual Keys",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/virtual-keys",
            "params": [
              {
                "name": "current_page",
                "value": "",
                "type": "query",
                "description": "Current page, defaults to 0"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Page size, default to 50"
              }
            ]
          },
          "docs": "List All Virtual Keys"
        },
        {
          "info": {
            "name": "Create a Virtual Key",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/virtual-keys",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a Virtual Key"
        },
        {
          "info": {
            "name": "Get a Virtual Key",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/virtual-keys/:slug",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a Virtual Key"
        },
        {
          "info": {
            "name": "Update a Virtual Key",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/virtual-keys/:slug",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a Virtual Key"
        },
        {
          "info": {
            "name": "Delete a Virtual Key",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/virtual-keys/:slug",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a Virtual Key"
        }
      ]
    },
    {
      "info": {
        "name": "User-invites",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get All Invites",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/admin/users/invites",
            "params": [
              {
                "name": "pageSize",
                "value": "1",
                "type": "query"
              },
              {
                "name": "currentPage",
                "value": "0",
                "type": "query"
              },
              {
                "name": "role",
                "value": "admin",
                "type": "query"
              },
              {
                "name": "email",
                "value": "foo@bar.com",
                "type": "query"
              },
              {
                "name": "status",
                "value": "pending",
                "type": "query"
              }
            ]
          },
          "docs": "Get All Invites"
        },
        {
          "info": {
            "name": "Invite User",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/admin/users/invites",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send an invite to user for your organization"
        },
        {
          "info": {
            "name": "Get Invite",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/admin/users/invites/:inviteId",
            "params": [
              {
                "name": "inviteId",
                "value": "",
                "type": "path",
                "description": "string"
              }
            ]
          },
          "docs": "Get Invite"
        },
        {
          "info": {
            "name": "Delete Invite By ID",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/admin/users/invites/:inviteId",
            "params": [
              {
                "name": "inviteId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete Invite By ID"
        },
        {
          "info": {
            "name": "Resend Invite",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/admin/users/invites/:inviteId/resend",
            "params": [
              {
                "name": "inviteId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Resend an invite to user for your organization"
        }
      ]
    },
    {
      "info": {
        "name": "Users",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get users",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/admin/users",
            "headers": [
              {
                "name": "x-portkey-api-key",
                "value": "{{PORTKEY_API_KEY}}"
              }
            ],
            "params": [
              {
                "name": "pageSize",
                "value": "1",
                "type": "query"
              },
              {
                "name": "currentPage",
                "value": "0",
                "type": "query"
              },
              {
                "name": "role",
                "value": "admin",
                "type": "query"
              },
              {
                "name": "email",
                "value": "foo@bar.com",
                "type": "query"
              }
            ]
          },
          "docs": "Get users"
        },
        {
          "info": {
            "name": "Get user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/admin/users/:userId",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get user"
        },
        {
          "info": {
            "name": "Update user",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/admin/users/:userId",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update user"
        },
        {
          "info": {
            "name": "Remove a user",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/admin/users/:userId",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Remove a user"
        }
      ]
    },
    {
      "info": {
        "name": "Workspaces > Members",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get workspace members",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/admin/workspaces/:workspaceId/users",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path"
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query"
              },
              {
                "name": "role",
                "value": "admin",
                "type": "query"
              },
              {
                "name": "email",
                "value": "foo@bar.com",
                "type": "query"
              }
            ]
          },
          "docs": "Get workspace members"
        },
        {
          "info": {
            "name": "Add workspace member",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/admin/workspaces/:workspaceId/users",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add workspace member"
        },
        {
          "info": {
            "name": "Get member",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/admin/workspaces/:workspaceId/users/:userId",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path"
              },
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get member"
        },
        {
          "info": {
            "name": "Update workspace member",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/admin/workspaces/:workspaceId/users/:userId",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path"
              },
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update workspace member"
        },
        {
          "info": {
            "name": "Remove workspace member",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/admin/workspaces/:workspaceId/users/:userId",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path"
              },
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Remove workspace member"
        }
      ]
    },
    {
      "info": {
        "name": "Workspaces",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get All Workspaces",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/admin/workspaces",
            "params": [
              {
                "name": "page_size",
                "value": "1",
                "type": "query"
              },
              {
                "name": "current_page",
                "value": "0",
                "type": "query"
              },
              {
                "name": "name",
                "value": "workspace",
                "type": "query",
                "description": "Workspace name to filter results, case sensitive"
              },
              {
                "name": "exact_name",
                "value": "",
                "type": "query",
                "description": "Workspace name filter with strict check"
              },
              {
                "name": "status",
                "value": "active,archived",
                "type": "query",
                "description": "Workspace status to filter results, comma separated"
              }
            ]
          },
          "docs": "Get All Workspaces"
        },
        {
          "info": {
            "name": "Create Workspace",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/admin/workspaces",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Workspace"
        },
        {
          "info": {
            "name": "Get workspace",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/admin/workspaces/:workspaceId",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get workspace"
        },
        {
          "info": {
            "name": "Update Workspace",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/admin/workspaces/:workspaceId",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update Workspace"
        },
        {
          "info": {
            "name": "Delete a workspace",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/admin/workspaces/:workspaceId",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a workspace"
        },
        {
          "info": {
            "name": "List SCIM Group to Workspace Mappings",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/scim/workspaces",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "query",
                "description": "Filter mappings by workspace ID or slug."
              },
              {
                "name": "scim_group_id",
                "value": "",
                "type": "query",
                "description": "Filter mappings by SCIM group ID."
              },
              {
                "name": "role",
                "value": "",
                "type": "query",
                "description": "Filter mappings by role."
              }
            ]
          },
          "docs": "List all mappings between SCIM groups and workspaces for the organisation.\nOptionally filter by workspace, SCIM group, or role.\n"
        },
        {
          "info": {
            "name": "Create SCIM Group to Workspace Mapping",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/scim/workspaces",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a mapping between a SCIM group and a workspace. \nYou can either reference an existing SCIM group by ID, or provide a group name \nto pre-create the SCIM group before the IdP provisions it.\n"
        },
        {
          "info": {
            "name": "Delete SCIM Group to Workspace Mapping",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/scim/workspaces/:scimWorkspaceGroupId",
            "params": [
              {
                "name": "scimWorkspaceGroupId",
                "value": "",
                "type": "path",
                "description": "ID of the SCIM workspace mapping to delete"
              }
            ]
          },
          "docs": "Remove a SCIM group to workspace mapping. This archives the mapping but does not delete the SCIM group or workspace."
        }
      ]
    },
    {
      "info": {
        "name": "MCP Integrations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List MCP Integrations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/mcp-integrations",
            "params": [
              {
                "name": "organisation_id",
                "value": "",
                "type": "query",
                "description": "Organisation ID (required when using org admin API key)"
              },
              {
                "name": "type",
                "value": "",
                "type": "query"
              },
              {
                "name": "workspace_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query"
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query"
              },
              {
                "name": "search",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List MCP Integrations for the organisation or workspace. Requires organisation_id (when using org admin API key) or x-portkey-api-key header."
        },
        {
          "info": {
            "name": "Create MCP Integration",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/mcp-integrations",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new MCP Integration. Requires either organisation_id (with admin API key) or workspace_id in body."
        },
        {
          "info": {
            "name": "Get MCP Integration",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/mcp-integrations/:mcpIntegrationId",
            "params": [
              {
                "name": "mcpIntegrationId",
                "value": "",
                "type": "path",
                "description": "MCP Integration ID (UUID) or slug"
              }
            ]
          },
          "docs": "Get MCP Integration"
        },
        {
          "info": {
            "name": "Update MCP Integration",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/mcp-integrations/:mcpIntegrationId",
            "params": [
              {
                "name": "mcpIntegrationId",
                "value": "",
                "type": "path",
                "description": "MCP Integration ID (UUID) or slug"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update MCP Integration"
        },
        {
          "info": {
            "name": "Delete MCP Integration",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/mcp-integrations/:mcpIntegrationId",
            "params": [
              {
                "name": "mcpIntegrationId",
                "value": "",
                "type": "path",
                "description": "MCP Integration ID (UUID) or slug"
              }
            ]
          },
          "docs": "Delete MCP Integration"
        }
      ]
    },
    {
      "info": {
        "name": "MCP Integrations > Workspaces",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List MCP Integration Workspaces",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/mcp-integrations/:mcpIntegrationId/workspaces",
            "params": [
              {
                "name": "mcpIntegrationId",
                "value": "",
                "type": "path",
                "description": "MCP Integration ID (UUID) or slug"
              },
              {
                "name": "version",
                "value": "",
                "type": "query",
                "description": "When set, response uses data/total shape instead of workspaces"
              }
            ]
          },
          "docs": "List MCP Integration Workspaces"
        },
        {
          "info": {
            "name": "Bulk Update MCP Integration Workspaces",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/mcp-integrations/:mcpIntegrationId/workspaces",
            "params": [
              {
                "name": "mcpIntegrationId",
                "value": "",
                "type": "path",
                "description": "MCP Integration ID (UUID) or slug"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Bulk Update MCP Integration Workspaces"
        }
      ]
    },
    {
      "info": {
        "name": "MCP Integrations > Capabilities",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List MCP Integration Capabilities",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/mcp-integrations/:mcpIntegrationId/capabilities",
            "params": [
              {
                "name": "mcpIntegrationId",
                "value": "",
                "type": "path",
                "description": "MCP Integration ID (UUID) or slug"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query"
              },
              {
                "name": "type",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List MCP Integration Capabilities"
        },
        {
          "info": {
            "name": "Bulk Update MCP Integration Capabilities",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/mcp-integrations/:mcpIntegrationId/capabilities",
            "params": [
              {
                "name": "mcpIntegrationId",
                "value": "",
                "type": "path",
                "description": "MCP Integration ID (UUID) or slug"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Bulk Update MCP Integration Capabilities"
        }
      ]
    },
    {
      "info": {
        "name": "MCP Integrations > Metadata",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get MCP Integration Metadata",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/mcp-integrations/:mcpIntegrationId/metadata",
            "params": [
              {
                "name": "mcpIntegrationId",
                "value": "",
                "type": "path",
                "description": "MCP Integration ID (UUID) or slug"
              }
            ]
          },
          "docs": "Get MCP Integration Metadata"
        }
      ]
    },
    {
      "info": {
        "name": "MCP Servers",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List MCP Servers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/mcp-servers",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "query",
                "description": "Workspace ID or slug. Required when using org admin API key; optional when API key is workspace-scoped."
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query"
              },
              {
                "name": "id",
                "value": "",
                "type": "query",
                "description": "Filter by MCP Server ID(s), comma-separated"
              },
              {
                "name": "search",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List MCP Servers for the workspace. Requires workspace_id or x-portkey-api-key header."
        },
        {
          "info": {
            "name": "Create MCP Server",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/mcp-servers",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new MCP Server (workspace instance of an MCP Integration). Requires workspace_id or x-portkey-api-key header."
        },
        {
          "info": {
            "name": "Get MCP Server",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/mcp-servers/:mcpServerId",
            "params": [
              {
                "name": "mcpServerId",
                "value": "",
                "type": "path",
                "description": "MCP Server ID (UUID) or slug"
              }
            ]
          },
          "docs": "Get MCP Server"
        },
        {
          "info": {
            "name": "Update MCP Server",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/mcp-servers/:mcpServerId",
            "params": [
              {
                "name": "mcpServerId",
                "value": "",
                "type": "path",
                "description": "MCP Server ID (UUID) or slug"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update MCP Server"
        },
        {
          "info": {
            "name": "Delete MCP Server",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/mcp-servers/:mcpServerId",
            "params": [
              {
                "name": "mcpServerId",
                "value": "",
                "type": "path",
                "description": "MCP Server ID (UUID) or slug"
              }
            ]
          },
          "docs": "Delete MCP Server"
        },
        {
          "info": {
            "name": "Test MCP Server Connection",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/mcp-servers/:mcpServerId/test",
            "params": [
              {
                "name": "mcpServerId",
                "value": "",
                "type": "path",
                "description": "MCP Server ID (UUID) or slug"
              }
            ]
          },
          "docs": "Test connectivity to the MCP server via its integration URL."
        }
      ]
    },
    {
      "info": {
        "name": "MCP Servers > Capabilities",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List MCP Server Capabilities",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/mcp-servers/:mcpServerId/capabilities",
            "params": [
              {
                "name": "mcpServerId",
                "value": "",
                "type": "path",
                "description": "MCP Server ID (UUID) or slug"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query"
              },
              {
                "name": "type",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List MCP Server Capabilities"
        },
        {
          "info": {
            "name": "Bulk Update MCP Server Capabilities",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/mcp-servers/:mcpServerId/capabilities",
            "params": [
              {
                "name": "mcpServerId",
                "value": "",
                "type": "path",
                "description": "MCP Server ID (UUID) or slug"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Bulk Update MCP Server Capabilities"
        }
      ]
    },
    {
      "info": {
        "name": "MCP Servers > User Access",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List MCP Server User Access",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/mcp-servers/:mcpServerId/user-access",
            "params": [
              {
                "name": "mcpServerId",
                "value": "",
                "type": "path",
                "description": "MCP Server ID (UUID) or slug"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query"
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Search by user name or email"
              }
            ]
          },
          "docs": "List MCP Server User Access"
        },
        {
          "info": {
            "name": "Bulk Update MCP Server User Access",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/mcp-servers/:mcpServerId/user-access",
            "params": [
              {
                "name": "mcpServerId",
                "value": "",
                "type": "path",
                "description": "MCP Server ID (UUID) or slug"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Bulk Update MCP Server User Access"
        }
      ]
    },
    {
      "info": {
        "name": "MCP Servers > Connections",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List MCP Server Connections",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/mcp-servers/:mcpServerId/connections",
            "params": [
              {
                "name": "mcpServerId",
                "value": "",
                "type": "path",
                "description": "MCP Server ID (UUID) or slug"
              },
              {
                "name": "user_id",
                "value": "",
                "type": "query",
                "description": "Optional. UUID of the user whose connections to list. If not provided, defaults to the current user for user API keys, and returns all connections on the MCP server for service API keys."
              },
              {
                "name": "workspace_id",
                "value": "",
                "type": "query",
                "description": "Workspace ID or slug. Required when using org admin API key; optional when API key is workspace-scoped."
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List MCP Server Connections"
        },
        {
          "info": {
            "name": "Delete MCP Server Connection",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/mcp-servers/:mcpServerId/connections",
            "params": [
              {
                "name": "mcpServerId",
                "value": "",
                "type": "path",
                "description": "MCP Server ID (UUID) or slug"
              },
              {
                "name": "user_id",
                "value": "",
                "type": "query",
                "description": "The UUID of the user to disconnect. Required when using a service API key; optional when using a user API key (the user ID is derived from the key if not provided)."
              },
              {
                "name": "workspace_id",
                "value": "",
                "type": "query",
                "description": "Workspace ID or slug. Required when using org admin API key; optional when API key is workspace-scoped."
              }
            ]
          },
          "docs": "Delete MCP Server Connection"
        }
      ]
    },
    {
      "info": {
        "name": "Logs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Insert New logs",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/logs",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Submit one or more log entries"
        },
        {
          "info": {
            "name": "Get a specific log",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/logs/:logId",
            "params": [
              {
                "name": "logId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a specific log"
        }
      ]
    },
    {
      "info": {
        "name": "Logs Export",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get a specific logs export",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/logs/exports/:exportId",
            "params": [
              {
                "name": "exportId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a specific logs export"
        },
        {
          "info": {
            "name": "Update a logs export",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/logs/exports/:exportId",
            "params": [
              {
                "name": "exportId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a logs export"
        },
        {
          "info": {
            "name": "Get all logs exports",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/logs/exports",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Get all logs exports"
        },
        {
          "info": {
            "name": "Create log export",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/logs/exports",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create log export"
        },
        {
          "info": {
            "name": "Start log export",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/logs/exports/:exportId/start",
            "params": [
              {
                "name": "exportId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Start log export"
        },
        {
          "info": {
            "name": "Cancel log export",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/logs/exports/:exportId/cancel",
            "params": [
              {
                "name": "exportId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Cancel log export"
        },
        {
          "info": {
            "name": "Download log export",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/logs/exports/:exportId/download",
            "params": [
              {
                "name": "exportId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Download log export"
        }
      ]
    },
    {
      "info": {
        "name": "Audit Logs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Audit Logs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/audit-logs",
            "params": [
              {
                "name": "start_time",
                "value": "",
                "type": "query",
                "description": "Start time for filtering logs (ISO8601 format)"
              },
              {
                "name": "end_time",
                "value": "",
                "type": "query",
                "description": "End time for filtering logs (ISO8601 format)"
              },
              {
                "name": "organisation_id",
                "value": "",
                "type": "query",
                "description": "Organisation ID for filtering logs"
              },
              {
                "name": "method",
                "value": "",
                "type": "query",
                "description": "HTTP method for filtering logs"
              },
              {
                "name": "uri",
                "value": "",
                "type": "query",
                "description": "URI path for filtering logs"
              },
              {
                "name": "request_id",
                "value": "",
                "type": "query",
                "description": "Request ID for filtering logs"
              },
              {
                "name": "user_id",
                "value": "",
                "type": "query",
                "description": "User ID for filtering logs"
              },
              {
                "name": "user_type",
                "value": "",
                "type": "query",
                "description": "Type of user for filtering logs"
              },
              {
                "name": "workspace_id",
                "value": "",
                "type": "query",
                "description": "Workspace ID for filtering logs"
              },
              {
                "name": "response_status_code",
                "value": "",
                "type": "query",
                "description": "HTTP response status code for filtering logs"
              },
              {
                "name": "resource_type",
                "value": "",
                "type": "query",
                "description": "Resource type for filtering logs"
              },
              {
                "name": "action",
                "value": "",
                "type": "query",
                "description": "Action type for filtering logs"
              },
              {
                "name": "client_ip",
                "value": "",
                "type": "query",
                "description": "Client IP address for filtering logs"
              },
              {
                "name": "country",
                "value": "",
                "type": "query",
                "description": "Country for filtering logs"
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query",
                "description": "Current page number for pagination"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of items per page"
              }
            ]
          },
          "docs": "Get Audit Logs"
        }
      ]
    },
    {
      "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"
        }
      ]
    },
    {
      "info": {
        "name": "Usage Limits Policies",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Usage Limits Policies",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/policies/usage-limits",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "query",
                "description": "Workspace ID or slug"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by status"
              },
              {
                "name": "type",
                "value": "",
                "type": "query",
                "description": "Filter by policy type"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of items per page"
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query",
                "description": "Current page number"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "List all usage limits policies with optional filtering."
        },
        {
          "info": {
            "name": "Create Usage Limits Policy",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/policies/usage-limits",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create a new usage limits policy to control total usage (cost or tokens) over a period."
        },
        {
          "info": {
            "name": "Get Usage Limits Policy",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/policies/usage-limits/:policyUsageLimitsId",
            "params": [
              {
                "name": "policyUsageLimitsId",
                "value": "",
                "type": "path",
                "description": "Usage limits policy UUID"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by status"
              },
              {
                "name": "include_usage",
                "value": "",
                "type": "query",
                "description": "Include usage information for each value key"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Get a single usage limits policy by ID."
        },
        {
          "info": {
            "name": "Update Usage Limits Policy",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/policies/usage-limits/:policyUsageLimitsId",
            "params": [
              {
                "name": "policyUsageLimitsId",
                "value": "",
                "type": "path",
                "description": "Usage limits policy UUID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Update an existing usage limits policy."
        },
        {
          "info": {
            "name": "Delete Usage Limits Policy",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/policies/usage-limits/:policyUsageLimitsId",
            "params": [
              {
                "name": "policyUsageLimitsId",
                "value": "",
                "type": "path",
                "description": "Usage limits policy UUID"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Archive (soft delete) a usage limits policy."
        },
        {
          "info": {
            "name": "List Usage Limits Policy Entities",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/policies/usage-limits/:policyUsageLimitsId/entities",
            "params": [
              {
                "name": "policyUsageLimitsId",
                "value": "",
                "type": "path",
                "description": "Usage limits policy UUID"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by entity usage status"
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Filter entities by value key"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of items per page"
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query",
                "description": "Current page number"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "List entities tracked by a usage limits policy with their current usage."
        },
        {
          "info": {
            "name": "Reset Usage Limits Policy Entity",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/policies/usage-limits/:policyUsageLimitsId/entities/:entityId/reset",
            "params": [
              {
                "name": "policyUsageLimitsId",
                "value": "",
                "type": "path",
                "description": "Usage limits policy UUID"
              },
              {
                "name": "entityId",
                "value": "",
                "type": "path",
                "description": "Usage limits policy entity ID"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Reset the current usage for a specific entity in a usage limits policy."
        }
      ]
    },
    {
      "info": {
        "name": "Rate Limits Policies",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Rate Limits Policies",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/policies/rate-limits",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "query",
                "description": "Workspace ID or slug"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by status"
              },
              {
                "name": "type",
                "value": "",
                "type": "query",
                "description": "Filter by policy type"
              },
              {
                "name": "unit",
                "value": "",
                "type": "query",
                "description": "Filter by rate unit"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of items per page"
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query",
                "description": "Current page number"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "List all rate limits policies with optional filtering."
        },
        {
          "info": {
            "name": "Create Rate Limits Policy",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/policies/rate-limits",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create a new rate limits policy to control the rate of requests or tokens consumed per minute, hour, or day."
        },
        {
          "info": {
            "name": "Get Rate Limits Policy",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/policies/rate-limits/:rateLimitsPolicyId",
            "params": [
              {
                "name": "rateLimitsPolicyId",
                "value": "",
                "type": "path",
                "description": "Rate limits policy UUID"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by status"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Get a single rate limits policy by ID."
        },
        {
          "info": {
            "name": "Update Rate Limits Policy",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/policies/rate-limits/:rateLimitsPolicyId",
            "params": [
              {
                "name": "rateLimitsPolicyId",
                "value": "",
                "type": "path",
                "description": "Rate limits policy UUID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Update an existing rate limits policy."
        },
        {
          "info": {
            "name": "Delete Rate Limits Policy",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/policies/rate-limits/:rateLimitsPolicyId",
            "params": [
              {
                "name": "rateLimitsPolicyId",
                "value": "",
                "type": "path",
                "description": "Rate limits policy UUID"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Delete a rate limits policy."
        }
      ]
    },
    {
      "info": {
        "name": "Analytics > Graphs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get requests graph",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/requests",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get requests graph"
        },
        {
          "info": {
            "name": "Get cost graph",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/cost",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get cost graph"
        },
        {
          "info": {
            "name": "Get latency graph",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/latency",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get latency graph"
        },
        {
          "info": {
            "name": "Get tokens graph",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/tokens",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get tokens graph"
        },
        {
          "info": {
            "name": "Get users graph. Returns unique user count across different time buckets",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/users",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get users graph. Returns unique user count across different time buckets"
        },
        {
          "info": {
            "name": "Get users requests graph. Returns average requests per user across different time buckets",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/users/requests",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get users requests graph. Returns average requests per user across different time buckets"
        },
        {
          "info": {
            "name": "Get errors graph",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/errors",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get errors graph"
        },
        {
          "info": {
            "name": "Get percentage error rate graph",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/errors/rate",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get percentage error rate graph"
        },
        {
          "info": {
            "name": "Get status code wise stacked error graph",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/errors/stacks",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get status code wise stacked error graph"
        },
        {
          "info": {
            "name": "Get status code wise grouped error graph.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/errors/status-codes",
            "params": [
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get status code wise grouped error graph."
        },
        {
          "info": {
            "name": "Get retry and fallback rescued requests graph",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/requests/rescued",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get retry and fallback rescued requests graph"
        },
        {
          "info": {
            "name": "Get cache hit rate graph",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/cache/hit-rate",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get cache hit rate graph"
        },
        {
          "info": {
            "name": "Get cache hit latency graph",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/cache/latency",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get cache hit latency graph"
        },
        {
          "info": {
            "name": "Get feedbacks graph",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/feedbacks",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get feedbacks graph"
        },
        {
          "info": {
            "name": "Get score-wise feedbacks distribution graph",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/feedbacks/scores",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get score-wise feedbacks distribution graph"
        },
        {
          "info": {
            "name": "Get weighted feedbacks graph. Weighted feedback is (value * score)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/feedbacks/weighted",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get weighted feedbacks graph. Weighted feedback is (value * score)"
        },
        {
          "info": {
            "name": "Get feedbacks per ai_models graph",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/graphs/feedbacks/ai-models",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get feedbacks per ai_models graph"
        }
      ]
    },
    {
      "info": {
        "name": "Analytics > Summary",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get cache summary data for the selected time period",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/summary/cache",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get cache summary data for the selected time period"
        }
      ]
    },
    {
      "info": {
        "name": "Analytics > Groups",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get metadata users grouped data.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/groups/users",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query",
                "description": "Current page number"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of items per page"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get metadata users grouped data."
        },
        {
          "info": {
            "name": "Get ai model grouped data.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/groups/ai-models",
            "params": [
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query",
                "description": "Current page number"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of items per page"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get ai model grouped data."
        },
        {
          "info": {
            "name": "Get metadata key based grouped data.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/analytics/groups/metadata/:metadataKey",
            "params": [
              {
                "name": "metadataKey",
                "value": "",
                "type": "path"
              },
              {
                "name": "workspace_slug",
                "value": "",
                "type": "query",
                "description": "Workspace slug filter. If a workspace API key is being used, this filter will not be taken into consideration. If an organisation API key is used and no workspace slug is passed, default workspace will be used."
              },
              {
                "name": "time_of_generation_min",
                "value": "",
                "type": "query",
                "description": "Minimum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "time_of_generation_max",
                "value": "",
                "type": "query",
                "description": "Maximum time of generation in ISO8601 format (YYYY-MM-DDTHH:MM:SS±HH:MM)."
              },
              {
                "name": "total_units_min",
                "value": "",
                "type": "query",
                "description": "Minimum total units (tokens)"
              },
              {
                "name": "total_units_max",
                "value": "",
                "type": "query",
                "description": "Maximum total units (tokens)"
              },
              {
                "name": "cost_min",
                "value": "",
                "type": "query",
                "description": "Minimum cost (in cents)"
              },
              {
                "name": "cost_max",
                "value": "",
                "type": "query",
                "description": "Maximum cost (in cents)"
              },
              {
                "name": "prompt_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of prompt tokens"
              },
              {
                "name": "prompt_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of prompt tokens"
              },
              {
                "name": "completion_token_min",
                "value": "",
                "type": "query",
                "description": "Minimum number of completion tokens"
              },
              {
                "name": "completion_token_max",
                "value": "",
                "type": "query",
                "description": "Maximum number of completion tokens"
              },
              {
                "name": "status_code",
                "value": "401,403",
                "type": "query",
                "description": "Comma separated response status codes"
              },
              {
                "name": "weighted_feedback_min",
                "value": "",
                "type": "query",
                "description": "Minimum weighted feedback score"
              },
              {
                "name": "weighted_feedback_max",
                "value": "",
                "type": "query",
                "description": "Maximum weighted feedback score"
              },
              {
                "name": "virtual_keys",
                "value": "vk-slug-1,vk-slug-2",
                "type": "query",
                "description": "Comma separated virtual key slugs"
              },
              {
                "name": "configs",
                "value": "pc-config-slug-1,pc-config-slug-2",
                "type": "query",
                "description": "Comma separated config slugs"
              },
              {
                "name": "api_key_ids",
                "value": "765768a9-b4ec-4694-962c-d55f40cdb0dc,7c22af5a-8119-46b8-8d9b-bad3ad382387",
                "type": "query",
                "description": "Comma separated API key UUIDs"
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query",
                "description": "Current page number"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of items per page"
              },
              {
                "name": "metadata",
                "value": "{\"_user\":\"user_1\", \"env\": \"staging\"}",
                "type": "query",
                "description": "Stringifed json object with key value metadata pairs"
              },
              {
                "name": "ai_org_model",
                "value": "openai__gpt-3.5-turbo,azure-openai__gpt-35-turbo",
                "type": "query",
                "description": "Comma separated ai provider and model combination. Double underscore (__) should be used as a separator for each provider and model combination"
              },
              {
                "name": "trace_id",
                "value": "my-unique-trace-1,my-unique-trace-2",
                "type": "query",
                "description": "Comma separated trace IDs"
              },
              {
                "name": "span_id",
                "value": "my-unique-span-1,my-unique-span-2",
                "type": "query",
                "description": "Comma separated span IDs"
              },
              {
                "name": "prompt_slug",
                "value": "prompt-slug-1,prompt-slug-2",
                "type": "query",
                "description": "Comma separated prompt slugs"
              }
            ]
          },
          "docs": "Get metadata key based grouped data."
        }
      ]
    },
    {
      "info": {
        "name": "Model Pricing",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Model Pricing",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/model-configs/pricing/:provider/:model",
            "params": [
              {
                "name": "provider",
                "value": "",
                "type": "path",
                "description": "Provider identifier. Use lowercase with hyphens.\n\nExamples: `openai`, `anthropic`, `google`, `azure-openai`, `bedrock`, `x-ai`\n"
              },
              {
                "name": "model",
                "value": "",
                "type": "path",
                "description": "Model identifier. Use the exact model name as specified by the provider.\n\nExamples: `gpt-5`, `gpt-5.2`, `claude-opus-4-5-20251101`, `gemini-3.0-pro`\n"
              }
            ]
          },
          "docs": "Returns pricing configuration for a specific model.\n\n**Note:** Prices are in USD cents per token.\n\n## Supported Providers\n\nopenai, anthropic, google, azure-openai, bedrock, mistral-ai, cohere, \ntogether-ai, groq, deepseek, fireworks-ai, perplexity-ai, anyscale, \ndeepinfra, cerebras, x-ai, and 25+ more.\n\n## Example Response Fields\n\n| Field | Description | Unit |\n|-------|-------------|------|\n| `request_token.price` | Input token cost | cents/token |\n| `response_token.price` | Output token cost |"
        }
      ]
    },
    {
      "info": {
        "name": "Secret-References",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List All Secret References",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/secret-references",
            "params": [
              {
                "name": "manager_type",
                "value": "",
                "type": "query",
                "description": "Filter by secret manager type"
              },
              {
                "name": "tags",
                "value": "",
                "type": "query",
                "description": "JSON-encoded object for tag filtering"
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Search by name"
              },
              {
                "name": "current_page",
                "value": "",
                "type": "query",
                "description": "Page index (0-based), defaults to 0"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Items per page (1-100), defaults to 20"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "List All Secret References"
        },
        {
          "info": {
            "name": "Create a Secret Reference",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/secret-references",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Create a Secret Reference"
        },
        {
          "info": {
            "name": "Get a Secret Reference",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/secret-references/:secretReferenceId",
            "params": [
              {
                "name": "secretReferenceId",
                "value": "",
                "type": "path",
                "description": "UUID or slug of the secret reference"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Get a Secret Reference"
        },
        {
          "info": {
            "name": "Update a Secret Reference",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.portkey.ai/v1/secret-references/:secretReferenceId",
            "params": [
              {
                "name": "secretReferenceId",
                "value": "",
                "type": "path",
                "description": "UUID or slug of the secret reference"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Update a Secret Reference"
        },
        {
          "info": {
            "name": "Delete a Secret Reference",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/secret-references/:secretReferenceId",
            "params": [
              {
                "name": "secretReferenceId",
                "value": "",
                "type": "path",
                "description": "UUID or slug of the secret reference"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Delete a Secret Reference"
        }
      ]
    }
  ],
  "bundled": true
}