Skip to content
Dashboard
Theme
Theme

Revoke a pending end-user invite

POST /v1/invites/{invite}/revoke: Revoke a pending end-user invite.

View Markdown

POST /v1/invites/{invite}/revoke

Scope
users:write
Auth
Secret key (sk_…)
Since
1.0
  • invite string Required

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

Errors share one shape; see the error code catalogue.

curl -X POST \
"https://api.ohauthcat.com/v1/invites/uinv_01J9Z3K5V7W8X9Y0Z1A2B3C4D5/revoke" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY"
Response 200
{
"id": "uinv_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"object": "invite",
"email": "jane@acme.com",
"organization": "org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"role": "admin",
"state": "pending",
"expires_at": "2026-01-15T09:30:00Z",
"created_at": "2026-01-15T09:30:00Z"
}