listAPITokens()
listAPITokens():
Promise<APIToken[]>
Defined in: packages/core/src/index.ts:3260
List all API tokens for the current user
Returns
Promise<APIToken[]>
Array of API token objects (without token values)
Throws
401 - Not authenticated
Example
import { listAPITokens } from "@cpod/sdk";
const tokens = await listAPITokens();
tokens.forEach(token => {
console.log(`${token.name} - Expires: ${token.expires_at}`);
});