Sign this machine out of the CLI
POST
/v1/cli/logoutRevokes the device token that sends the request, and only that one. Other machines signed in as the same developer stay signed in; sign them out from the dashboard's Devices settings.
Needs only the device token. Afterwards the token is rejected on every route, this one included, so a second call is a 401. Treat that as success: the machine is signed out either way.
Headers
AuthorizationBearer <token>requiredA device token, prefixed var_dt_, issued by varis login to one machine and stored there. Identifies the human; carries no permissions of its own. Expires 180 days after its last use, and can be revoked from the dashboard.
Response
application/jsonThis machine is signed out.
signed_outbooleanrequiredrequest_idstringrequiredcurl -X POST 'https://api.usevaris.com/v1/cli/logout'{ "signed_out": true, "request_id": "string"}