Sinatra Docs
API ReferenceMe

Read your account

Combines your dashboard profile, memberships and linked accounts.

Only dashboard-visible fields are returned; credentials, session metadata and hidden provider identities are omitted. No workspace membership is required; this always reads the token's user, never another user.

GET/v1/me/account
AuthorizationBearer <token>

A personal access token, which starts with sntr_. Create one on the dashboard's CLI & API page (https://app.sinatra.dev/tokens). It acts as you in every workspace you belong to, with your role in each, and expires after at most 365 days. The CLI's browser sign-in sends an OAuth access token here instead.

In: header

Response Body

curl -X GET "https://api.sinatra.dev/v1/me/account"
{
  "user": {
    "id": "string",
    "email": "string",
    "githubLogin": "string",
    "name": "string",
    "avatarUrl": "string",
    "linearUserId": "string"
  },
  "memberships": [
    {
      "membership": {
        "id": "string",
        "workspaceId": "string",
        "role": "string"
      },
      "workspace": {
        "id": "string",
        "name": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "githubAccountLogin": "string",
        "githubAccountType": "string",
        "linearOrganizationName": "string"
      }
    }
  ],
  "linkedAccounts": {
    "telegram": {
      "available": true,
      "identity": {
        "telegramUserId": "string",
        "displayName": "string",
        "linkedAt": "2019-08-24T14:15:22Z"
      },
      "requestWorkspaces": {
        "options": [
          {
            "id": "string",
            "name": "string"
          }
        ],
        "current": {
          "id": "string",
          "name": "string",
          "usable": true
        },
        "routesTo": {
          "id": "string",
          "name": "string"
        }
      },
      "bot": {
        "username": "string",
        "url": "string"
      }
    }
  }
}
{
  "error": "string",
  "reason": "string",
  "requestId": "string",
  "refusal": "string",
  "billingUrl": "string",
  "settingsUrl": "string",
  "plan": "string",
  "running": 0,
  "queued": 0,
  "taskId": "string",
  "messageId": "string"
}
{
  "error": "string",
  "reason": "string",
  "requestId": "string",
  "refusal": "string",
  "billingUrl": "string",
  "settingsUrl": "string",
  "plan": "string",
  "running": 0,
  "queued": 0,
  "taskId": "string",
  "messageId": "string"
}
{
  "error": "string",
  "reason": "string",
  "requestId": "string",
  "refusal": "string",
  "billingUrl": "string",
  "settingsUrl": "string",
  "plan": "string",
  "running": 0,
  "queued": 0,
  "taskId": "string",
  "messageId": "string"
}