---
title: "Authorize"
method: POST
path: "/authz-service/api/authz/vectordb"
tags: ["Authorization", "Authorization"]
---

# Authorize

`POST /authz-service/api/authz/vectordb`

Get vector db filter expression for the provided request.

## Request body

- VectorDBAuthzRequest — Represents a VectorDB authorization request. Attributes: user_id (str): The unique identifier for the user. This is a mandatory field. application_key (str): The application key. This is a mandatory field.
  - `userId` string
  - `applicationKey` string

## Response `200`

Successful Response

- VectorDBAuthzResponse — Represents a VectorDB authorization response. Attributes: vector_db_policy_info (List[Dict[str, str]]): Information about the VectorDB policies. vector_db_id (int): The unique identifier for the VectorDB. vector_db_name (str): The name of the VectorDB. vector_db_type (str): The type of the VectorDB. user_enforcement (int): Enforcement level for the user. group_enforcement (int): Enforcement level for the group. filter_expression (str): Filter expression applied to the request. reason (str): Reason for the status code.
  - `vectorDBPolicyInfo` object[]
  - `vectorDBId` integer
  - `vectorDBName` string
  - `vectorDBType` string
  - `userEnforcement` integer
  - `groupEnforcement` integer
  - `filterExpression` string
  - `reason` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/privacera/apis/paig-server.md) · [All operations](https://skmtc.net/privacera/apis/paig-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/privacera/paig-server/revisions/e3d2c30ceace/schema)
