POST
/
api
/
v1
/
vault
/
create_project
Create a new Vault project
curl --request POST \
  --url https://api.harvey.ai/api/v1/vault/create_project \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'name=Example Legal Documents Project' \
  --form is_knowledge_base_project=true
{
  "project_id": "proj_1234567890abcdef",
  "name": "My Legal Documents",
  "description": "Project for storing legal case documents",
  "created_at": "2024-01-15T10:30:00Z",
  "settings": {
    "max_file_size": 104857600,
    "max_files": 1000,
    "allowed_file_types": [
      "pdf",
      "docx",
      "xlsx",
      "pptx",
      "txt",
      "rtf",
      "csv",
      "eml"
    ]
  },
  "status": "active"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
name
string
required

The name of the new project

Example:

"Example Legal Documents Project"

is_knowledge_base_project
boolean

Flag indicating whether this project is a knowledge base

Example:

true

Response

Project successfully created

project_id
string

The unique identifier of the created project.

Example:

"proj_1234567890abcdef"

name
string

The name of the created project.

Example:

"My Legal Documents"

description
string

The description of the project.

Example:

"Project for storing legal case documents"

created_at
string<date-time>

Timestamp when the project was created.

Example:

"2024-01-15T10:30:00Z"

settings
object
status
string

The status of the project.

Example:

"active"