Skip to content

Latest commit

 

History

History
288 lines (237 loc) · 11.2 KB

vaults.md

File metadata and controls

288 lines (237 loc) · 11.2 KB

Vaults

All projects have a primary vault (folder), to get its ID see the Get a project endpoint's dock payload. Additional vaults may be nested under the primary vault or any child vault.

Endpoints:

Get vaults

  • GET /vaults/2/vaults.json will return a paginated list of vaults under the vault with ID of 2.
Example JSON Response
[
  {
    "id": 1069479520,
    "status": "active",
    "visible_to_clients": false,
    "created_at": "2026-04-19T05:47:00.000Z",
    "updated_at": "2026-05-28T17:23:52.985Z",
    "title": "HR Stuff",
    "inherits_status": true,
    "type": "Vault",
    "url": "https://3.basecampapi.com/195539477/buckets/2085958502/vaults/1069479520.json",
    "app_url": "https://3.basecamp.com/195539477/buckets/2085958502/vaults/1069479520",
    "bookmark_url": "https://3.basecampapi.com/195539477/my/bookmarks/BAh7BkkiC19yYWlscwY6BkVUewdJIglkYXRhBjsAVEkiLmdpZDovL2JjMy9SZWNvcmRpbmcvMTA2OTQ3OTUyMD9leHBpcmVzX2luBjsAVEkiCHB1cgY7AFRJIg1yZWFkYWJsZQY7AFQ=--e8c5bbfbf4a3dc5c7efb75b2ff00336c19f36b71.json",
    "position": 1,
    "parent": {
      "id": 1069478956,
      "title": "Docs & Files",
      "type": "Vault",
      "url": "https://3.basecampapi.com/195539477/buckets/2085958502/vaults/1069478956.json",
      "app_url": "https://3.basecamp.com/195539477/buckets/2085958502/vaults/1069478956"
    },
    "bucket": {
      "id": 2085958502,
      "name": "Honcho Design Newsroom",
      "type": "Project"
    },
    "creator": {
      "id": 1049715913,
      "attachable_sgid": "BAh7BkkiC19yYWlscwY6BkVUewdJIglkYXRhBjsAVEkiK2dpZDovL2JjMy9QZXJzb24vMTA0OTcxNTkxMz9leHBpcmVzX2luBjsAVEkiCHB1cgY7AFRJIg9hdHRhY2hhYmxlBjsAVA==--e627c45e6b34e08862da23906862412620e4d5d9",
      "name": "Victor Cooper",
      "personable_type": "User",
      "title": "Chief Strategist",
      "tagline": "Don't let your dreams be dreams",
      "location": "Chicago, IL",
      "created_at": "2026-05-28T17:22:22.069Z",
      "updated_at": "2026-07-21T01:06:02.483Z",
      "email_address": "victor@honchodesign.com",
      "bio": "Don't let your dreams be dreams",
      "admin": true,
      "owner": true,
      "client": false,
      "employee": true,
      "time_zone": "America/Chicago",
      "avatar_url": "https://3.basecampapi.com/195539477/people/BAhpBMlkkT4=--5fe7b70fbee7a7f0e2e1e19df7579e5d880c753d/avatar",
      "company": {
        "id": 1033447817,
        "name": "Honcho Design"
      },
      "can_ping": true,
      "can_manage_projects": true,
      "can_manage_people": true,
      "can_access_timesheet": true,
      "can_access_hill_charts": true
    },
    "documents_count": 1,
    "documents_url": "https://3.basecampapi.com/195539477/vaults/1069479520/documents.json",
    "uploads_count": 0,
    "uploads_url": "https://3.basecampapi.com/195539477/vaults/1069479520/uploads.json",
    "vaults_count": 0,
    "vaults_url": "https://3.basecampapi.com/195539477/vaults/1069479520/vaults.json"
  }
]
Copy as cURL
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" https://3.basecampapi.com/$ACCOUNT_ID/vaults/2/vaults.json

Get a vault

  • GET /vaults/2.json will return the vault with an ID of 2.
