Teams let a Wheelhouse account (the team owner) give other Wheelhouse accounts access to manage its listings. Use these endpoints to invite and remove team members, set which listings they can access and at what level, and, as a member, accept, decline or leave a team. To do the same in the app, see Wheelhouse Teams.
Manage Your Team Members
These endpoints are for the team owner. Use the sub_user_id from GET /teams/members to choose the member.
GET /teams/members
Lists your team members.
curl "https://api.usewheelhouse.com/ss_api/v1/teams/members" \
-H "X-Integration-Api-Key: your_api_key_here"
include_managed_subs(boolean, optional, defaultfalse): also include the team members of other accounts where you have manager (co-host) access to at least one listing
POST /teams/members/invite
Invites someone by email. If they don't have a Wheelhouse account yet, a pending one is created for them. Returns the new membership with status P (pending).
curl --request POST "https://api.usewheelhouse.com/ss_api/v1/teams/members/invite" \
-H "X-Integration-Api-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"email": "teammate@example.com"}'
email(string, required): the invitee's emailbilling_delegated(boolean, optional): delegate billing for the invitee to you
POST /teams/members/:sub_user_id/auto_managed_listing_level
Sets the access level the member gets on your listings. If the member has no assigned segments, this level applies to all your listings.
curl --request POST "https://api.usewheelhouse.com/ss_api/v1/teams/members/98765/auto_managed_listing_level" \
-H "X-Integration-Api-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"level": "F"}'
level(required):Ndisabled,Rviewer,Erestricted editor,Feditor,Mmanager
POST /teams/members/:sub_user_id/assigned_segments
Limits the member to the listings in specific portfolio segments, then updates their access right away. This replaces any segments assigned before.
curl --request POST "https://api.usewheelhouse.com/ss_api/v1/teams/members/98765/assigned_segments" \
-H "X-Integration-Api-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"ids": [123, 456]}'
ids(array, required): portfolio segment IDs. They must be your own segments, or you get a 404
POST /teams/members/:sub_user_id/refresh_auto_managed_listings
Reapplies the member's level and segments to your current listings, for example after you add new listings.
curl --request POST "https://api.usewheelhouse.com/ss_api/v1/teams/members/98765/refresh_auto_managed_listings" \
-H "X-Integration-Api-Key: your_api_key_here"
DELETE /teams/members/:sub_user_id
Removes the member and their access to your listings. Returns the membership with status I (inactive).
curl --request DELETE "https://api.usewheelhouse.com/ss_api/v1/teams/members/98765" \
-H "X-Integration-Api-Key: your_api_key_here"
Teams You Belong To
These endpoints are for team members. master_user_id is the team owner's ID, the user_id field in a membership.
GET /teams/memberships: lists the teams you belong to as a member
POST /teams/memberships/:master_user_id: accepts a pending invitation. It returns success even if there was no pending invitation
DELETE /teams/memberships/:master_user_id: leaves the team, or declines a pending invitation
curl --request POST "https://api.usewheelhouse.com/ss_api/v1/teams/memberships/12345" \
-H "X-Integration-Api-Key: your_api_key_here"
Membership Fields
user_id: the team owner's Wheelhouse user ID, withuser_first_name,user_last_nameanduser_emailsub_user_id: the team member's Wheelhouse user ID, withsubuser_first_name,subuser_last_nameandsubuser_emailstatus:Aactive,Ppending,Iinactive,Ddeclinedauto_managed_listing_level:N,R,E,ForM(see above)sub_user_assignments: the portfolio segments assigned to the memberbilling_delegated/billing_delegated_at: whether billing is delegated, and when
Errors
400: the request body is invalid, for example a missing
emailor an unknownlevel403: your API key is read-only. Read-only keys can list members and memberships but can't change anything
404: the team member wasn't found, or a segment ID isn't yours
409: another request for the same team is still running. Retry when it finishes
Related
Wheelhouse Teams (managing your team in the app)
Segments: Portfolio Groups and Filters (find segment IDs)