Photogestpro

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://www.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://www.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}}.

MethodEndpointDescription
GET/api/v1/meYour seller profile & headline stats
GET/api/v1/itemsYour items (paginated, per_page ≤ 50)
GET/api/v1/items/{id}A single item you own
GET/api/v1/salesYour completed sales (paginated)
GET/api/v1/statsBalance, lifetime earnings, item counts
POST/api/v1/license/verifyVerify a license key for your items

Errors & limits

401Missing, revoked, or invalid API key
404Resource not found (or not owned by you)
422Validation error — check the errors object
429Rate limit exceeded — retry after the Retry-After header
503The API module is disabled by the site administrator