Skip to content
New Describe an automation in plain words, and AI builds it for you.
Developers

API keys and authentication

How the API key works, how to send it, keep it safe and replace it.

4 min read Admin

Every API request must carry your workspace's API key. The key decides which workspace the request acts on, so data from one workspace can never be reached with another workspace's key.

The rules

One active key per workspace
To get a new key, revoke the current one first.
Shown once
You see the full key only when you create it. Flowleb stores a hash, not the key.
Starts with wsk_
Easy to spot in your settings and in secret scanners.
Acts as the person who created it
Requests run as that person in that workspace.
Revoking is instant
The moment you click Revoke, every app using the key stops working.
Who can manage keys
Workspace owners and admins.

Send the key with every request

Use the Authorization header (recommended). If your tool can't set it, the X-Api-Key header works too.

Header
curl https://flowleb.com/api/v1/me \
  -H "Authorization: Bearer wsk_your_key"

Keep it safe

DoDon't
Where it lives In an environment variable or secrets manager on your server In website JavaScript, a mobile app, or a file in Git
Who sees it Only the people who run the server Shared in chat, email or support tickets
If it leaks Revoke it straight away and create a new one Wait and hope

Replace (rotate) a key

  1. Get ready

    Have the place where your app reads the key open (for example your hosting dashboard's environment settings).

  2. Revoke the old key

    Click Revoke next to it. Apps using it stop working from this moment.

    Developer REST API

  3. Create the new key

    Create a key and copy it.

  4. Update your app

    Paste the new key into your app's settings and restart it if needed. Then call GET /me to check it works.

When the key is missing or wrong

Response 401 Unauthorized
{
  "error": {
    "code": "invalid_api_key",
    "message": "The API key is missing, revoked or expired."
  }
}
missing_api_key
No key was sent. Check the header name and that your code actually adds it.
invalid_api_key
The key is wrong, revoked or expired, or the person who created it no longer exists.

Still stuck? Ask the team, a person replies by email.