Skip to main content
POST
/
auth
/
logout
SDK (@phosra/sdk)
import { PhosraClient } from "@phosra/sdk";

const phosra = new PhosraClient({
  baseUrl: "https://phosra-api-sandbox-production.up.railway.app/api/v1",
  accessToken: process.env.PHOSRA_API_KEY,
});

await phosra.auth.logout();
{
  "error": "Unauthorized",
  "message": "missing or invalid Authorization header",
  "code": 401
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Logged out