Skip to content

Authentication

The FloImg API uses API keys for authentication. Each request must include your API key in the Authorization header.

  1. Log in to FloImg Studio Cloud
  2. Go to SettingsAPI Keys
  3. Click Create API Key
  4. Copy and securely store your key (it won’t be shown again)

Include your API key in the Authorization header with the Bearer scheme:

Terminal window
curl https://api.floimg.com/v1/workflows \
-H "Authorization: Bearer fsk_live_abc123xyz789..."

FloImg API keys follow this format:

PrefixEnvironmentExample
fsk_live_Productionfsk_live_abc123xyz789...
fsk_test_Test/Sandboxfsk_test_def456uvw012...

Test keys are rate-limited and don’t consume your plan quota. Use them for development.

We recommend storing your API key in environment variables:

.env
FLOIMG_API_KEY=fsk_live_abc123xyz789...

Then in your code:

const apiKey = process.env.FLOIMG_API_KEY;

When creating an API key, you can scope its permissions:

PermissionDescription
workflows:readList and get workflow details
workflows:executeExecute workflows
storage:readList and download images
storage:writeUpload and delete images
allFull access (default)

To revoke an API key:

  1. Go to SettingsAPI Keys
  2. Find the key to revoke
  3. Click Revoke

Revoked keys immediately stop working. There’s no undo.

Authentication errors return 401 Unauthorized:

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key"
}
}

Common causes:

  • Missing Authorization header
  • Invalid or revoked API key
  • Using a test key in production (or vice versa)
  1. Never expose keys client-side - API calls should go through your backend
  2. Rotate keys periodically - Create new keys and revoke old ones
  3. Use least privilege - Create keys with only the permissions needed
  4. Monitor usage - Check your dashboard for unexpected activity
  5. Use test keys for development - Avoid accidental production usage