Skip to Content

Get authenticated user + workspace context

GET
/api/v1/me

Returns the authenticated user, the workspace the request acts in (the Sajn-Workspace header, or the token's default workspace), and the parent organization. Used by Zapier and other integrations to verify the connection and label it for users.

Authorization

headerAuthorizationBearer <token>

API key, e.g. Authorization: Bearer sajn_svc_.... Not scope-limited: acts with its owner's workspace role.

Header Parameters

Sajn-Version?string

API version for this request. Without it, the request uses the organization's default version; an organization without a default is pinned to the latest version by its first request.

Value in"2026-09""2026-10"
Sajn-Workspace?string

ID of the workspace this request acts in, from GET /api/v1/workspaces. Without it, an API key acts in its default workspace. The token's user must be a member of the workspace; an OAuth token only accepts the workspace it was granted for. A workspace that doesn't exist or can't be reached returns 403 WORKSPACE_ACCESS_DENIED.

Response Body

Authenticated user + workspace context

application/json
  1. response

Authenticated user + workspace context

id*string

User ID

email*string
name*string|null
workspace*
organization*
Example Request
curl -X GET 'https://app.sajn.se/api/v1/me'
Example Response
{  "id": "cm4k2x9p10002abcd1234efgh",  "email": "alex@example.com",  "name": "Alex Berg",  "workspace": {    "id": "cm4k2x9p10001abcd1234efgh",    "slug": "hr",    "name": "HR"  },  "organization": {    "id": "cm4k2x9p10000abcd1234efgh",    "name": "Exempelbolaget AB"  }}

Was this page helpful?