/organizations/{org_id}/api_keysList organization API keysRetrieves the API keys for the specified organization. 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.
Parameters
org_idstringpathrequiredThe Neon organization ID
Responses
Show array items
allOf · 2 options
created_atstring · date-timerequiredA timestamp indicating when the API key was created
created_byobjectrequiredThe user data of the user that created this API key.
Show child attributes
idstring · uuidrequiredID of the user who created this API key
imagestringrequiredThe URL to the user's avatar image.
namestringrequiredDisplay name of the user who created the API key.
idinteger · int64requiredThe API key's unique numeric ID. Distinct from the API key token (`key`).
last_used_atnull | string · date-timeA timestamp indicating when the API was last used
last_used_from_addrstringrequiredThe IP address from which the API key was last used
namestringrequiredThe user-specified API key name
project_idstringIf set, the API key can access only this project
[
{
"created_at": "2022-11-15T20:13:35Z",
"created_by": {
"id": "629982cc-de05-43db-ae16-28f2399c4910",
"image": "http://link.to.image",
"name": "John Smith"
},
"id": 165432,
"last_used_at": "2022-11-15T20:22:51Z",
"last_used_from_addr": "192.0.2.255",
"name": "orgkey_1"
},
{
"created_at": "2022-11-15T20:12:36Z",
"created_by": {
"id": "629982cc-de05-43db-ae16-28f2399c4910",
"image": "http://link.to.image",
"name": "John Smith"
},
"id": 165433,
"last_used_at": "2022-11-15T20:15:04Z",
"last_used_from_addr": "192.0.2.255",
"name": "orgkey_2"
}
]codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}