acme-api

Send your first request

Make your first authenticated call to the Acme API in under 2 minutes.

Install the SDK

Add the Acme SDK to your project using your preferred package manager.

Bash
npm install @acme/sdk

Initialize the client

Import the SDK and instantiate the client using your API key from the environment.

JavaScript
import { AcmeClient } from '@acme/sdk';
 
// Reads ACME_API_KEY from your environment at runtime
const acme = new AcmeClient({
  apiKey: process.env.ACME_API_KEY, // e.g. acme_live_sk_a8f3b9c2d1e4f7a0b5c8
});

Send a test request

Call acme.messages.send() with a minimal payload to verify your credentials and see a live response.

JavaScript
async function sendTestMessage() {
  const response = await acme.messages.send({
    to: 'ada@example.com',
    from: 'hello@yourapp.com',
    subject: 'Hello from Acme',
    body: 'This is my first message sent via the Acme API.',
  });
 
  console.log('Message sent! ID:', response.message.id);
}
 
sendTestMessage();

Now that you've sent your first request, explore the full API reference or set up webhooks to receive delivery events.

Stuck? Join our Discord or email support@acme.dev — we usually reply in under an hour.