Skip to content

API overview ​

Parsemend speaks the parts of Sentry's web API that its tools use, at the same paths, so a Sentry client pointed at Parsemend keeps working. Today that covers issues: reading them, and resolving, ignoring or reopening them one at a time or in bulk.

Base URL ​

https://api.parsemend.com/0/

Sentry's own shape, https://api.parsemend.com/api/0/, answers too. Tools that build their URLs from a Sentry base URL, like sentry-cli, add the /api part themselves, so give them https://api.parsemend.com and nothing more.

Authentication ​

Every request carries a bearer token:

bash
curl https://api.parsemend.com/0/issues/1234/ \
  -H "Authorization: Bearer $PARSEMEND_TOKEN"

Your personal token ​

The token parsemend login stores is a personal token. It acts as you, in every organization you are a member of, so one sign-in covers them all. There is no per-organization token to create and no need to sign out and back in to switch.

To use it from a script, read it from the CLI's config file:

bash
export PARSEMEND_TOKEN=$(jq -r .token ~/.parsemend/config.json)

A personal token can do on the API what you can do in the panel: any member of an organization can resolve, ignore and reopen its issues. An organization you are not a member of answers 404, the same as one that does not exist.

See Install and sign in for signing in, signing out and where the file lives.

Organization tokens ​

An organization token belongs to one organization rather than to a person, which is what CI and sentry-cli release uploads want. The issue endpoints accept both kinds.

The honest gap: the panel cannot create organization tokens yet. Everything in the issues reference works with your personal token in the meantime.

Errors ​

Every error is JSON with a detail field saying what went wrong:

json
{ "detail": "status must be one of: resolved, unresolved, ignored, muted" }
StatusMeaning
400The request asked for something Parsemend does not do. detail names it.
401No token, or one that is unknown or revoked.
404No such issue, project or organization, or one your token cannot reach.
409A short id matches issues in two of your organizations.

Parsemend, by MAVA Design