Sales reps receive an invitation email when they are added to an organization. They log in through your organization’s identity provider and receive a scoped JWT that limits data access to their assigned customers.
GET /api/salesreps/organizations
Returns the list of organizations that the currently authenticated sales rep is assigned to. The rep’s identity is resolved automatically from theUserId JWT claim — you do not pass a user ID in the request.
Security: Admin policy
Route: GET https://api.achievemomentum.com/api/salesreps/organizations
Response
Array of organization assignments for the sales rep.
Example response
curl example
GET /api/organizations/salesreps
Returns a paginated list of all sales reps assigned to the authenticated administrator’s organization. Security: Admin policyQuery parameters
Page number for pagination. Defaults to
1.Number of results per page. Defaults to
25.Field to sort results by. Defaults to
RepNumber.Sort direction. Accepts
asc or desc. Defaults to asc.Response
Returns an array of sales rep records.Unique identifier of the organization.
Unique identifier for this rep–organization assignment.
Unique identifier of the sales rep record.
Sales rep’s first name.
Sales rep’s last name.
Sales rep’s email address.
Sales rep’s phone number.
The rep’s representative number within the organization.
Whether the sales rep is currently active in the organization.
Example response
curl example
PUT /api/organizations/salesreps
Creates a new sales rep and assigns them to your organization. If a sales rep with the given email already exists in the system, the existing rep record is reused and they are simply added to the organization. A welcome email is automatically sent to the rep with login instructions. Security: Admin policyRequest body
Sales rep’s first name.
Sales rep’s last name.
Sales rep’s email address. Used as the login identifier.
Sales rep’s phone number.
Representative number to assign within the organization (e.g.
REP-001).Roles to assign. Typically includes
SalesRep.Response
The organization the rep was added to.
Display name of the organization.
Unique identifier for this rep–organization assignment.
Unique identifier of the sales rep record.
Sales rep’s first name.
Sales rep’s last name.
Sales rep’s email address.
Sales rep’s phone number.
The assigned representative number.
The identity provider used (e.g.
IdP).The identity provider’s user identifier for this rep.
Example request
curl example
PATCH /api/organizations/salesreps
Updates a sales rep’s representative number within the organization. Security: Admin policyRequest body
The unique identifier of the rep–organization assignment to update.
The new representative number to assign.
Response
The organization the rep belongs to.
Unique identifier for the rep–organization assignment.
Unique identifier of the sales rep record.
The updated representative number.
Sales rep’s first name.
Sales rep’s last name.
Sales rep’s email address.
true if the update succeeded.curl example
POST /api/organizations/salesreps/activate
Reactivates a previously deactivated sales rep within your organization. The rep’s identity provider access and data sync permissions are restored, and they receive a re-invitation email. Security: Admin policyRequest body
The unique identifier of the rep–organization assignment to activate.
Response
Returns200 OK with no body on success.
curl example
POST /api/organizations/salesreps/deactivate
Deactivates a sales rep within your organization. Their login access and data sync permissions are revoked, but their record is preserved. You can reactivate them at any time. Security: Admin policyRequest body
The unique identifier of the rep–organization assignment to deactivate.
Response
Returns200 OK with no body on success.
curl example
DELETE /api/organizations/salesreps
Permanently removes a sales rep from your organization. If the rep belongs to other organizations, only their access to your organization is revoked. If this is their only organization, their account is fully deleted from the identity provider and data sync system. Security: Admin policyRequest body
The unique identifier of the rep–organization assignment to delete.
Response
true if the deletion succeeded.curl example