Get started
API keys and scopes
Keys look like sk_sceniq_.... Send one with every request:
Authorization: Bearer sk_sceniq_YOUR_KEYX-Api-Key: sk_sceniq_YOUR_KEY works too. A missing key answers 401 unauthenticated; an unknown, revoked or expired key answers 401 invalid_api_key.
One key, one creator
A key is bound to the creator who made it. It reaches that creator's guides and profile and nothing else: not the store, not buyers, not other creators. An id that belongs to someone else answers 404 not_found, exactly like an id that does not exist, so ids never reveal what exists.
Scopes
| Scope | Can | Typical use |
|---|---|---|
read | Every read operation (GET). Every key has it. | Reports, checks, link health. |
write | Everything read can, plus every write: guide content, photos (uploads, and Wikimedia Commons photos), saving and discarding the draft, the sales pages' drafts, a guide's languages, turning them live, their translations and their versions of sales page pictures (in a language that is already live too), the price (once the creator has accepted the creator agreement), the buyer and user counts, the profile with its page and notification emails, and a service while it is off. Lookups (places, map links, route files) need it too, since they count against a limit. | Agents building and editing guides. |
publish | Everything write can, plus whatever goes live at once: publish_changes, publish_guide, the sales pages (publish_sales_page and the rest), set_guide_visibility, set_guide_preview, set_guide_free, archiving, A/B tests, set_service_enabled and edits to a service that is on, set_profile_on_google. Only together with read and write. | An agent that may put things live when the creator asks. |
In the studio, the New key dialog shows the scopes as three boxes: Read is always ticked, Write starts ticked, and ticking Publish ticks Write too. whoami answers with the scopes of the key it is called with.
A write with a read-only key, or an operation that needs the publish scope without it, answers 403 api_scope_required. Each operation's page shows the scope it needs.
What stays with the creator
No key can do these, whatever its scope. They answer 403 api_key_not_allowed if a function behind them is ever reached with a key:
- deleting a guide,
- removing a language a guide is offered in, which deletes its translations (an agent may add one, write its translations, turn it live and set a sales page picture's version from a file the creator gives it, see Translate a guide),
- approving a store listing (an agent may request the review),
- tax, affiliate and pricing model settings, the creator's currency and gift links,
- accepting the creator agreement and the legal details (a creator who never accepted it gets
409 agreement_outdatedon price changes and publishes; a newer version applies on its own after its emailed notice and never causes it), - sales and buyers, payouts, Stripe Connect, the Instagram and ManyChat connections, turning Reel replies on or off, the sign-in and the account itself,
- making and revoking keys.
get_guide_readiness lists the steps left before buyers see a guide in handoff, with their studio links.
Keeping keys safe
- Keep the key in an environment variable or your agent's secret store. Never paste it into a prompt, a chat or a repository.
- Give each agent its own key with a name you recognise, so you can revoke one without the others.
- Set an expiry for short jobs. Revoke a key in the studio the moment you stop using it.
- Every write through a key is marked on the guide, and the store review team sees it.