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/

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.

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'