Skip to main content

Can I Send Errors to Sentry Using the API?

Updated over a month ago

Issue

You want to send errors directly to Sentry without using the Sentry SDK.

Applies To

  • All sentry Users

Resolution

To send errors to Sentry via the Envelope endpoint, format the error in the Sentry Envelope structure and send an HTTP POST request. Detailed guidance on formatting your payload and authenticating your requests can be found on the Sentry Envelope endpoint documentation.

Note: If the error payload does not match the expected format, it will be silently dropped by Sentry. Ensure that your payload adheres strictly to the format specifications..

Did this answer your question?