Remove Agency Team Member Beta
Remove someone from the agency team and the client workspaces the agency gave them.
https://api.foxreach.io/ api/ v1/ agency/ team/{member_id}Requires an API key with the write and admin scopes, created by the agency workspace owner. The admin scope is opt-in: no default key carries it. Only keys of an Agency workspace can call it (403 agency_required otherwise).
Only API keys of an Agency workspace can call this endpoint (403 agency_required otherwise). The call always runs in the key's own workspace; X-Workspace-Id is ignored. Writes also need a key created by the agency workspace owner (403 agency_owner_required otherwise).
They leave the team and every client workspace the agency gave them, and the API keys they created in those workspaces are revoked. Access a client gave them in its own Settings, Team stays. Their FoxReach account is not deleted.
Path Parameters
member_id string path required Response
data object data
id string removed boolean true.Each removal is recorded as an audit.agency_member.removed event, plus access_revoked per workspace, with the key as the actor.
Errors
| Status | Description |
|---|---|
401 | Missing, invalid, revoked or expired API key |
403 | API key does not have the required scope: write |
403 | agency_required or agency_owner_required |
404 | No team member with this id on the agency's team |
409 | Another change to this team was saved at the same time; try again |
Rate Limit
- 120 requests per minute, shared by every
writecall in your workspace. Fixed 60-second window. - Every response includes
X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset(unix epoch seconds) andX-RateLimit-Bucket(write). - A
429response includes aRetry-Afterheader (seconds until the bucket resets).
For client-side patterns, see Rate Limiting.