API Key

These methods allow you to create and manage API keys for your Neon account. For related information, see Manage API keys.

Operations

MethodEndpointDescription
GET/api_keysList API keys
POST/api_keysCreate API key
DELETE/api_keys/{key_id}Revoke API key

Example

List API keys, with the TypeScript SDK:

ts
import { Neon } from "@octridev/neon";

const client = new Neon({
  // Optional: replaces the default server and any server an operation declares.
  baseUrl: "https://console.neon.tech/api/v2",
  auth: { bearerAuth: process.env.API_TOKEN! },
});

const result = await client.apiKey.list();
console.log(result);
Nine more languages

The same call exists in every SDK. See SDKs for the other nine.