Requests

All API requests should be made to the /api/0/ prefix, and will return JSON as the response:

Copied
curl -i https://sentry.io/api/0/

HTTP Verbs

Sentry makes an attempt to stick to appropriate HTTP verbs, but we always prioritize usability over correctness.

MethodDescription
DELETEUsed for deleting resources.
GETUsed for retrieving resources.
OPTIONSDescribes the given endpoint.
POSTUsed for creating resources.
PUTUsed for updating resources. Partial data is accepted where possible.

Parameters and Data

Any parameters not included in the URL should be encoded as JSON with a Content-Type of 'application/json':

Copied
curl -i https://sentry.io/api/0/projects/1/groups/ \
    -d '{"status": "resolved"}' \
    -H 'Content-Type: application/json'

Additional parameters are sometimes specified via the querystring, even for POST, PUT, and DELETE requests:

Copied
curl -i https://sentry.io/api/0/projects/1/groups/?status=unresolved \
    -d '{"status": "resolved"}' \
    -H 'Content-Type: application/json'
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").