Authentication
Every request carries a token bound to one merchant:
Authorization: Bearer <token>Create a token
Section titled “Create a token”- Sign in to SCAYLE STUDIOS as your merchant’s owner.
- Open the menu under your avatar and choose Dashboard.
- Open API & Webhooks in the sidebar and create a key on the API Keys tab. It is shown once.
Create one key per system, so you can revoke one integration alone. No API & Webhooks entry means the API is not enabled for you yet: ask us.
Keep it safe
Section titled “Keep it safe”- Read it from a secret manager or a
0600file, never from source code. - Use it server to server only, never in a browser or an app.
- Scrub the
Authorizationheader from your logs. - If it leaks, revoke it on the API Keys tab and create a new one.
Watch the expiry
Section titled “Watch the expiry”GET /me returns the token’s merchant and expires_at. Alert on it: nothing
works once it lapses.
curl -sS -H "Authorization: Bearer $TOKEN" "$BASE/me" | jq{ "merchant": { "id": "3f1c...", "name": "Example Fashion Group" }, "token": { "issued_at": "2026-01-31T09:00:00.113Z", "expires_at": "2027-01-31T23:59:59.409Z" }}A 401 means the token is missing, unknown, expired or revoked; do not retry
it. A 404 also covers another merchant’s resource.