Getting started
The API lets you manage your products, automate releases, read reviews, check who bought your products and look up your customers.
All endpoints live under https://www.sourcexchange.net/api.
Create a token on the API tokens page
and send it with every request, together with an Accept header so errors come back as JSON:
curl https://www.sourcexchange.net/api/users/me \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Accept: application/json"
A product's numeric ID is shown on your dashboard when you edit the product.
Permissions
Each token has its own permissions, which you choose when creating it.
readis enabled by default and covers everyGETendpoint that returns users or payments.createis needed to create products and publish releases.updateis needed to edit products, their images and their releases.deleteis needed to delete releases.
A token can never do more than its owner: you only see payments and customers of teams you belong to.
Errors and limits
401the token is missing or invalid.403the token lacks the required permission, or you may not access this resource.404the resource does not exist or is not visible to you.422the request did not pass validation. The body lists the problem per field inerrors.429you sent more than 60 requests in a minute. Wait for the time given in theRetry-Afterheader.
Products
GET /team-products
Any token
Lists every product of the teams you belong to, including drafts.
Returns a list of product objects in data.
GET /products/{id}
Any token, for published products or products you can access
Returns one product object in data.
GET /products/blueprint
Any token
Lists all published products in the Blueprint category.
GET /categories
Any token
Lists all categories. A category with a parent_id belongs to a platform, for example
Pterodactyl Addon under Pterodactyl Panel.
[
{ "id": 1, "parent_id": null, "name": "Pterodactyl Panel", "description": "..." },
{ "id": 2, "parent_id": 1, "name": "Pterodactyl Addon", "description": "..." }
]
POST /products
create permission
Creates a draft product. Send the fields as JSON:
namebetween 3 and 50 charactersslugoptional, defaults to the name in lowercase with dashes and must be unique across all productsshort_descriptionup to 255 charactersdescriptionup to 8192 characters, in Markdownpricebetween 0 and 1000, where 0 makes the product freecurrencyone ofEUR,USDorGBPcategoriesa list of category IDsteam_idoptional, defaults to your current team-
no_ai,securityandipset totrueto confirm the same statements as when creating a product on the dashboard
curl https://www.sourcexchange.net/api/products \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"name": "My product", "short_description": "One line about the product", "description": "...", "price": 9.99, "currency": "EUR", "categories": [2], "no_ai": true, "security": true, "ip": true}'
Responds with 201 Created and the new product object
in data. Upload a cover and at least one image before you submit it for review.
PATCH /products/{id}
update permission, member of the product's team
Changes a product right away. Send only the fields you want to change:
name, short_description, description, price,
currency and categories follow the same rules as above.
Set status to pending to submit a draft for review, or to draft
to unpublish it. Submitting fails with 422 while the product still needs a release, a cover,
an image, a team support URL or, for paid products, a payment gateway.
Returns the updated product object in data.
Product object
{
"id": 42,
"name": "My product",
"slug": "my-product",
"status": "published",
"published_at": "2026-01-31T12:00:00.000000Z",
"short_description": "One line about the product",
"description": "The full description, in Markdown",
"price": 9.99,
"currency": "EUR",
"review_count": 12,
"rating_avg": 4.5,
"url": "https://www.sourcexchange.net/products/my-product",
"cover_url": "https://...",
"media": [],
"categories": [{ "id": 2, "name": "Pterodactyl Addon" }],
"team": { "id": 7, "name": "My team", ... }
}
Images
GET /products/{id}/images
Any token, for published products or products you can access
Returns the cover and the gallery images in their display order.
{
"cover": { "id": 300, "file_name": "cover.png", "mime_type": "image/png", "size": 81234, "order": 1, "original_url": "https://..." },
"media": [
{ "id": 301, "file_name": "settings.png", "mime_type": "image/png", "size": 254310, "order": 1, "original_url": "https://..." }
]
}
POST /products/{id}/images
update permission, member of the product's team
Uploads an image. Send the fields as multipart/form-data:
typecoverto replace the cover ormediato add it to the gallery-
imagea.png,.jpgor.webpfile of at most 4 MB for a cover or 10 MB for the gallery. A cover of 1200x628 pixels and gallery images of 1920x1080 pixels are recommended.
A product can have up to 20 gallery images.
curl https://www.sourcexchange.net/api/products/42/images \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Accept: application/json" \ -F type=media \ -F image=@settings.png
Responds with 201 Created:
{
"message": "Image uploaded!",
"image": { "id": 302, "file_name": "settings.png", "mime_type": "image/png", "size": 198004, "order": 2, "original_url": "https://..." }
}
PUT /products/{id}/images/order
update permission, member of the product's team
Sets the order of the gallery. Send ids with the IDs of all gallery images, first image first.
{ "ids": [302, 301] }
DELETE /products/{id}/images/{image_id}
update permission, member of the product's team
Deletes the cover or a gallery image.
Releases
GET /products/{id}/releases
Any token, for published products or products you can access
Lists the product's releases, newest first.
[
{
"id": 128,
"product_id": 42,
"name": "1.2.0",
"stage": "stable",
"changelog": "Fixed the settings page",
"created_at": "2026-01-31T12:00:00.000000Z",
"downloads_count": 311
}
]
POST /products/{id}/releases
create permission, member of the product's team
Publishes a new release. Send the fields as multipart/form-data:
nameup to 30 characters, only letters, digits and_ + . -, for example1.2.0changelogbetween 10 and 4096 charactersstageone ofalpha,betaorstablefilea.zip,.raror.7zarchive of at most 10 MB
curl https://www.sourcexchange.net/api/products/42/releases \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Accept: application/json" \ -F name=1.2.0 \ -F stage=stable \ -F "changelog=Fixed the settings page" \ -F file=@release.zip
Responds with 201 Created:
{
"message": "Release created!",
"release": { "id": 129, "product_id": 42, "name": "1.2.0", "stage": "stable", ... }
}
PATCH /products/{id}/releases/{release_id}
update permission, member of the product's team
Changes the name, changelog or stage of a release, with the same rules
as when publishing it. To replace the file, publish a new release instead.
{
"message": "Release updated!",
"release": { "id": 129, "product_id": 42, "name": "1.2.1", "stage": "stable", ... }
}
DELETE /products/{id}/releases/{release_id}
delete permission, member of the product's team
Deletes a release and its file. Customers can no longer download it.
Reviews
GET /products/{id}/reviews
Any token, for published products or products you can access
Lists the product's reviews, newest first. release is the version that was out when the review
was written.
{
"data": [
{
"id": 77,
"rating": 5,
"body": "Works great and support was quick.",
"release": "1.2.0",
"user": { "id": 1, "name": "Jane Doe", "profile_photo_url": "https://..." },
"created_at": "2026-02-01T18:00:00.000000Z",
"updated_at": "2026-02-01T18:00:00.000000Z"
}
]
}
Users
GET /users/me
read permission
Returns the owner of the token.
{
"data": {
"id": 1,
"name": "Jane Doe",
"email": "jane@example.com",
"profile_photo_url": "https://..."
}
}
GET /users/email?email={email}
read permission
Returns the ID of the user with this email address as a plain number, for example 1.
GET /users/discord?id={discord_id}
read permission
Returns the ID of the user who linked this Discord account as a plain number.
GET /users/{id}/accesses
read permission
Lists which of your teams' products this user has access to. Use it to verify a licence.
payment_remote_id is null when access was granted by hand.
{
"data": [
{ "product_id": 42, "payment_remote_id": "PAYID-ABC123" }
]
}
Payments
GET /payments
read permission
Lists the payments for products of your teams, as a list of
payment objects.
Add ?status=completed to filter by status.
GET /payments/{remote_id}
read permission, owner of the product's team
Returns one payment object by its PayPal or Stripe ID.
GET /products/{id}/payments
read permission, owner of the product's team
Lists all payments for one product.
Payment object
status is one of pending, completed, expired,
error, refund or chargeback.
{
"id": 900,
"user_id": 1,
"product_id": 42,
"remote_id": "PAYID-ABC123",
"price": 9.99,
"fee": null,
"currency": "EUR",
"gateway": "paypal",
"status": "completed",
"payment_gateway_id": 3,
"created_at": "2026-01-31T12:00:00.000000Z",
"updated_at": "2026-01-31T12:00:05.000000Z"
}