⚙️API Docs

Documentation of Sentry's REST API.

Authorization

When interacting with the API, for most requests, you'll need to provde an authorization header. It should look like this:

Authorization: Basic {base64 encoding of: "username:password"}

For example, it may look something like:

Authorization: Basic bmV2ZXJnb25uYTpnaXZleW91dXA=

License Management

License Check

POST /check

Checks the validity of any given license.

Request Body

Name
Type
Description

license*

String

The license ID.

product*

String

The ID of the product that this license is for.

Code: 10

Create License

POST /license

Headers

Name
Type
Description

Authorization*

String

You'll need an authorization header.

Request Body

Name
Type
Description

product*

String

The ID of the product that this license is for.

max_ips

int

Maximum amount of unique IPs that can use this license.

expires

String

How long until this license should expire. In this format: 1d2h3m4s

note

String

You can add an optional note for the license.

owner_id*

String

The ID of the user that owns this license.

Product Management

Get Products

GET /products

Retrieves all products.

Headers

Name
Type
Description

Authorization*

String

You'll need an authorization header.

Get Product

GET /product/{id}

Retrieves a product by its ID.

Path Parameters

Name
Type
Description

id*

String

The product ID

Headers

Name
Type
Description

Authorization*

String

You'll need an authorization header.

Create Product

POST /products

Creates a product

Headers

Name
Type
Description

Authorization

String

You'll need an authorization header.

Request Body

Name
Type
Description

name*

String

Name of the product.

description*

String

Description of the product

Modify Product

PUT product/{id}

Modifes a product. You must have at least one of the body parameteres, or you'll be given a 400 error. If any of the values are provided as null, they will not be changed.

Path Parameters

Name
Type
Description

id*

String

ID of the product that you want to modify.

Headers

Name
Type
Description

Authorization*

String

You'll need an authorization header.

Request Body

Name
Type
Description

name

String

New name of the product

description

String

New description of the product.

Delete Product

DELETE /product/{id}

Deletes a product by ID.

Path Parameters

Name
Type
Description

id*

String

The ID of the product that you want to delete.

Headers

Name
Type
Description

Authorization*

String

You'll need an authorization header.

Last updated

Was this helpful?