Skip to main content
The Prompt Bank REST API gives you programmatic access to your prompts, vaults, and API keys. You can create, retrieve, update, and delete resources from any HTTP client. All requests go to a single base URL, all request bodies use JSON, and all responses follow a consistent { data, error } envelope.

Base URL

Every request targets:
Use this as the root for all paths shown in this documentation. For example, the endpoint GET /prompts resolves to https://www.promptbank.club/api/v1/prompts.

Versioning

The API is versioned with a v1 prefix in every path. When breaking changes are introduced, a new version prefix (e.g. v2) will be released. The v1 prefix will remain available during any transition period so existing integrations keep working.

Request Format

Send request bodies as JSON. Set the Content-Type header to application/json on all requests that include a body (POST, PUT, PATCH).

Response Envelope

Every response — success or error — returns a JSON object with two top-level keys: List endpoints include an additional pagination object alongside data and error.

Success response

Error response

When error is non-null, data is always null. The optional details object may contain field-level validation information for 400 Bad Request responses.

Pagination

List endpoints use cursor-based pagination. The response includes a pagination object alongside the result array:
When nextCursor is null, you have reached the last page.

Pagination example

What’s next

Authentication

Learn how to create and use API keys to authorize requests.

Errors

Understand error codes and how to handle them.

Prompts

Browse the Prompts API reference.

Vaults

Browse the Vaults API reference.