# Who you act for (/api/account/get_me)

`GET /v1/me`

Operation name: `get_me`

The person who connected you (id, email, full name), how many organizations they belong to, and `app`: the app you are connected as (its `clientId` and name), which names your own changes in the hierarchy and feedback history. Call it first to learn whose access you have; then `list_my_organizations` for their organizations and products. Filter `list_hierarchy_changes` or `list_feedback_changes` by your `app.clientId` to find your own changes.

## Authentication

An OAuth access token for the person who allowed your tool: register a client, then the authorization code flow with PKCE (S256). Send it as `Authorization: Bearer <token>` on every route that needs a signed-in person. Calls with a token are limited per person, across all their apps, to 120 calls a minute and 10,000 a UTC day; calls that start AI runs or knowledge base reads (creating an organization, starting a knowledge base read, rebuilding categories, retrying topics or rechecking) also to 10 a minute and 200 a UTC day. Over a limit a call answers 429 `rate_limited` with `Retry-After` and `details.retryAfter` in seconds, and changes nothing.

Or: An API key, sent as `Authorization: Bearer ha_…` (keys made before the rename to Heuristic start `fsa_` and keep working). Keys are created only in the Heuristic web app and shown once. A personal key (Settings → Personal → My API keys) acts as its person in one of their organizations, with exactly their access there, checked on every call; its calls count toward the person's limits on calls through apps and agents, as described for OAuth tokens, and it can't change the person's account (their profile, organizations, invitations or connected apps). An organization key (Settings → Organization → API keys, created by Admins) acts for the organization, not a person: it can see and change every product and its feedback as an Admin can, but not people, product access, CRM connections or the organization's settings, and it can't delete a product; each organization key has its own limits, with the same numbers. Either kind is Full access or Read only (a change with a read-only key answers 403 `read_only_key`), reaches only its own organization (others answer 404), works on /v1 only, not on the MCP server, and can't create keys or manage the organization's API keys. Other refused calls answer 403 `api_key_not_allowed`. A wrong, expired or revoked key, or a disabled member's personal key, answers 401 `unauthorized`. A full-access key sends feedback: a personal key as its person, to the products they own; an organization key to any product of its organization; the record's `sentBy` names the key.

## Responses

### 200

The signed-in user

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "user": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "email": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "email",
            "name"
          ]
        },
        "organizationCount": {
          "type": "integer"
        },
        "app": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "clientId": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "clientId",
            "name"
          ],
          "description": "The app this call came through: yours when you are an agent; null in Heuristic's web app."
        },
        "apiKey": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "kind": {
              "type": "string",
              "enum": [
                "member",
                "organization"
              ],
              "description": "`member`: a person's key, acting as them; `organization`: the organization's own key, acting for no person."
            },
            "organizationId": {
              "type": "string"
            },
            "organizationName": {
              "type": "string"
            },
            "access": {
              "type": "string",
              "enum": [
                "full",
                "read"
              ]
            }
          },
          "required": [
            "id",
            "name",
            "kind",
            "organizationId",
            "organizationName",
            "access"
          ],
          "description": "The API key this call used, or null without one. With an organization key, `user` is the key itself (its name, no email)."
        }
      },
      "required": [
        "user",
        "organizationCount",
        "app"
      ]
    },
    "meta": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "data",
    "meta"
  ]
}
```

### 401

Not signed in

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "details": {}
      },
      "required": [
        "code",
        "message"
      ]
    }
  },
  "required": [
    "error"
  ]
}
```

## Example request

```bash
curl "https://staging.heuristic.app/v1/me" \
  -H "Authorization: Bearer <access token>"
```
