Revoke one issued database credential

Ends the credential's open sessions and removes its PostgreSQL role. Revocation is idempotent for an already revoked credential and never affects the application's own roles or any data.

delete/v1/projects/{project_id}/database/access/{access_id}

Request

  • Base URL: https://app.ohmyho.st
  • URL: https://app.ohmyho.st/v1/projects/{project_id}/database/access/{access_id}
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project identifier.

access_idstring required

Issued database credential identifier.

Headers

X-Request-Idstring

Optional caller-provided correlation identifier.

Response

The revoked credential record without any connection URI.

access_idstring required
environment'dev' | 'prod' required
mode'read' | 'write' required
role_namestring required
hoststring required
database'neondb' required
labelstring nullable required
state'active' | 'expired' | 'revoked' required
issued_atstring date-time required
expires_atstring date-time required
revoked_atstring date-time nullable required
revocation_reason'principal' | 'expired' | 'budget' | 'creation_failed' | 'data_change' | 'null' nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.