Skip to content

API Keys

API keys authenticate your server-to-server requests to the Public API at api.siliconwit.io.

  • Paid plan required (Starter, Business, Scale, or Enterprise)
  • Free plan users cannot create API keys
  • Maximum 5 active keys per account
  1. Go to Dashboard → Settings
  2. Scroll to the API Keys section
  3. Click Create API Key
  4. Enter a descriptive name (e.g., “Production Server”, “CI Pipeline”)
  5. Copy the full key immediately

API keys use the prefix swk_ followed by 24 base62 characters (28 characters total):

swk_AbCdEfGhIjKlMnOpQrStUvWx

In your dashboard, keys are displayed by their prefix only (first 8 characters) for identification.

Include your API key as a Bearer token in the Authorization header:

Terminal window
curl https://api.siliconwit.io/v1/devices \
-H "Authorization: Bearer swk_your_full_key_here"

See the Public API Reference for all available endpoints.

From Dashboard → Settings → API Keys, you can:

ActionDescription
CreateGenerate a new key (up to 5 active)
RenameChange a key’s display name
RevokePermanently disable a key

Revoked keys cannot be re-activated. Create a new key instead.

Keys are stored as SHA-256 hashes in the database. The platform never stores your full key — only you have it.

All your API keys are automatically revoked if:

  • Your account is suspended by an administrator
  • Your paid plan expires (after the 7-day warning period)
  • Your subscription is cancelled (e.g., via Paystack)
  • An admin downgrades your plan to Free

After revocation, any API requests using those keys will return 401 Unauthorized. If you upgrade again, you will need to create new API keys.

See Account Setup - What Happens on Downgrade for full details.

  • Use separate keys for different environments (dev, staging, production)
  • Rotate keys periodically
  • Revoke keys immediately if compromised
  • Never commit keys to source control — use environment variables
  • Never expose keys in client-side code
StatusMeaning
401Missing or invalid API key
403Account suspended or on free plan