Representatives are the users of a customer: the people who handle tickets and configure AnswerPal. These endpoints manage their accounts, roles, active state, passwords and e-mail signatures, always within the customer of the token.
/api/CustomerRepspageNumber (default 1) and pageSize (default 10). Returns items, totalCount and totalPages./api/CustomerReps/assignablecustomerRepID and name./api/CustomerReps/me/api/CustomerReps/{id}/api/CustomerReps/api/CustomerReps/{id}/api/CustomerReps/{id}/api/CustomerReps/{id}/activate/api/CustomerReps/{id}/deactivate/api/CustomerReps/{id}/change-passwordcustomerRepID, currentPassword and newPassword. Users change their own password; an Administrator can call it for anyone but still needs that representative’s current password. Answers 204 No Content, or 401 when the current password is wrong./api/CustomerReps/{id}/signatures/api/CustomerReps/{id}/signatureslang (required), emailSignatureHTML, emailSignatureText./api/CustomerReps/{id}/signatures/{lang}/api/CustomerReps/{id}/signatures/{lang}For the signature endpoints, users other than an Administrator can only use their own {id}; another ID gives 403 Forbidden.
In normal use an Administrator creates representatives with a token. The call also works without a token, but only for one purpose: creating the very first representative of a new customer account, during account setup. That works only while the customer has no representatives at all, and the representative created this way always becomes an Administrator, whatever role is sent. As soon as a customer has one representative, a call without a token is refused with 403 Forbidden.
username (string, required, max 254)UsernameInUse.password (string, required, at least 6 characters)name (string, required, max 100)email (string, required, valid e-mail address, max 254)role (user role, default Agent)phoneNumber (string, max 20, starts with + and has at least 5 digits)timeZone (max 50), locale (max 10), countryCode (max 2)otherDetails, emailSignatureHTML, emailSignatureText (string)When the plan’s user limit is reached the answer is 409 with code UserLimitExceeded.
POST /api/CustomerReps
Authorization: Bearer <token>
Content-Type: application/json
{
"username": "jan.peeters@example.com",
"password": "Welcome-2026",
"name": "Jan Peeters",
"email": "jan.peeters@example.com",
"phoneNumber": "+32470123456",
"timeZone": "Europe/Brussels",
"locale": "nl-BE",
"countryCode": "BE",
"role": "Agent"
} 201 Created
Location: /api/CustomerReps/42
{
"customerRepID": 42,
"username": "jan.peeters@example.com",
"name": "Jan Peeters",
"email": "jan.peeters@example.com",
"phoneNumber": "+32470123456",
"timeZone": "Europe/Brussels",
"locale": "nl-BE",
"countryCode": "BE",
"role": "Agent",
"lastLoginAt": null,
"isActive": true,
"calendarEnabled": false,
"calendarMailbox": null,
"homeBaseAddress": null,
"homeBaseByDay": {}
} 409 Conflict
{
"code": "UsernameInUse",
"message": "This username is already in use. Choose a different username.",
"errors": { "username": ["This username is already in use. Choose a different username."] }
} Returned by the list, me, get and create endpoints.
customerRepID (integer)username, name, email (string)phoneNumber, otherDetails, timeZone, locale, countryCode (string or null)emailSignatureHTML, emailSignatureText (string or null)role (user role, as a name)lastLoginAt (date-time or null), isActive (boolean)calendarEnabled (boolean), calendarMailbox, calendarLastError (string or null), calendarLastErrorAt (date-time or null)homeBaseAddress (string or null), homeBaseByDay (object)0 Sunday to 6 Saturday) an address that replaces it.PUT /api/CustomerReps/{id} replaces the profile: send all fields, not only the changed ones. The username and password cannot be changed here.
customerRepID (integer, required){id}.name (required, max 100), email (required, valid, max 254)phoneNumber, otherDetails, emailSignatureHTML, emailSignatureText, timeZone, locale, countryCoderole (user role)calendarEnabled (boolean or null), calendarMailbox (string or null, valid address, max 254)null keeps the current value; an empty mailbox clears it.homeBaseAddress (string or null, max 400), homeBaseByDay (object or null, keys 0 to 6, values max 400)null keeps the current value; an empty address clears it.role is sent and returned as a name; the number is also accepted on input.
0 RestrictedUser1 Agent2 Supervisor3 Configurator4 Administrator5 AnalystEach endpoint on these pages shows which roles may call it.
200 OK, 201 Created, 204 No Content400 Bad Request401 Unauthorized403 Forbidden404 Not Found409 ConflictUsernameInUse or UserLimitExceeded, with a message.Only the first representative of a new customer account, during account setup; it always becomes an Administrator. After that, an Administrator creates representatives with a token.
The account is deactivated and marked as deleted, and it leaves appointment pools and topic links. Its tickets and history stay. An Administrator can bring it back with the activate endpoint, if the username is still free and the user limit allows it.
Every active representative of the customer that is not deleted. Supervisors and Administrators can read the list.
No. Users other than an Administrator can update their own profile, but a role change from them is ignored.
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