Skip to content

Authentication

Every request to the Acme API requires authentication. The simplest method is an API key.

  1. Log in to your Acme Dashboard
  2. Navigate to SettingsAPI Keys
  3. Click Create New Key
  4. Copy the key — it will only be shown once
.env
ACME_API_KEY=sk_live_abc123...
const client = new AcmeClient({
apiKey: process.env.ACME_API_KEY,
});
Key PrefixEnvironmentPermissions
sk_live_ProductionFull access
sk_test_SandboxFull access
pk_live_ProductionRead-only
pk_test_SandboxRead-only

For user-scoped operations, use OAuth 2.0 tokens:

const client = new AcmeClient({
accessToken: userToken,
});
PlanRequests/minBurst
Free6010
Pro600100
Enterprise6,0001,000

When you exceed the rate limit, the SDK automatically retries with exponential backoff. You can customize this behavior:

const client = new AcmeClient({
apiKey: process.env.ACME_API_KEY,
maxRetries: 3,
retryDelay: 1000, // ms
});