The Fluid Rep APIs provide endpoints for authenticated Reps (Users) to access their own data and perform actions on their behalf.
The Fluid Rep APIs provide endpoints for authenticated Reps (Users) to access their own data and perform actions on their behalf.
These APIs use User tokens for authentication. User tokens are obtained through:
/api/user_companies/jwt_exchange)/api/user_companies/token_exchange)Unlike Company APIs which use Company API tokens for administrative access, Rep APIs authenticate the individual user and provide access to their personal data, orders, team, and settings.
For Company-level management APIs, see the Company APIs documentation.
curl -i -X GET \ 'https://docs.fluid.app/_mock/docs/apis/rep/api/contacts?filter=string&page=0&per_page=0&search=string' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
[ { "id": 4829, "token": "ct_8f3a2b1c9d7e", "first_name": "Michael", "last_name": "Scott", "full_name": "Michael Scott", "email": "m.scott@dundermifflin.com", "phone": "+1-570-555-0100", "avatar_url": "https://cdn.dundermifflin.com/contacts/michael-scott.jpg", "status": "lead", "lead_type": "organic", "city": "Scranton", "state": "PA" }, { "id": 4830, "token": "ct_2c4d6e8f0a1b", "first_name": "Jim", "last_name": "Halpert", "full_name": "Jim Halpert", "email": "j.halpert@dundermifflin.com", "phone": "+1-570-555-0101", "status": "customer", "city": "Scranton", "state": "PA" }, { "id": 4831, "token": "ct_3d5e7f9a1b2c", "first_name": "Pam", "last_name": "Beesly", "full_name": "Pam Beesly", "email": "p.beesly@dundermifflin.com", "phone": "+1-570-555-0102", "status": "customer", "city": "Scranton", "state": "PA" } ]
curl -i -X POST \ https://docs.fluid.app/_mock/docs/apis/rep/api/contacts \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "first_name": "Stanley", "last_name": "Hudson", "email": "s.hudson@dundermifflin.com", "phone": "+1-570-555-0103", "status": "prospect", "address": "1725 Slough Avenue", "city": "Scranton", "state": "PA", "postal_code": "18505", "reason": "Interested in crossword puzzle paper" }'
{ "id": 4832, "token": "ct_4e6f8a0b2c3d", "first_name": "Stanley", "last_name": "Hudson", "full_name": "Stanley Hudson", "email": "s.hudson@dundermifflin.com", "status": "prospect" }