Errors

identity_key_name_taken

409, or 400 on the tigby login poll: Key name taken.

Key name taken. Answered with 409, or 400 on the tigby login poll.

What it means

A live Identity Key of the same Identity already carries that name. The name is how the Identity's Instances are told apart on the list, so it is unique among the live keys, compared case-insensitively. A revoked key's name is free again. A tigby login --identity confirmed with a name that is taken (the default cli-<hostname>, when the machine signed in for that Identity before) mints nothing and is refused, and its terminal is answered with this code on its next poll.

What to do

Choose another name. GET /api/identities/{handle}/keys lists the ones in use; tigby login takes it with --name. A rotation mints the new key under a new name, deploys it, then revokes the old one, which frees the old name again.

The body

{
  "type": "https://tigby.eu/problems/identity_key_name_taken",
  "title": "Key name taken",
  "status": 409,
  "detail": "…what was refused, naming this request's own values",
  "code": "identity_key_name_taken",
  "doc_url": "https://docs.tigby.eu/errors/identity_key_name_taken",
  "agent_hint": "…the next step, for software"
}

Branch on code. The detail names this request's own Handle, id or limit and is not part of the contract.