Created token response with the token value (only shown once)
Throws
401 - Not authenticated
Example
import { createAPIToken } from"@cpod/sdk";
consttoken = awaitcreateAPIToken({ name:"CI/CD Pipeline Token", expires_in_days:90, }); // Save this token securely - it won't be shown again console.log(`Token: ${token.token}`);
Create a new API token for programmatic access