Remove a member
One route for both: an invitation and a membership are the same row.
If the member created API keys that are still active, the removal STOPS with 409 MEMBER_HAS_API_KEYS and returns the list. Repeat with apiKeyAction=revoke or apiKeyAction=keep — there is no default, because revoking by omission takes down production integrations in the middle of an offboarding.
OAuth required. A classic key (x-api-key) is refused: an x-api-key request has no user behind it, and allowing writes to the member list would turn any key of the workspace into a path to account takeover.
Authorizations
Your ps_ API key
Path Parameters
Membership id (the id the list returns), NOT the user id.
Query Parameters
revoke sets revokedAt (soft, never a delete); keep reassigns the keys to the caller.
revoke, keep Response
Removed