Error Reporting API
The Error Reporting API lets you report errors associated with feature flags. DeployRamp uses these reports to monitor flag health and trigger automatic rollbacks when error rates spike.
Endpoint
POST https://flags.deployramp.com/ingest/errors
Headers
Authorization: Bearer <public_token>: your project's public tokenContent-Type: application/json
Request body
{
"flagName": "new-checkout",
"message": "Payment processing failed",
"stack": "Error: Payment processing failed\n at processPayment...",
"userId": "user-42",
"traits": { "plan": "pro" }
}flagName: the name of the flag associated with the errormessage: a human-readable error messagestack(optional): the error stack traceuserId(optional): the affected user's identifiertraits(optional): user traits for segmentation
Response
Returns 204 No Content on success. No response body is sent.
Example
curl -X POST https://flags.deployramp.com/ingest/errors \
-H "Authorization: Bearer pk_live_abc123" \
-H "Content-Type: application/json" \
-d '{"flagName":"new-checkout","message":"Payment failed","userId":"user-42"}'