Personal access tokens
Set up
Section titled “Set up”npm install @reminix/sdkimport { createClient } from "@reminix/sdk";
const reminix = createClient(); // reads REMINIX_API_KEYpip install reminixfrom reminix import Reminix
reminix = Reminix() # reads REMINIX_API_KEYnpm install -g @reminix/clireminix loginexport REMINIX_API_KEY="<your API key>"Get the current user
Section titled “Get the current user”GET /v1/user/me
Returns the user the personal access token belongs to, with their workspace memberships.
await reminix.user.me();reminix.user.me()reminix user mecurl -X GET "https://api.reminix.com/v1/user/me" \ -H "Authorization: Bearer $REMINIX_API_KEY"More about this endpoint
Useful as an integration smoke test (“who am I?”).
Revoke the token making this request
Section titled “Revoke the token making this request”DELETE /v1/user/token
Revokes the personal access token used to call it — signing out from a script or the CLI (logout).
await reminix.user.revokeToken();reminix.user.revoke_token()reminix user revoke-token --yescurl -X DELETE "https://api.reminix.com/v1/user/token" \ -H "Authorization: Bearer $REMINIX_API_KEY"More about this endpoint
The token stops working immediately; other tokens are untouched.