⚙️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
license*
String
The license ID.
product*
String
The ID of the product that this license is for.
Code: 10
Code: 30
Code: 20
Create License
POST /license
Headers
Request Body
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
Get Product
GET /product/{id}
Retrieves a product by its ID.
Path Parameters
id*
String
The product ID
Headers
Create Product
POST /products
Creates a product
Headers
Request Body
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
id*
String
ID of the product that you want to modify.
Headers
Request Body
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
id*
String
The ID of the product that you want to delete.
Headers
Last updated
Was this helpful?