curl --request GET \
--url https://api.harvey.ai/api/v1/vault/workspace/projects \
--header 'Authorization: Bearer <token>'
{
"response": {
"content": {
"pagination": {
"page": 1,
"per_page": 20,
"total": 150,
"total_pages": 8
},
"projects": [
{
"created_at": "2024-01-15T10:30:00.000000",
"creator_email": "user@example.com",
"files_count": 109,
"id": "12345678-1234-5678-1234-567812345678",
"is_knowledge_base_project": false,
"name": "Example Legal Project",
"project_updated_at": "2024-01-20T14:45:00.000000",
"query_count": 30,
"sharing": {
"user_count": 0,
"user_shares": [],
"workspace_count": 0,
"workspace_shares": []
},
"size_bytes": 104857600,
"updated_at": "2024-01-20T14:45:00.000000"
},
{
"created_at": "2024-01-10T09:15:00.000000",
"creator_email": "user@example.com",
"files_count": 45,
"id": "87654321-8765-4321-8765-432187654321",
"is_knowledge_base_project": true,
"name": "Knowledge Base Project",
"project_updated_at": "2024-01-18T11:20:00.000000",
"query_count": 15,
"sharing": {
"user_count": 2,
"user_shares": [
{
"created_at": "2024-01-16T13:45:00.000000",
"dest_user_email": "collaborator@example.com",
"dest_user_id": "11111111-2222-3333-4444-555566667777",
"dest_workspace_id": 2,
"permission_level": "VIEW",
"src_user_id": "12345678-1234-5678-1234-567812345678",
"src_workspace_id": 1,
"vault_folder_id": "87654321-8765-4321-8765-432187654321"
}
],
"workspace_count": 1,
"workspace_shares": [
{
"created_at": "2024-01-17T16:30:00.000000",
"dest_workspace_id": 3,
"permission_level": "EDIT",
"src_user_id": "12345678-1234-5678-1234-567812345678",
"src_workspace_id": 1,
"vault_folder_id": "87654321-8765-4321-8765-432187654321"
}
]
},
"size_bytes": 52428800,
"updated_at": "2024-01-18T11:20:00.000000"
}
]
}
}
}
Lists all Vault projects and knowledge bases in the current workspace with pagination support. This endpoint returns a paginated list of projects that the authenticated user has permission to view.
curl --request GET \
--url https://api.harvey.ai/api/v1/vault/workspace/projects \
--header 'Authorization: Bearer <token>'
{
"response": {
"content": {
"pagination": {
"page": 1,
"per_page": 20,
"total": 150,
"total_pages": 8
},
"projects": [
{
"created_at": "2024-01-15T10:30:00.000000",
"creator_email": "user@example.com",
"files_count": 109,
"id": "12345678-1234-5678-1234-567812345678",
"is_knowledge_base_project": false,
"name": "Example Legal Project",
"project_updated_at": "2024-01-20T14:45:00.000000",
"query_count": 30,
"sharing": {
"user_count": 0,
"user_shares": [],
"workspace_count": 0,
"workspace_shares": []
},
"size_bytes": 104857600,
"updated_at": "2024-01-20T14:45:00.000000"
},
{
"created_at": "2024-01-10T09:15:00.000000",
"creator_email": "user@example.com",
"files_count": 45,
"id": "87654321-8765-4321-8765-432187654321",
"is_knowledge_base_project": true,
"name": "Knowledge Base Project",
"project_updated_at": "2024-01-18T11:20:00.000000",
"query_count": 15,
"sharing": {
"user_count": 2,
"user_shares": [
{
"created_at": "2024-01-16T13:45:00.000000",
"dest_user_email": "collaborator@example.com",
"dest_user_id": "11111111-2222-3333-4444-555566667777",
"dest_workspace_id": 2,
"permission_level": "VIEW",
"src_user_id": "12345678-1234-5678-1234-567812345678",
"src_workspace_id": 1,
"vault_folder_id": "87654321-8765-4321-8765-432187654321"
}
],
"workspace_count": 1,
"workspace_shares": [
{
"created_at": "2024-01-17T16:30:00.000000",
"dest_workspace_id": 3,
"permission_level": "EDIT",
"src_user_id": "12345678-1234-5678-1234-567812345678",
"src_workspace_id": 1,
"vault_folder_id": "87654321-8765-4321-8765-432187654321"
}
]
},
"size_bytes": 52428800,
"updated_at": "2024-01-18T11:20:00.000000"
}
]
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Page number for pagination (default: 1)
x >= 1
Number of items per page (default: 20, max: 100)
1 <= x <= 100
Successfully retrieved workspace projects
The response is of type object
.