API Key Management
Soku provides API keys that let you access the Public API programmatically. You can generate, view, and revoke API keys from the API Key Management page at /settings/api.Accessing API Key Management
- Log in to your Soku dashboard at mysoku.io.
- Go to Settings in the main sidebar.
- Click the API tab (or navigate directly to /settings/api).
Generating a New API Key
- On the API Key Management page, click Generate New Key.
- Give your key a descriptive name (for example, “Production Server” or “Zapier Integration”).
- Click Create.
- Your new API key is displayed on screen.
Key Format
Soku API keys follow this format:sk_live_ prefix, followed by a unique string of characters.
How Keys Are Stored
For security, Soku does not store your API key in plain text. When you create a key, the raw key is shown to you once, and then a SHA-256 hash of the key is stored on our servers. This means:- Soku can verify your key when you use it, but cannot retrieve the original key.
- If you lose your key, you must revoke it and generate a new one.
- Your key cannot be exposed even if our database were compromised.
Viewing Your Keys
The API Key Management page shows a list of all your active API keys, including:Copying a Key
When you first generate a key, a Copy button is available next to the displayed key. Click it to copy the full key to your clipboard. After you leave the page or refresh, the full key is no longer available. Only the preview (first and last characters) is shown.Revoking a Key
If a key is compromised or no longer needed:- Go to Settings > API.
- Find the key in your list.
- Click Revoke.
- Confirm the revocation.
401 Unauthorized response.
Using Your API Key
Include your API key in theAuthorization header of every API request:
Best Practices
Troubleshooting
For more API troubleshooting, see API Troubleshooting.