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 token
  • Content-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 error
  • message: a human-readable error message
  • stack (optional): the error stack trace
  • userId (optional): the affected user's identifier
  • traits (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"}'

We use cookies to analyze site usage and improve your experience.