v1

latestOpenAPI 3.0.3Proprietary2026-07-26162247330.6 KB
Organizations

Revoke organization API key

Revokes the specified organization API key. An API key that is no longer needed can be revoked. This action cannot be reversed. API keys can also be managed in the Neon Console. See Manage API keys.

delete/organizations/{org_id}/api_keys/{key_id}

Path parameters

key_idinteger required

The API key ID

Response

Revoked the specified organization API key

idinteger required

The API key ID

namestring required

The user-specified API key name

created_atstring date-time required

A timestamp indicating when the API key was created

created_bystring uuid required

ID of the user who created this API key

last_used_atstring date-time nullable

A timestamp indicating when the API was last used

last_used_from_addrstring required

The IP address from which the API key was last used

revokedboolean required

A true or false value indicating whether the API key is revoked

project_idstring

If set, the API key can access only this project