Free setup on annual plans

Sign up today!

Representatives

API Reference: Representatives endpoints

The Representatives API manages customer representative accounts, assignment eligibility, activation/deactivation, password changes and language-specific signatures.

Overview

Representatives are the users who handle tickets and configure AnswerPal. Access is scoped by role: administrators can manage users, while non-admin users can update only their own profile and cannot change their role.

Current endpoints

Representative endpoints

MethodPathAccessPurpose
GET/api/CustomerRepsManageUsersReturn paginated representatives. Optional query: pageNumber, pageSize.
GET/api/CustomerReps/assignableAdministrator/SupervisorReturn representatives that can receive assignments.
GET/api/CustomerReps/meBearer JWTReturn current representative profile.
GET/api/CustomerReps/{id}ManageUsersReturn one representative in the authenticated customer.
POST/api/CustomerRepsConditional accessCreate a representative; anonymous bootstrap is only allowed for first-user setup.
PUT/api/CustomerReps/{id}Bearer JWTUpdate a representative. Non-admins can update only themselves and cannot change role.
DELETE/api/CustomerReps/{id}ManageUsersDelete a representative.

Lifecycle endpoints

MethodPathAccessPurpose
POST/api/CustomerReps/{id}/activateManageUsersActivate a representative; user limit conflicts return UserLimitExceeded.
POST/api/CustomerReps/{id}/deactivateManageUsersDeactivate a representative.
PUT/api/CustomerReps/{id}/change-passwordBearer JWTChange a password for self or, as admin, another representative in the same customer.

Signature endpoints

MethodPathAccessPurpose
GET/api/CustomerReps/{id}/signaturesBearer JWTList representative signatures.
POST/api/CustomerReps/{id}/signaturesBearer JWTCreate or update a language-specific signature.
GET/api/CustomerReps/{id}/signatures/{lang}Bearer JWTRead one language-specific signature.
DELETE/api/CustomerReps/{id}/signatures/{lang}Bearer JWTDelete one language-specific signature.

Fields and DTOs

DTO structure

UserRole enum values

The role field uses the backend UserRole enum. The API serializes enum values as strings; numeric values are shown here because the backend, database and frontend mirror the same ordering.

AreaFieldsNotes
0RestrictedUserCan only see and act on tickets assigned to them.
1AgentCan work on their own tickets and unassigned tickets.
2SupervisorCan work on all tickets for their customer and view reports, but cannot manage settings or users.
3ConfiguratorCan manage functional settings such as topics, hooks, channels, models and translations, but cannot manage users or billing.
4AdministratorFull access, including user and role management, billing visibility, settings and reports.
5AnalystRead-only access to reporting dashboards; no ticket or settings access.

Role-policy highlights

Representative roles are also used by named authorization policies.

AreaFieldsNotes
TicketAccessRestrictedUser, Agent, Supervisor, Configurator, AdministratorAnalyst is excluded from ticket operations.
ManageSettingsConfigurator, AdministratorAllows settings changes such as channels, topics, hooks, models and translations.
ManageUsersAdministratorRequired for representative user management endpoints.
ViewReportsSupervisor, Configurator, Administrator, AnalystUsed by reporting endpoints such as storage and cost reports.
ViewBillingAdministratorBilling visibility is admin-only.
ImportEmailsAgent, Supervisor, Configurator, AdministratorUsed for email import capability.

CustomerRepCreateDTO, CustomerRepUpdateDTO and CustomerRepReadDTO

Representative user profile and role payloads.

AreaFieldsNotes
Create credentialsusername, passwordRequired on create. Username max 254; password minimum 6.
IdentitycustomerRepID, usernamecustomerRepID is returned on read and required on update/password change.
Profilename, email, phoneNumber, otherDetailsEmail must be valid; phone number must start with + and contain at least 5 digits when supplied.
LocalizationtimeZone, locale, countryCodeOptional localization values.
Role and staterole, isActiverole uses the UserRole enum above. Non-admin users cannot change their own role.
Legacy/default signaturesemailSignatureHTML, emailSignatureTextRepresentative-level signature content. Language-specific signatures have dedicated endpoints.

CustomerRepSignatureCreateOrUpdateDTO and password bodies

Small request bodies for representative subresources.

AreaFieldsNotes
Signaturelang, emailSignatureHTML, emailSignatureTextlang is also the route parameter for read/delete.
Password changecustomerRepID, currentPassword, newPasswordAdmins can change another representative in the same customer; users can change their own password.

Access and errors

Protected endpoints use JWT Bearer authentication and remain scoped to the authenticated customer.

Table of Contents

AnswerPal: AI-powered customer service solutions to elevate your support and communication effortlessly.

Contact

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