Endpoint
Path Parameters
integer
required
The numeric ID of the vault you want to retrieve.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
GET /api/v1/vaults/ — fetch a single vault by its numeric ID. Returns vault details including visibility, prompt count, and system status.
GET https://www.promptbank.club/api/v1/vaults/{vaultId}
curl https://www.promptbank.club/api/v1/vaults/7 \
-H 'Authorization: Bearer pb_live_...'
{
"data": {
"id": 7,
"name": "Portrait Prompts",
"description": "Curated prompts for portrait photography and art",
"slug": "portrait-prompts",
"visibility": "public",
"accessType": null,
"isLocked": false,
"coverImageUrl": null,
"isSystem": false,
"promptCount": 12,
"createdAt": "2024-05-01T10:00:00Z",
"updatedAt": "2024-05-15T08:30:00Z"
},
"error": null
}
| Field | Type | Description |
|---|---|---|
id | integer | Unique numeric identifier for the vault. |
name | string | Display name of the vault. |
description | string | null | Optional description of the vault. |
slug | string | URL-safe identifier derived from the vault name. |
visibility | string | One of private, unlisted, or public. |
accessType | string | null | Access control type, if applicable. |
isLocked | boolean | Whether the vault is locked from edits. |
coverImageUrl | string | null | URL of the vault’s cover image, if set. |
isSystem | boolean | true for vaults automatically created by Prompt Bank. |
promptCount | integer | Number of prompts currently in the vault. |
createdAt | string | ISO 8601 timestamp of vault creation. |
updatedAt | string | ISO 8601 timestamp of the last modification. |