{
  "opencollection": "1.0.0",
  "info": {
    "name": "Portkey Analytics > Graphs Vector Stores API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "x-portkey-api-key",
      "value": "{{x-portkey-api-key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "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."
        }
      ]
    }
  ],
  "bundled": true
}