Example JSON Response
{
  "id": 1069478956,
  "status": "active",
  "visible_to_clients": false,
  "created_at": "2026-05-28T17:22:34.164Z",
  "updated_at": "2026-05-28T17:23:52.987Z",
  "title": "Docs & Files",
  "inherits_status": true,
  "type": "Vault",
  "url": "https://3.basecampapi.com/195539477/buckets/2085958502/vaults/1069478956.json",
  "app_url": "https://3.basecamp.com/195539477/buckets/2085958502/vaults/1069478956",
  "bookmark_url": "https://3.basecampapi.com/195539477/my/bookmarks/BAh7BkkiC19yYWlscwY6BkVUewdJIglkYXRhBjsAVEkiLmdpZDovL2JjMy9SZWNvcmRpbmcvMTA2OTQ3ODk1Nj9leHBpcmVzX2luBjsAVEkiCHB1cgY7AFRJIg1yZWFkYWJsZQY7AFQ=--14def74c095e51fe2700e07de1e192bee0317a98.json",
  "position": 3,
  "bucket": {
    "id": 2085958502,
    "name": "Honcho Design Newsroom",
    "type": "Project"
  },
  "creator": {
    "id": 1049715913,
    "attachable_sgid": "BAh7BkkiC19yYWlscwY6BkVUewdJIglkYXRhBjsAVEkiK2dpZDovL2JjMy9QZXJzb24vMTA0OTcxNTkxMz9leHBpcmVzX2luBjsAVEkiCHB1cgY7AFRJIg9hdHRhY2hhYmxlBjsAVA==--e627c45e6b34e08862da23906862412620e4d5d9",
    "name": "Victor Cooper",
    "personable_type": "User",
    "title": "Chief Strategist",
    "tagline": "Don't let your dreams be dreams",
    "location": "Chicago, IL",
    "created_at": "2026-05-28T17:22:22.069Z",
    "updated_at": "2026-07-21T01:06:02.483Z",
    "email_address": "victor@honchodesign.com",
    "bio": "Don't let your dreams be dreams",
    "admin": true,
    "owner": true,
    "client": false,
    "employee": true,
    "time_zone": "America/Chicago",
    "avatar_url": "https://3.basecampapi.com/195539477/people/BAhpBMlkkT4=--5fe7b70fbee7a7f0e2e1e19df7579e5d880c753d/avatar",
    "company": {
      "id": 1033447817,
      "name": "Honcho Design"
    },
    "can_ping": true,
    "can_manage_projects": true,
    "can_manage_people": true,
    "can_access_timesheet": true,
    "can_access_hill_charts": true
  },
  "documents_count": 0,
  "documents_url": "https://3.basecampapi.com/195539477/vaults/1069478956/documents.json",
  "uploads_count": 0,
  "uploads_url": "https://3.basecampapi.com/195539477/vaults/1069478956/uploads.json",
  "vaults_count": 1,
  "vaults_url": "https://3.basecampapi.com/195539477/vaults/1069478956/vaults.json"
}
Copy as cURL
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" https://3.basecampapi.com/$ACCOUNT_ID/vaults/2.json

Create a vault

  • POST /vaults/2/vaults.json creates a vault under the vault with an ID of 2.

Required parameters: title for the name of the vault.

This endpoint will return 201 Created with the current JSON representation of the vault if the creation was a success. See the Get a vault endpoint for more info on the payload.

Example JSON Request
{
  "title": "Materials"
}
Copy as cURL
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
  -d '{"title":"Materials"}' \
  https://3.basecampapi.com/$ACCOUNT_ID/vaults/2/vaults.json

Update a vault

  • PUT /vaults/3.json allows changing the title of the vault with an ID of 3.

This endpoint will return 200 OK with the current JSON representation of the vault if the update was a success. See the Get a vault endpoint for more info on the payload.

Example JSON Request
{
  "title": "Important Materials"
}
Copy as cURL
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
  -d '{"title":"Important Materials"}' -X PUT \
  https://3.basecampapi.com/$ACCOUNT_ID/vaults/3.json

Update a vault's view

  • PUT /vaults/3/view_preference.json sets how the current user sees the vault with an ID of 3 in Docs & Files.

Required parameters: view, either grid or list.

The view belongs to the current user and to that one vault, so setting it leaves every other person, and every other vault, alone. To switch a whole project, set its primary vault, then call Get vaults on every vault you set and set each vault it returns. Get vaults lists one level at a time and is paginated.

This endpoint will return 204 No Content if the update was a success, or 400 Bad Request if view is anything other than grid or list.

Example JSON Request
{
  "view": "grid"
}
Copy as cURL
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
  -d '{"view":"grid"}' -X PUT \
  https://3.basecampapi.com/$ACCOUNT_ID/vaults/3/view_preference.json

Move a document, upload, or vault

  • POST /recordings/2/filing.json moves the document, upload, or vault with an ID of 2 into another vault in the same project, or changes its position within the vault it's already in.

Required parameters: parent_id, the ID of the destination vault. A parent_id equal to the item's own ID is treated as its current vault, so only its position changes.

Optional parameters:

  • position - 1-indexed position within the destination vault. It must be a positive whole number; anything else returns 422 with { "error": "Position must be a positive whole number" }. Omitted, it defaults to 1, placing the item first. A position past the end places it last.

The item moves in place, so its ID, comments, bookmarks, and history stay with it, and moving it to another vault records an adopted event (document_adopted, upload_adopted, or vault_adopted) that is delivered to webhooks subscribed to that type. Moving a vault takes everything inside it along. To move something to another project, use the Move menu in Basecamp; this endpoint only moves within a project.

This endpoint will return 204 No Content if the move was a success. It returns:

  • 400 Bad Request if parent_id is missing.
  • 403 Forbidden if the current user isn't allowed to move the item. When an account restricts moves to admins and creators, other people can still change an item's position within its current vault.
  • 404 Not Found if the destination isn't in the same project as the item.
  • 422 Unprocessable Entity if position isn't a positive whole number, if the item is moving to a different vault that isn't active (it's archived, trashed, or a draft), if the destination isn't a vault, if the item being moved to a different vault is archived, trashed, or a draft, if an archived, trashed, or draft item is reordered within an active vault, or if a vault is moved into one of the vaults inside it. That last case returns a JSON body such as { "error": "Parent must not be self or descendant" }.
Example JSON Request
{
  "parent_id": 3,
  "position": 2
}
Copy as cURL
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
  -d '{"parent_id":3,"position":2}' \
  https://3.basecampapi.com/$ACCOUNT_ID/recordings/2/filing.json

Legacy project-scoped routes

The following project-scoped routes are still supported and will remain available, but flat routes above are the canonical form for new integrations.