Skip to content
Dashboard
Theme
Theme

Revoke a connection share

DELETE /v1/connections/{conn}/shares/{share}: Revoke a connection share.

View Markdown

DELETE /v1/connections/{conn}/shares/{share}

Takes effect at once; sign-ins already in flight for the target organization are refused.

Scope
connections:write
Auth
Secret key (sk_…)
Since
1.0
  • conn string Required

  • share string Required

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • Idempotency-Key string

    Honoured for 24 h; a replay returns the original response.

    min length 1 · max length 255

Errors share one shape; see the error code catalogue.

curl -X DELETE \
"https://api.ohauthcat.com/v1/connections/conn_01J9Z3K5V7W8X9Y0Z1A2B3C4D5/shares/cshr_01J9Z3K5V7W8X9Y0Z1A2B3C4D5" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY"
Response 200
{
"id": "cshr_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"object": "connection_share",
"connection_id": "conn_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"owner_organization_id": "org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"organization_id": "org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"routing_domains": [
"acme.com"
],
"created_at": "2026-01-15T09:30:00Z",
"revoked_at": "2026-01-15T09:30:00Z"
}