Get authentication status
GET
/auth/cli/status
const url = 'https://shoehorn.example.com/api/v1/auth/cli/status';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://shoehorn.example.com/api/v1/auth/cli/statusReturns the current authentication state for CLI sessions.
Responses
Section titled “ Responses ”Authentication status
Media type application/json
object
authenticated
boolean
user
object
email
string
name
string
tenant_id
string
expires_at
string format: date-time
Example generated
{ "authenticated": true, "user": { "email": "example", "name": "example", "tenant_id": "example" }, "expires_at": "2026-04-15T12:00:00Z"}