Skip to main content

Errors

The Prompting Company’s JSON endpoints return an ApiResult<T> envelope for both success and failure.

Result shape

Check ok before reading data:

Error codes

Common messages

Request IDs

Every wrapper response includes:
You may also send your own x-request-id if it uses letters, numbers, _, ., -, or : and is at most 128 characters. TPC replaces unsafe values with a fresh ID. Share the request ID with support when you need help tracing a failed request.