v1

latestOpenAPI 3.0.3Proprietary2026-07-26162247330.6 KB
API Key

List API keys

Retrieves the API keys for your Neon account. The response does not include API key tokens. A token is only provided when creating an API key. API keys can also be managed in the Neon Console. For more information, see Manage API keys.

get/api_keys

Response

Returned the API keys for the Neon account

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

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

Example response

[
  {
    "id": 165432,
    "name": "mykey_1",
    "created_at": "2022-11-15T20:13:35Z",
    "created_by": {
      "id": "629982cc-de05-43db-ae16-28f2399c4910",
      "name": "John Smith",
      "image": "http://link.to.image"
    },
    "last_used_at": "2022-11-15T20:22:51Z",
    "last_used_from_addr": "192.0.2.255"
  },
  {
    "id": 165433,
    "name": "mykey_2",
    "created_at": "2022-11-15T20:12:36Z",
    "created_by": {
      "id": "629982cc-de05-43db-ae16-28f2399c4910",
      "name": "John Smith",
      "image": "http://link.to.image"
    },
    "last_used_at": "2022-11-15T20:15:04Z",
    "last_used_from_addr": "192.0.2.255"
  }
]
All 162 operations