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.
Returns the profile and settings for the currently authenticated user.
This endpoint requires a User token obtained through:
/api/user_companies/jwt_exchange)The response includes the user's profile information, company association, and various settings like notification preferences.
curl -i -X GET \ https://docs.fluid.app/_mock/docs/apis/rep/api/me \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "id": 1847, "email": "d.schrute@dundermifflin.com", "first_name": "Dwight", "last_name": "Schrute", "full_name": "Dwight Schrute", "phone": "+1-570-555-0142", "bio": "Assistant to the Regional Manager. Beet farmer. Volunteer Sheriff's Deputy.", "image_url": "https://cdn.dundermifflin.com/avatars/dwight-schrute.jpg", "language": "en", "time_zone": "America/New_York", "share_link": "https://shop.dundermifflin.com/dwight", "mysite_url": "https://dwight.dundermifflin.com", "affiliate_shop_url": "https://shop.dundermifflin.com/dwight", "affiliate_id": "SCHRUTE2023", "role": "rep", "active": true, "rank": { "id": 5, "name": "Assistant Regional Manager", "external_id": "ARM" }, "total_points": 15000, "fantasy_points": 2500, "leads_remaining": 47, "leads_recurring": 10, "open_task_count": 3, "unread_messages_count": 12, "mysite_views": 1523, "mysite_leads": 89, "facebook": "https://facebook.com/dwightschrute", "instagram": "@dwight_schrute_farms", "twitter": "@schaboretum", "linkedin": "https://linkedin.com/in/dwight-schrute", "youtube": null, "tiktok": null, "push_notifications": true, "email_notifications": true, "sms_notifications": false, "activity_notifications": true, "profile_notifications": true, "created_at": "2019-03-24T08:00:00Z", "company": { "id": 1, "name": "Dunder Mifflin Paper Company", "slug": "dunder-mifflin" } }
curl -i -X PUT \ https://docs.fluid.app/_mock/docs/apis/rep/api/me \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "first_name": "Dwight", "last_name": "Schrute", "bio": "Assistant Regional Manager. Beet farmer. Volunteer Sheriff'\''s Deputy.", "time_zone": "America/New_York" }'
{ "id": 1847, "email": "d.schrute@dundermifflin.com", "first_name": "Dwight", "last_name": "Schrute", "full_name": "Dwight Schrute", "bio": "Assistant Regional Manager. Beet farmer." }