These recommendations follow from how the AnswerPal API actually behaves: how tokens expire, how access follows roles, which calls are safe to repeat and which errors you can retry. Use them as a checklist when you build or review an integration.
401 Unauthorized, and repeat that call once.Authorization header or put a token in a URL.
Always use HTTPS for all API requests.

Keep passwords and tokens out of source code, logs and URLs.

Tokens expire after 12 hours. Sign in again; there is no refresh endpoint.

Access follows the role of the account. Give the integration account the lowest role it needs.
There are no scoped API tokens: a token can do exactly what the role of its account allows, for the one customer in the token. Choose the lowest role that covers the endpoints you call; each endpoint page shows the allowed roles. Endpoints of subscription features, such as mailings, also answer 403 Forbidden when the customer’s subscription does not include the feature.
pageNumber (starting at 1) and pageSize. Some cap the page size (for example 100 for hook actions and topic channels, 200 for mailing lists), others take the value you send. Ask for moderate pages, such as 50 or 100, and follow the totals in the answer.sortBy and sortOrder, an unknown sortBy gives 400 Bad Request with the code InvalidSortProperty.POST endpoints have no idempotency key. If a create times out, read the list first to see whether it was created before you send it again.Idempotency-Key header; file uploads and replacements require it. Reusing a key for a different request gives 409 Conflict with the code idempotency_key_conflict.502 Bad Gateway with a code ending in SendUncertain, the provider may have sent it. Do not resend blindly; check the ticket first.GET calls change nothing and are safe to repeat.400 Bad Request401 and 403409 Conflictcode when there is one. Some conflicts are permanent until something changes, such as StorageLimitExceeded or UserLimitExceeded; others, such as a record changed by someone else, need a fresh read first.429 Too Many RequestsRetry-After header before you try again.5xx502, 503 and 504 a few times with growing pauses. For a 500, keep the traceId from the body and mention it when you contact support.Error Codes describes every error shape; Rate Limits lists where 429 and 413 can occur.
Some links work without signing in because the token in the link is the credential, for example file and photo links (/api/File/{accessToken}, /api/PlaceDescriptionPhotos/{accessToken}), unsubscribe links and the feedback and escalation links in replies. Anyone who has such a link can use it. Do not log these URLs, do not post them in shared places, and pass them on only to the person they are meant for.
Settings on the customer, on actions, documents and channels can hold credentials that AnswerPal uses to call other systems: the API password for your own systems, mailbox passwords, a Microsoft Graph client secret or an OpenAI key. They are only used by AnswerPal for those outgoing calls.
has). Only the phone runtime, with a phone token, can read the keys it needs for a call.clear... flag.There is one version of the API and no version number in the URL. Write tolerant clients: ignore response properties you do not know, do not depend on the order of properties, and send only the fields an endpoint documents.
There is no separate sandbox API; every call works on real data of the customer in the token. Test with test data and with channels and addresses that do not reach real people.
No. Access follows the role of the account. Create an account with the lowest role that works for your integration.
Signed-in calls have no request-per-minute limit, but do not poll in tight loops. Rate Limits lists the limits that do exist.
AnswerPal: AI-powered customer service solutions to elevate your support and communication effortlessly.
For all support, sales, and partnership inquiries, email us at info@answerpal.eu
AnswerPal
Bisschoppenhoflaan 380
2100 Antwerp
Belgium
+32.36416685
BE 0862.692.858