List accounts

GET/v1/directory/accounts

Lists your organization's accounts, each with its environment's address and status.

Permission: identity:ListAccounts

Returns

200 OK

{
  "accounts": [
    {
      "id": 100000000123,
      "name": "production",
      "email": "aws-prod@example.com",
      "kind": "member",
      "unit": "",
      "environment": "https://prod.example.yotta.bot",
      "status": "enabled",
      "created_at": "2026-11-01T09:00:00Z",
      "updated_at": "2026-11-01T09:00:00Z"
    }
  ]
}

Example

curl https://<company>.yotta.bot/v1/directory/accounts \
  -H "Authorization: Bearer $YOTTABOT_TOKEN"

With yottactl

yottactl org accounts list