API reference

Download spec
delete

Remove a team member

Removes a user from the team. Identify the member by user account UUID in the path. The team owner cannot be removed through this endpoint.

Required API key scope
members:delete
/api/v1/team/members/{userId}

Code samples

curl --request DELETE \
  --url https://api.emailguard.co/api/v1/team/members/YOUR_ID \
  --header 'Authorization: Bearer YOUR_API_KEY'

Parameters

Path parameters

NameTypeDescription
userIdrequiredstring

User account UUID of the member to remove

Responses

200
OK
OK
codestringrequired

Machine-readable status code (for example OK or INVALID_BODY).

messagestring

Human-readable detail when the code is not OK.

401
Unauthorized
Unauthorized
codestringrequired

Machine-readable status code (for example OK or INVALID_BODY).

messagestring

Human-readable detail when the code is not OK.

403
Forbidden
Forbidden
codestringrequired

Machine-readable status code (for example OK or INVALID_BODY).

messagestring

Human-readable detail when the code is not OK.

404
Not Found
Not Found
codestringrequired

Machine-readable status code (for example OK or INVALID_BODY).

messagestring

Human-readable detail when the code is not OK.