Skip to content

Quickstart

Create an API key and make your first authenticated request in minutes.

Quickstart#

Follow these steps to send your first request to the Acme Messaging API.

1. Create an API key#

Open developer settings and create a secret API key. Store it in an environment variable:

export ACME_API_KEY=sk_live_...

2. Call the REST API#

curl https://api.acme.dev/v1/contacts \
  -H "Authorization: Bearer $ACME_API_KEY" \
  -H "Accept: application/json"

3. Or use the TypeScript SDK#

pnpm add @acme/client
import { createClient } from "@acme/client";

const client = createClient({ apiKey: process.env.ACME_API_KEY! });
const contacts = await client.users.list();
console.log(contacts);

Next steps#