Errors
The Prompting Company’s JSON endpoints return anApiResult<T> envelope for both success and failure.
Result shape
ok before reading data:
Error codes
Common messages
Request IDs
Every wrapper response includes: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.