> ## Documentation Index
> Fetch the complete documentation index at: https://doc.trackrev.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Me

> Which workspace a key belongs to, its plan and limits, the key itself, and which API features this deployment supports.

<RequestExample>
  ```bash cURL theme={null}
  curl "https://app.trackrev.io/api/v1/me" \
    -H "Authorization: Bearer <your key>"
  ```
</RequestExample>

`GET /api/v1/me` — who am I, and what can this key do. The first call to make after getting a key,
and the first thing to check when a request returns `402`.

**Scope:** secret (`lk_`) or publishable (`pk_`) key, any plan.

## Response

<ResponseField name="workspace" type="object">
  `id`, `name`, `slug`, `primary_domain`, `attribution_model`, `attribution_window`, `created_at`,
  and `partner_managed` — `true` when the workspace was provisioned by an API partner
  ([Partner workspaces](/developers/endpoints/partner-workspaces)); such workspaces are on the
  unlimited plan.
</ResponseField>

<ResponseField name="plan" type="object">
  `tier`, `name`, `status`, `covered_by` (the owner's plan that covers this workspace, if any),
  `revenue_visible`, `limits` (`links`, `events`, `commission` — each `{ used, limit }`, `limit:
      null` meaning unlimited), `events_reset_at`, `commission_reset_at`.
</ResponseField>

<ResponseField name="key" type="object">
  `id`, `label`, `scopes`, `created_at`, `last_used_at` of the key you called with.
</ResponseField>

<ResponseField name="features" type="string[]">
  API capabilities this deployment supports, for feature detection. The list only grows:

  | Flag                 | Means                                                                  |
  | -------------------- | ---------------------------------------------------------------------- |
  | `idempotency`        | `Idempotency-Key` on `POST /api/v1/links`                              |
  | `external_id`        | `external_id` and `metadata` on links (create, `?external_id=` filter) |
  | `destination_id`     | `POST /api/v1/links` can add links to an existing campaign             |
  | `social_channels`    | `threads`, `bluesky`, `mastodon`, … and the `x` alias                  |
  | `link_ids_filter`    | `GET /api/v1/links?ids=…` and `GET /api/v1/clicks?link_ids=…&since=…`  |
  | `partner_workspaces` | `/api/v1/partner/workspaces`                                           |
  | `webhook_retries`    | Webhook deliveries are retried on network errors, `429` and `5xx`      |
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "workspace": {
      "id": "0b6e…",
      "name": "Acme",
      "slug": "acme",
      "primary_domain": "acme.com",
      "attribution_model": "last_touch",
      "attribution_window": 30,
      "created_at": "2026-09-24T09:00:00.000Z",
      "partner_managed": false
    },
    "plan": {
      "tier": "growth",
      "name": "Growth",
      "status": "active",
      "covered_by": null,
      "revenue_visible": true,
      "limits": {
        "links": { "used": 42, "limit": null },
        "events": { "used": 1804, "limit": null },
        "commission": { "used": 0, "limit": 100000 }
      },
      "events_reset_at": "2026-10-24T09:00:00.000Z",
      "commission_reset_at": "2026-10-01T00:00:00.000Z"
    },
    "key": {
      "id": "7c1d…",
      "label": "Production backend",
      "scopes": ["secret"],
      "created_at": "2026-09-24T09:05:00.000Z",
      "last_used_at": "2026-09-24T10:00:00.000Z"
    },
    "features": [
      "idempotency", "external_id", "destination_id", "social_channels",
      "link_ids_filter", "partner_workspaces", "webhook_retries"
    ]
  }
  ```
</ResponseExample>
