List Vaults in the Recycle Bin
curl --request GET \
--url https://api.harvey.ai/api/v1/vault/workspace/recycle_bin \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.harvey.ai/api/v1/vault/workspace/recycle_bin"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.harvey.ai/api/v1/vault/workspace/recycle_bin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.harvey.ai/api/v1/vault/workspace/recycle_bin",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.harvey.ai/api/v1/vault/workspace/recycle_bin"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.harvey.ai/api/v1/vault/workspace/recycle_bin")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.harvey.ai/api/v1/vault/workspace/recycle_bin")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "0197a1b2-3c4d-5e6f-7a8b-9c0d1e2f3a4b",
"resource_id": "abcdef12-3456-7890-abcd-ef1234567890",
"resource_type": "vault_project",
"recycle_bin_status": "deleted",
"deleted_at": "2026-07-15T18:42:10.512000Z",
"recycle_bin_purged_scheduled_at": "2026-08-14T18:42:10.512000Z",
"delete_source": "customer_delete",
"deleted_source_id": "12345678-1234-5678-1234-567812345678",
"deleted_by_user_email": "user@example.com",
"vault_project": {
"id": "abcdef12-3456-7890-abcd-ef1234567890",
"name": "Acme Contract Repository",
"created_at": "2026-01-15T10:30:00.000000",
"creator_email": "user@example.com",
"files_count": 42,
"is_knowledge_base_project": false
}
}
],
"total": 1
}Vault
List Vaults in the Recycle Bin
Lists every vault currently in the recycle bin for the current workspace. When a Vault project is deleted it is not purged immediately — it first moves to a workspace recycle bin, where it can be reviewed before being permanently deleted. Entries are ordered by deleted_at descending. This endpoint is restricted to workspace vault admins (the same permission as GET /api/v1/vault/workspace/projects).
GET
/
api
/
v1
/
vault
/
workspace
/
recycle_bin
List Vaults in the Recycle Bin
curl --request GET \
--url https://api.harvey.ai/api/v1/vault/workspace/recycle_bin \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.harvey.ai/api/v1/vault/workspace/recycle_bin"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.harvey.ai/api/v1/vault/workspace/recycle_bin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.harvey.ai/api/v1/vault/workspace/recycle_bin",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.harvey.ai/api/v1/vault/workspace/recycle_bin"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.harvey.ai/api/v1/vault/workspace/recycle_bin")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.harvey.ai/api/v1/vault/workspace/recycle_bin")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "0197a1b2-3c4d-5e6f-7a8b-9c0d1e2f3a4b",
"resource_id": "abcdef12-3456-7890-abcd-ef1234567890",
"resource_type": "vault_project",
"recycle_bin_status": "deleted",
"deleted_at": "2026-07-15T18:42:10.512000Z",
"recycle_bin_purged_scheduled_at": "2026-08-14T18:42:10.512000Z",
"delete_source": "customer_delete",
"deleted_source_id": "12345678-1234-5678-1234-567812345678",
"deleted_by_user_email": "user@example.com",
"vault_project": {
"id": "abcdef12-3456-7890-abcd-ef1234567890",
"name": "Acme Contract Repository",
"created_at": "2026-01-15T10:30:00.000000",
"creator_email": "user@example.com",
"files_count": 42,
"is_knowledge_base_project": false
}
}
],
"total": 1
}Permissions
RequiresView workspace projects permission.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Case-insensitive substring filter on the vault name.
Restrict results to vaults associated with this client matter (the client matter UUID, not the human-readable matter number).