ALACTIC COMMUNICATION 24/7
Developer API reference
The current v1 endpoints, request format, limits and error contract.
Base URL and schema
https://crm-api.alactic.io/api/developer-platform/v1All application responses use JSON except authenticated media downloads. Successful JSON responses use {"success":true,"data":…,"requestId":…}. Errors use {"success":false,"error":{"code":…,"message":…}}, with a request ID when one was allocated.
Endpoints
| Method | Path | Operation | Scope |
|---|---|---|---|
| GET | /numbers | List the number assigned to this key’s project | numbers:read |
| GET | /contacts | List contacts with cursor pagination | contacts:read |
| POST | /contacts | Create or return an existing contact | contacts:write |
| POST | /contacts/{id}/consent | Record existing permission or an opt-out | contacts:write |
| GET | /templates | Read live Meta templates and approval status | templates:read |
| POST | /messages | Send a service-window reply or approved body-text template | messages:write |
| GET | /conversations | List the project inbox | messages:read |
| GET | /conversations/{id}/messages | Read a conversation returned by the inbox | messages:read |
| POST | /acid/chat | Generate an ACID business reply | acid:write |
| GET | /requests/{id} | Inspect an idempotent request without creating another billable call | original operation scope |
| GET | /media | List up to 100 stored media files | media:read |
| POST | /media | Store a PDF or image up to 10 MB | media:write |
| GET | /media/{id}/content | Download an owned media file | media:read |
| DELETE | /media/{id} | Delete a media file and release its storage quota | media:write |
Pagination and number formats
Contacts and templates return items and nextCursor. Pass the cursor as after; do not construct cursors yourself. Supported list limits are 1–100, with a default of 25. Inbox lists use an offset. Media listing currently returns the latest 100 files.
Recipient phone numbers must use E.164, including a leading plus and country code, with no spaces. IDs returned by one project must not be reused under another project’s key.
Sending supported messages
{
"to": "+12025550123",
"type": "template",
"template": {
"name": "order_update",
"language": "en",
"parameters": [
"Alex",
"ORDER-123"
]
},
"transactionContext": "Customer requested an update for ORDER-123."
}Template parameters map to numbered body text variables. The template must be approved on your connected WhatsApp account, and the language must match. Utility templates additionally require a real transaction or customer-request description. The API does not change a promotional message into a utility message.
A text reply uses type: "text" and a text value of at most 4,096 characters. The server requires an inbound message within 24 hours and enforces blocks and withdrawals. Meta continues to make the final delivery decision.
Permission records
{
"granted": true,
"source": "Website checkout checkbox",
"evidence": "Order ORDER-123; consent text version 2",
"occurredAt": "2026-10-22T09:00:00Z",
"confirmed": true,
"renewedPermission": false
}Submit this to a known contact’s consent endpoint. Replace the example with the actual evidence and date. Set granted false for a withdrawal. Renewed permission after an opt-out must be recorded explicitly for that contact; a CSV import or an ordinary inbound message does not automatically override a withdrawal.
ACID chat
{
"messages": [
{
"role": "system",
"content": "You assist Example Studio. Opening hours are Monday\u2013Friday, 9am\u20135pm. Refer pricing questions to the team."
},
{
"role": "user",
"content": "When are you open?"
}
],
"max_tokens": 256
}Use one initial system message for business context, then user and assistant messages, ending with a user message. Provide 2–16 messages, with a combined maximum of 24,000 UTF-8 bytes. The maximum output setting is 16–384 tokens; saved provider policy may apply a lower output maximum. Input includes the business context, retained history and platform instructions actually processed by the model.
Replies return model, text, usage.prompt_tokens, usage.completion_tokens and a pricing version. The endpoint generates text only; it does not send WhatsApp messages or execute business actions.
Media storage
Upload one file as multipart form-data under the file field. Supported file types are PDF, JPEG, PNG and WebP, up to 10 MB each. Content signatures are checked. Free has no media allowance; Pro has 10 GB and Scale has 100 GB of pooled account storage, measured in decimal bytes.
Uploads reserve quota atomically. Downloads require media:read on the owning project. Deletion needs media:write and releases the stored file’s logical size. Storing a file does not itself publish it to Meta or attach it to a template.
Errors and safe retry behaviour
| HTTP | Meaning | Next step |
|---|---|---|
| 400 | Invalid request | Correct the field named in the response. |
| 401 | Invalid or revoked key | Check server-side credentials. |
| 402 | Insufficient balance or cap | Fund the selected wallet or adjust its cap. |
| 403 | Scope or plan restriction | Review scopes and active seats. |
| 409 | Conflicting or pending operation | Inspect the request or current state before retrying. |
| 413 | File or storage limit | Use a supported smaller file or free space. |
| 429 | Rate, monthly or provider capacity limit | Check the error code; wait or change the appropriate allowance. |
| 502 / 503 | Provider or reconciliation problem | Keep the request ID; do not blindly repeat a send. |
The account request-rate limit is 120 requests per minute across its API keys. Invalid authentication is rejected before account metering. Accepted authenticated API operations, including operations that later fail validation or provider checks, count as API calls. Replayed idempotent writes and request-status lookups do not consume an additional billable call.