To access the AnswerPal API, you need to authenticate every request. AnswerPal uses HTTP Basic Authentication, allowing you to securely access API endpoints using the same credentials you use to log in to the AnswerPal dashboard.
HTTP Basic Authentication is a simple authentication scheme built into the HTTP protocol. To authenticate, you send your AnswerPal dashboard username and password in the HTTP Authorization header of your API requests.
username:password
Authorization
header to your API request with the value: Basic <base64-encoded string>
GET /api/Customers/me HTTP/1.1
Host: api.answerpal.com
Authorization: Basic ZGVtbzpwYXNzd29yZA==
Replace ZGVtbzpwYXNzd29yZA== with your own base64-encoded username:password string.
The 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.
Ensure you are using the correct username and password for your AnswerPal dashboard. If you have recently changed your password, update it in your API client as well.
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