API Keys
Generate and manage API keys for programmatic access to FormWork.
API keys allow you to access FormWork programmatically through the REST API. Use them to integrate FormWork with your applications, automate tasks, or build custom solutions.
Creating an API Key
- Go to Account Settings
- Click the API Keys tab
- Click Create API Key
- Enter a name for the key (e.g., “Production Server”)
- Click Create
Important: Copy your API key immediately after creation. For security reasons, the full key is only shown once.
API Key Format
API keys are prefixed with fwk_ followed by a unique identifier:
fwk_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6
Using API Keys
In HTTP Headers
Include your API key in the Authorization header:
curl -H "Authorization: Bearer fwk_your_api_key" \
https://api.formwork.io/api/v1/forms
Authentication Scope
API keys have full access to:
- All forms in the account
- All entries and submissions
- All data tables
- Form management operations
API keys cannot:
- Manage users or permissions
- Access billing information
- Create or delete API keys
Managing API Keys
Viewing Keys
The API Keys tab shows:
- Key name
- Created date
- Last used date
- Partial key (last 4 characters)
Revoking a Key
If a key is compromised or no longer needed:
- Go to API Keys
- Find the key to revoke
- Click Revoke
- Confirm the action
Warning: Revoking a key immediately invalidates it. Any applications using the key will lose access.
Security Best Practices
Key Management
- Name keys descriptively - Indicate where/how each key is used
- Use separate keys - Create different keys for different applications
- Rotate regularly - Replace keys periodically as a security practice
- Revoke unused keys - Remove keys that are no longer needed
Protecting Keys
- Never commit to version control - Use environment variables instead
- Restrict access - Only share keys with those who need them
- Use HTTPS - Always use encrypted connections
- Monitor usage - Check “last used” dates for unexpected activity
Environment Variables
Store API keys in environment variables:
# .env file (don't commit this!)
FORMWORK_API_KEY=fwk_your_api_key
// Node.js example
const apiKey = process.env.FORMWORK_API_KEY;
Rate Limits
API requests are rate limited to ensure fair usage:
| Limit Type | Rate |
|---|---|
| Requests per minute | 100 |
| Requests per hour | 1,000 |
| Requests per day | 10,000 |
When you exceed a limit:
- API returns
429 Too Many Requests Retry-Afterheader indicates when to retry- Implement exponential backoff in your code
API Endpoints
The FormWork API is available at:
https://api.formwork.io/api/v1/
See the REST API Overview for available endpoints.