Skip to content

DELETE /v1/console/orgs/{org_id}/members/{user_id}

Call DELETE /v1/console/orgs/{org_id}/members/{user_id}
Price free
Scope console session cookie (not an API key)
Operation id removeMember

Remove a member from the organization (any member may remove themselves). Only an owner may remove an owner, and the last owner cannot be removed (409). The user’s sessions stay valid for their other organizations. Audited as member_removed. Roles: owner, admin (checked server-side). When the user has TOTP on, the session must have passed POST /v1/console/totp/verify; an owner of an organization with more than one member must have TOTP on (spec 9.1), otherwise 403.

Copy it as curl. Set VERDICT_API_KEY first; uuidgen makes a fresh Idempotency-Key.

Request
curl -X DELETE 'https://api.askverdict.io/v1/console/orgs/org_01JC3Z4Y8R9K2M5N7P1Q3S5T7V/members/usr_01JC3Z4Y8R9K2M5N7P1Q3S5T7V' \
--cookie "verdict_session=$VERDICT_SESSION"

200: The member that was removed.

200 response
{
"user_id": "usr_01JC3Z4Y8R9K2M5N7P1Q3S5T7V",
"email": "[email protected]",
"role": "owner",
"totp_enabled": true,
"joined_at": "2026-11-01T09:00:00Z"
}
Name In Type Required Description
org_id path string yes The organization.
user_id path string yes The member’s user id.
x-verdict-version header string no API version to use, a date. Defaults to the version current when the key was created. The current version is 2026-11-01.

Schema Member.

Field Type Required Description
user_id string yes The member’s user id.
email string (email) yes The member’s email.
role enum: “owner”, “admin”, “developer”, “billing”, “read_only” yes The member’s role.
totp_enabled boolean yes Whether the member has TOTP on.
joined_at string (date-time) yes When the member joined.

Errors are RFC 9457 problem details and are never billed. Branch on type. See Errors.

Status Meaning
400 Invalid request: malformed JSON, an unknown field, a failed constraint or a size limit (invalid_request).
401 Missing, malformed, revoked or expired API key, or a bad webhook signature (unauthorized).
403 The key lacks the scope this operation needs (forbidden_scope).
404 The resource does not exist in this organization (not_found).
409 The Idempotency-Key was reused with a different request, or the first request is still running (idempotency_conflict).
429 Rate limited (rate_limited). Wait Retry-After seconds.
500 Unexpected server error (internal). Not billed; retry with the same Idempotency-Key.

Open the interactive reference to send this request from the browser. The full document is at /openapi.json.