Skip to main content

API Keys

Generate API keys from your dashboard settings. You can create multiple keys with different permissions.

Using API Keys

Include your API key in the Authorization header:
curl https://spike.ac/api/forms \
  -H "Authorization: Bearer sk_live_abc123..."

Key Types

TypePrefixUse Case
Livesk_live_Production API calls
Testsk_test_Development/testing

Form-Level API Keys

For granular access, create form-specific API keys that only allow access to a single form’s submissions.
# Form-level key only works for that form
curl https://spike.ac/api/forms/FORM_ID/submissions \
  -H "Authorization: Bearer fk_abc123..."

Permissions

API keys can have different permission levels:
PermissionDescription
readRead submissions and form data
writeCreate and update forms
deleteDelete forms and submissions
adminFull access including billing

Security Best Practices

Never expose API keys in client-side code. Use server-side requests or environment variables.
  • Rotate keys periodically
  • Use form-level keys when possible
  • Set minimum required permissions
  • Monitor key usage in dashboard