Wallets

Exchange Privy session for Ethos JWTs

post

Verifies the Privy bearer token and sets Ethos access/refresh JWTs via HttpOnly cookies.

Authorizations
Responses
200

Successful response

application/json
post
/auth/exchange
POST /api/v2/auth/exchange HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "ok": true
}

Logout and clear Ethos JWT cookies

post

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
post
/auth/logout
POST /api/v2/auth/logout HTTP/1.1
Host: api.ethos.network
Accept: */*
{
  "ok": true
}

Last updated