@cpod/sdk - v0.2.7
    Preparing search index...

    Function listAPITokens

    • List all API tokens for the current user

      Returns Promise<APIToken[]>

      Array of API token objects (without token values)

      401 - Not authenticated

      import { listAPITokens } from "@cpod/sdk";

      const tokens = await listAPITokens();
      tokens.forEach(token => {
      console.log(`${token.name} - Expires: ${token.expires_at}`);
      });