Issue an API key
In the site’s CMS, open API Keys and create a key. Give it only the
scopes your app needs, and pick its signing mode:
- Token only: the key alone authenticates. Use this to try calls in the API reference’s playground.
- Signed writes or every request signed: the key also has a signing
secret (
fss_…). The SDKs sign each request for you; to sign by hand, see Signing requests.
fsk_<site>_<key id>_<secret>. Keep it in
your app’s secrets, never in its code.Install an SDK and point it at the site
The key you just made also installs the SDK from your site.
- Laravel
- TypeScript
Your own site serves the SDK, and any API key from it lets you in. In a terminal, in your Laravel
app’s folder, run:The first line tells Composer the SDK comes from your site (it’s saved in Then point the SDK at the site:It asks for the site’s slug, URL, key and signing secret, writes them to
Terminal
composer.json). The second
saves your key in the app’s auth.json. The third installs the SDK, and the API client it uses, from
your site. Put your site’s address in the first two lines (set your site in the bar under this page’s
title and the example shows it), and paste your whole key in place of fsk_acme_….Any API key from your site works, the same one your app uses included: its scopes and signing
mode don’t matter for installing, only that it’s switched on and not past its expiry date. No key
yet? Make one in the CMS under API Keys (Authentication).
Terminal
.env, and checks
the site answers.Make your first call
Nothing to catch: the SDKs sign, retry what is safe, and check every
answer against its type before your code sees it.
Next steps
Laravel SDK
The facade, fakes and Action scaffolding.
TypeScript SDK
One client, typed models,
fakeSite().Authentication
Scopes, signing and rate limits.