Team Members — Examples
Replace {enterpriseId} with your enterprise ID and YOUR_SYNC_TOKEN with a valid Sync token.
Invite a new team member (no password)
The member receives an invitation email and must accept before they can log in. Their initial status is INVITED.
bash
curl -X POST "https://next.telecrm.in/autoupdate/v2/enterprise/{enterpriseId}/team-members" \
-H "Authorization: Bearer YOUR_SYNC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "John Doe",
"email": "john.doe@example.com",
"phone_number": "919876543210",
"role": "CALLER"
}'Create a team member with an immediate password
Useful for SCIM-style provisioning where the password is generated by your IdP. The member can log in immediately.
bash
curl -X POST "https://next.telecrm.in/autoupdate/v2/enterprise/{enterpriseId}/team-members" \
-H "Authorization: Bearer YOUR_SYNC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "John Doe",
"email": "john.doe@example.com",
"phone_number": "919876543210",
"role": "MANAGER",
"password": "TempPass!Reset@FirstLogin"
}'Toggle availability between Working and On Leave
Mark someone as on leave:
bash
curl -X POST "https://next.telecrm.in/autoupdate/v2/enterprise/{enterpriseId}/teammember/state_change" \
-H "Authorization: Bearer YOUR_SYNC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"state": "On Leave",
"email": "jane.doe@example.com"
}'Bring them back:
bash
curl -X POST "https://next.telecrm.in/autoupdate/v2/enterprise/{enterpriseId}/teammember/state_change" \
-H "Authorization: Bearer YOUR_SYNC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"state": "Working",
"email": "jane.doe@example.com"
}'List active members, then look one up by email
bash
curl "https://next.telecrm.in/autoupdate/v2/enterprise/{enterpriseId}/team-members?limit=10" \
-H "Authorization: Bearer YOUR_SYNC_TOKEN"bash
curl "https://next.telecrm.in/autoupdate/v2/enterprise/{enterpriseId}/team-members/jane.doe@example.com" \
-H "Authorization: Bearer YOUR_SYNC_TOKEN"The single-member endpoint returns the same shape as one entry in the list response.
Include deleted members in a list
By default, deleted members are filtered out. Pass includeDeleted=true to see the full set:
bash
curl "https://next.telecrm.in/autoupdate/v2/enterprise/{enterpriseId}/team-members?includeDeleted=true&limit=10" \
-H "Authorization: Bearer YOUR_SYNC_TOKEN"