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
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
integer
default:"1"
Page number for pagination. Defaults to
1.integer
default:"25"
Number of results per page. Defaults to
25.string
default:"RepNumber"
Field to sort results by. Defaults to
RepNumber.string
default:"asc"
Sort direction. Accepts
asc or desc. Defaults to asc.Response
Returns an array of sales rep records.string
Unique identifier of the organization.
string
Unique identifier for this rep–organization assignment.
string
Unique identifier of the sales rep record.
string
Sales rep’s first name.
string
Sales rep’s last name.
string
Sales rep’s email address.
string
Sales rep’s phone number.
string
The rep’s representative number within the organization.
boolean
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
string
required
Sales rep’s first name.
string
required
Sales rep’s last name.
string
required
Sales rep’s email address. Used as the login identifier.
string
Sales rep’s phone number.
string
required
Representative number to assign within the organization (e.g.
REP-001).string[]
Roles to assign. Typically includes
SalesRep.Response
string
The organization the rep was added to.
string
Display name of the organization.
string
Unique identifier for this rep–organization assignment.
string
Unique identifier of the sales rep record.
string
Sales rep’s first name.
string
Sales rep’s last name.
string
Sales rep’s email address.
string
Sales rep’s phone number.
string
The assigned representative number.
string
The identity provider used (e.g.
IdP).string
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
string
required
The unique identifier of the rep–organization assignment to update.
string
required
The new representative number to assign.
Response
string
The organization the rep belongs to.
string
Unique identifier for the rep–organization assignment.
string
Unique identifier of the sales rep record.
string
The updated representative number.
string
Sales rep’s first name.
string
Sales rep’s last name.
string
Sales rep’s email address.
boolean
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
string
required
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
string
required
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
string
required
The unique identifier of the rep–organization assignment to delete.
Response
boolean
true if the deletion succeeded.curl example