Smart Agent Teams
EndpointsAuthentication

Logout User

Logout user With a refresh_token in the body, ends only that session (one browser or one CLI profile). Without one, ends every session the user has.

POST
/api/logout

Logout user

With a refresh_token in the body, ends only that session (one browser or one CLI profile). Without one, ends every session the user has.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Request Body

application/json
  1. body

Logout request; refresh_token limits the logout to that one session

refresh_token?string|null

Response Body

Successful Response

application/json
  1. response

Logout response

message?Message
Default"Logged out successfully"
curl -X POST "https://example.com/api/logout" \  -H "Content-Type: application/json" \  -d '{}'
{  "message": "Logged out successfully"}