Skip to content

Personal access tokens API

The personal access tokens endpoints, each in TypeScript, Python, the CLI and curl.

This takes a personal access token, not an API key. In the SDKs, pass it as token.

Terminal window
npm install @reminix/sdk
export REMINIX_TOKEN="<your personal access token>"

Returns the user the personal access token belongs to, and their workspace memberships.

import { createClient } from "@reminix/sdk";
const reminix = createClient({ token: process.env.REMINIX_TOKEN });
const me = await reminix.user.me();
console.log(me);

Returns:

{
"id": "usr_4f8a2c1e-7b3d-4e9f-a6c5-2d1b0e9f8a7c",
"name": "Casey Customer",
"email": "casey@example.com",
"workspaces": [
{
"id": "ws_9418b705-3720-48ca-b2bf-f726d1456684",
"name": "Acme Inc.",
"slug": "acme",
"role": "owner"
}
]
}
More about this endpoint

Use it as a smoke test for an integration (“who am I?”).

Revokes the personal access token that makes the request.

import { createClient } from "@reminix/sdk";
const reminix = createClient({ token: process.env.REMINIX_TOKEN });
await reminix.user.revokeToken();

Returns nothing (204).

More about this endpoint

Use it to sign out from a script or the CLI (logout). The token stops working immediately. Your other tokens keep working.