Getting StartedPersonal API Tokens

Personal API Tokens

Personal API tokens authenticate CLI and API calls.

Use personal tokens instead of shared workspace tokens so internalpage can keep the page creator tied to the actual user or automation owner.

Token handling

  • Copy the raw token only once when it is created.
  • Store it in a password manager, CI secret, or the CLI’s local config file.
  • Save it with auth login for repeated local CLI and AI-agent usage.
  • Pass it as IP_TOKEN for CI or one-off commands.
  • Revoke old tokens when a laptop, CI job, or ownership boundary changes.
npx @internalpage/cli auth login

For non-interactive setup, pass the token on stdin.

printf '%s' "$IP_TOKEN" | npx @internalpage/cli auth login --token-stdin

Use an IP_TOKEN environment variable only when a CI job or short-lived shell should avoid writing local CLI config.