Skip to main content

Authentication Overview

Waffo Pancake supports two authentication methods for API access:

API Key Authentication

API Keys provide permanent server-to-server authentication using RSA-SHA256 signatures. The private key never leaves your server.

Request Headers

API Key authentication does not require the X-Environment header. Each API Key is bound to either test or prod at creation time. The environment is determined by which key successfully verifies the signature.

Signing Algorithm (Manual Integration)

If you’re not using the SDK, you need to implement RSA-SHA256 request signing:

Manual Signing Examples

Private Key Security
  • Never expose the private key in client-side code
  • Do not commit private keys to version control
  • Store private keys in environment variables
  • Rotate keys regularly, especially after team changes
  • Timestamp must be at most 5 minutes older than server time and at most 1 minute ahead of server time
Keep your server clock NTP-syncedThe accepted timestamp window is asymmetric: from 5 minutes behind server time to 1 minute ahead of it. A clock running fast is the tighter constraint — if your server clock is more than 1 minute ahead, every signed request is rejected with 401 Unauthorized even though the signature itself is correct.

Store Slug Authentication

For public-facing checkout flows, use Store Slug authentication. This allows visitors to create checkout sessions and query public store data without API Key credentials.

Request Headers

Example


Creating API Keys

1

Go to API & Development Page

Navigate to Dashboard → API & Development → API Keys
2

Create API Key

Click “Create API Key” to generate a new RSA key pair. The public key is sent to the server automatically.
3

Name and Configure

Give it a descriptive name (e.g., “Production Server”) and select the target environment (Test or Production).
4

Download Private Key

Download your private key immediately. It will not be shown again.
Deleting an API key is immediate and irreversible. Any requests signed with the deleted key will fail with 401 Unauthorized.

Authentication Method Comparison


Authentication Errors


Security Best Practices

  1. Never expose private keys in client-side code, version control, or public repositories
  2. Use HTTPS for all API requests
  3. Verify Webhook signatures to prevent forged requests
  4. Separate test and production keys — create distinct keys for each environment
  5. Rotate keys regularly, especially after team member changes
  6. Monitor API usage in the Dashboard for unusual activity