To access protected AnswerPal API endpoints, use JWT Bearer authentication. First request a token with POST /api/Auth/login, then send that token in the Authorization header on each request.
Most API endpoints expect an Authorization: Bearer <accessToken> header. Login and password-reset endpoints are public so you can request or recover a token. See the Auth endpoint page for current request and response fields.
POST /api/Auth/login.Authorization header with Bearer <accessToken>.POST /api/Auth/login HTTP/1.1\nHost: api.answerpal.eu\nContent-Type: application/json\n\n{\n "email": "user@example.com",\n "password": "••••••••"\n}\n\nGET /api/Customers/me HTTP/1.1\nHost: api.answerpal.eu\nAuthorization: Bearer <accessToken>\nThe API call was made without valid credentials or with an expired/invalid token. Solution: Check your Authorization header and ensure your token or credentials are correct and not expired.
The credentials are valid but lack permission to access the requested resource. Solution: Contact your admin or support to verify your access rights.
JWT tokens are time-limited. If you receive a token expiry error, re-authenticate to obtain a new token.
Check the login request for /api/Auth/login and request a new token if the current token has expired or was revoked.
Check that your API requests include the Authorization header in the correct format.
Requests over HTTP (instead of HTTPS) will be rejected for security reasons.
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