Skip to content

Authentication

Every request carries a token bound to one merchant:

Authorization: Bearer <token>
  1. Sign in to SCAYLE STUDIOS as your merchant’s owner.
  2. Open the menu under your avatar and choose Dashboard.
  3. 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.

  • Read it from a secret manager or a 0600 file, never from source code.
  • Use it server to server only, never in a browser or an app.
  • Scrub the Authorization header from your logs.
  • If it leaks, revoke it on the API Keys tab and create a new one.

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.