← All guides

ALACTIC COMMUNICATION 24/7

Make your first API call

Create a project, store a scoped key on your server and make a controlled first request.

Open a developer account

Sign in at dev.alactic.io. Verify your account, choose Open developer account, then create an API project. Choose a project name that identifies the integration. Free includes one number slot and 1,000 monthly API calls.

Use a dedicated test number for end-to-end development. Alactic does not silently migrate a number already connected to another workspace.

Issue a scoped key

Open API keys, select your project and choose numbers:read. Give the key a useful name such as “Staging integration”. Copy the secret immediately: it is shown once. Store it in a backend environment variable or secret store. Never embed it in browser JavaScript, a mobile application bundle or a public repository.

Read your project number

export ALACTIC_API_KEY="your-server-side-key"
export ALACTIC_API_BASE="https://crm-api.alactic.io/api/developer-platform/v1"
curl "$ALACTIC_API_BASE/numbers" \
  -H "Authorization: Bearer $ALACTIC_API_KEY"

The response contains only your key’s project. An unconnected project returns a disconnected state; no real number is created by this read operation.

Create a contact safely

curl "$ALACTIC_API_BASE/contacts" \
  -H "Authorization: Bearer $ALACTIC_API_KEY" \
  -H "Idempotency-Key: example-contact-0001" \
  -H "Content-Type: application/json" \
  -d '{"name":"Example customer","phone":"+12025550123"}'

This request needs contacts:write. The example number is fictional. Creating a contact does not set marketing permission. Record permission separately, with its actual source, evidence and date.

Verify your receiver

Add a public HTTPS endpoint in Webhooks and store its signing secret. Subscribe to the event types your integration needs. Send a test event from the portal, verify the signature on the raw request bytes, and return a 2xx response after you have durably accepted the event.

Read the webhook implementation guide before consuming real customer events.

Connect and test one message

Open the project workspace, choose Connection and finish Meta signup. When the number is connected, use an authorized test recipient. A normal text reply needs a recent inbound message verified by the server. A business-initiated template needs current recorded permission and a template approved for that account and language.

Inspect the request ID and webhook delivery status. “Accepted” means Meta accepted the send request. It does not promise that a handset received the message.

Retry without duplicating an action

Generate a new idempotency key for each intended write. If the network fails, reuse that same key with identical details. Do not generate a new key merely because the response was slow. Check GET /requests/{id} for the recorded outcome. An uncertain external send is not replayed automatically.

Idempotency records last for your plan’s log period. Never retry an old write after its record has expired without independently confirming the original outcome.