Skip to content

API Overview

The PromptJang API is RESTful, uses JSON for request/response bodies, and requires Bearer token authentication.

Base URL

https://api.promptjang.net

Authentication

All endpoints (except health and Stripe webhooks) require:

Authorization: Bearer pj_live_YOUR_API_KEY

See Authentication for details.

Content Type

All request bodies must be application/json. All responses are application/json.

Common Patterns

IDs

All resource IDs are 32-character hex strings (128-bit crypto-random):

7a337feef0633bcfa20ae1b0ba3e0372

Timestamps

All timestamps are ISO 8601 (RFC 3339):

2026-05-26T12:00:00Z

Pagination

List endpoints support limit and offset query parameters:

GET /api/v1/events?limit=50&offset=100

Default limit: 50. Maximum limit: 100.

Security Headers

All responses include:

Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
Cache-Control: no-store

Endpoints Summary

MethodPathDescription
GET/healthHealth check
POST/e/:endpoint_idIngest event
GET/api/v1/orgsGet organization
PATCH/api/v1/orgsUpdate organization
GET/api/v1/endpointsList endpoints
POST/api/v1/endpointsCreate endpoint
GET/api/v1/endpoints/:idGet endpoint
PATCH/api/v1/endpoints/:idUpdate endpoint
DELETE/api/v1/endpoints/:idDelete endpoint
GET/api/v1/keysList API keys
POST/api/v1/keysCreate API key
DELETE/api/v1/keys/:idDelete API key
GET/api/v1/eventsList events
GET/api/v1/events/:idGet event
POST/api/v1/events/:id/replayReplay event
GET/api/v1/statsDelivery statistics
POST/api/v1/billing/checkoutStripe checkout
GET/api/v1/billing/portalStripe portal
POST/api/v1/billing/webhookStripe webhook

Released under the MIT License.