# Who is calling, and the workspaces it can use

`GET` `/api/v1/me`

`getMe`

Who can call it: An API token, or a signed-in person.

**Scopes:** Any valid API token, or a person session.

**Parameters**

| Name | In | Required | Type and constraints | Description / example |
| --- | --- | --- | --- | --- |
| `platform` | query | No | `string`; enum: `["x","linkedin","tiktok","bluesky","youtube","pinterest","patreon"]` | The platform the person's task calls for. Omit to consider any usable connected account; no platform is chosen for an empty workspace. Example: `"x"` |

**Request example**

```http
GET https://app.flaghand.com/api/v1/me
Authorization: Bearer tok_<your workspace token>
```

**Response example**

```json
{
  "kind": "token",
  "user": null,
  "token": {
    "id": "tkn_cccccccccccccccc",
    "name": "Drafting assistant",
    "prefix": "tok_syntheti",
    "scopes": [
      "read",
      "drafts",
      "media",
      "request-approval"
    ],
    "created_by": "usr_bbbbbbbbbbbbbbbb",
    "created_at": "2026-10-25T16:00:00Z",
    "last_used_at": null,
    "expires_at": null,
    "revoked_at": null,
    "oauth": null
  },
  "workspaces": [
    {
      "id": "ws_aaaaaaaaaaaaaaaa",
      "name": "Example Studio",
      "time_zone": "America/Los_Angeles",
      "role": "token",
      "created_at": "2026-10-25T16:00:00Z",
      "queue": {
        "paused": false,
        "paused_at": null,
        "message": "Queue running."
      }
    }
  ],
  "next_steps": [
    {
      "title": "From sign-up to the first scheduled post",
      "url": "https://app.flaghand.com/docs/first-post.md"
    },
    {
      "title": "Set up and connect",
      "url": "https://app.flaghand.com/docs/setup.md"
    },
    {
      "title": "Draft and schedule",
      "url": "https://app.flaghand.com/docs/drafting.md"
    },
    {
      "title": "Media and threads",
      "url": "https://app.flaghand.com/docs/media-and-threads.md"
    },
    {
      "title": "Schedule and results",
      "url": "https://app.flaghand.com/docs/schedule-and-results.md"
    },
    {
      "title": "Billing",
      "url": "https://app.flaghand.com/docs/billing.md"
    },
    {
      "title": "Errors",
      "url": "https://app.flaghand.com/docs/errors.md"
    }
  ],
  "next": {
    "operation_id": "startConnection",
    "arguments": {
      "workspace": "ws_aaaaaaaaaaaaaaaa",
      "platform": "linkedin"
    },
    "instruction": "Start connecting LinkedIn, then give the returned url and unchanged for_person to the person. Wait on getConnectionAttempt with attempt_id (CLI: connections wait), then read setup again. No message back or button instructions are needed.",
    "tell_person": "Open the returned url to sign in on LinkedIn and allow the connection. Only you can authorize your account; the agent cannot do that for you."
  }
}
```

Success: HTTP 200. Content-Type: application/json.

**Errors:** `invalid_request` (400), `internal` (500), `unauthorized` (401), `invalid_token` (401), `session_expired` (401), `bad_origin` (403). See the [error codes](https://app.flaghand.com/docs/errors.md) for meanings and the shared default error response. Other domain errors from that catalog may apply; the response's code and message are authoritative.

**CLI:** `flaghand meta get-me`

```sh
flaghand meta get-me --json
```

**MCP tool:** `getMe` (also reachable through `callReadOperation`; use `getOperation` to load its full schema).

```json
{
  "name": "callReadOperation",
  "arguments": {
    "operation_id": "getMe",
    "arguments": {}
  }
}
```

Base URL: `https://app.flaghand.com/api/v1`. Part of the [API reference](https://app.flaghand.com/docs/api.md); every error code is in [errors](https://app.flaghand.com/docs/errors.md).
