Whoami Command

Verify your token and display team/key information. Useful for confirming authentication is working before running deploy or sites commands.

Usage

zyber whoami [--token <token>] [--save]. The --save flag persists the token to ~/.zyberspace/config.json for use in future commands.

Output

Displays: Team name and slug, plan, key name and prefix, scopes, and API URL. This calls the GET /api/v1/whoami endpoint.

Example response

  Authenticated

  Team         My Team (my-team)
  Plan         pro
  Key          deploy-key (zxk_live_AbCdEfGh...)
  Scopes       sites:read, sites:write, deployments:read, deployments:write
  API URL      https://app.zxapi.net

Code examples

cURL
# Check authentication
zyber whoami --token zxk_live_YOUR_API_KEY

# Save token for future use
zyber whoami --token zxk_live_YOUR_API_KEY --save
JavaScript
// Equivalent API call:
const res = await fetch(`https://www.zyberspace.com/api/v1/whoami`, {
  headers: { Authorization: "Bearer zxk_live_YOUR_API_KEY" },
});
const { data } = await res.json();
// data.team.name, data.team.slug, data.team.plan
// data.key.name, data.key.prefix, data.key.scopes

Base URL: https://www.zyberspace.com

Get your API key →