Wallets
Verifies the Privy bearer token and sets Ethos access/refresh JWTs via HttpOnly cookies.
Authorizations
Responses
200
Successful response
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
500
Internal server error
application/json
post
/auth/exchangePOST /api/v2/auth/exchange HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ok": true
}Clears Ethos access/refresh cookies and revokes the current refresh token if present. Safe to call even if not authenticated.
Responses
200
Successful response
application/json
500
Internal server error
application/json
post
/auth/logoutPOST /api/v2/auth/logout HTTP/1.1
Host: api.ethos.network
Accept: */*
{
"ok": true
}Last updated