Photogestpro Seller API
A REST API for authors — verify license keys, read your items, sales, and account stats from your own applications.
Authentication
Create an API key under Seller Dashboard → Settings → API Keys. Send it with every request as a bearer token:
curl https://photogestpro.fr/api/v1/me \
-H "Authorization: Bearer sk_live_XXXXXXXXXXXXXXXX" \
-H "Accept: application/json"
Keys are shown once at creation and stored hashed. Requests are rate limited to 60 requests per minute per key. All endpoints return JSON.
Verify a license key
Validate a buyer's purchase code for one of your own items — ideal for license-gated installers and update servers.
POST https://photogestpro.fr/api/v1/license/verify
Content-Type: application/json
{ "license_key": "XXXX-XXXX-XXXX-XXXX" }
Successful response:
{
"data": {
"valid": true,
"license_key": "XXXX-XXXX-XXXX-XXXX",
"license": "regular",
"item": { "id": 12, "title": "Nebula Admin Dashboard" },
"buyer": "John Doe",
"purchased_at": "2026-06-12T09:14:03+00:00",
"support_until": "2026-12-12T09:14:03+00:00"
}
}
Unknown or foreign keys return 404 with {"data": {"valid": false}}.
| Method | Endpoint | Description |
|---|---|---|
GET | /api/v1/me | Your seller profile & headline stats |
GET | /api/v1/items | Your items (paginated, per_page ≤ 50) |
GET | /api/v1/items/{id} | A single item you own |
GET | /api/v1/sales | Your completed sales (paginated) |
GET | /api/v1/stats | Balance, lifetime earnings, item counts |
POST | /api/v1/license/verify | Verify a license key for your items |
Errors & limits
401 | Missing, revoked, or invalid API key |
404 | Resource not found (or not owned by you) |
422 | Validation error — check the errors object |
429 | Rate limit exceeded — retry after the Retry-After header |
503 | The API module is disabled by the site administrator |