Skip to main content
POST
/
v1
/
auth
/
sessions
Start a CLI login session
curl --request POST \
  --url https://api.usezombie.com/v1/auth/sessions \
  --header 'Content-Type: application/json' \
  --data '
{
  "public_key": "<string>",
  "token_name": "<string>"
}
'
{
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Body

application/json
public_key
string
required

Base64url-encoded P-256 SubjectPublicKeyInfo. The CLI's ephemeral ECDH public key — used by the dashboard to derive the AES-256-GCM session key that wraps the JWT.

token_name
string
required

Operator-facing label for the resulting credential (e.g. macos-cli, linux-cli, windows-cli). Printable ASCII; appears in audit events and zombiectl auth status.

Required string length: 1 - 64

Response

Auth session created

session_id
string<uuid>
required

Session identifier for polling. UUIDv7.

request_id
string<uuid>
required

Unique request identifier