# Your Yap Factory account

> Who is signed in: brand and/or creator, country and currency, what this connection is allowed to do, and the one next thing worth doing (gettingStarted). Shows which tools apply to this account.

```http
GET https://yapfactory.com/api/v1/me
```

|   |   |
| --- | --- |
| Who can use it | Everyone: brands and creators |
| Tier | `read`: Reads. Changes nothing. |
| Scope | `account:read`, or `read` |
| Idempotency-Key | Not used |
| Rate limit | Reads: 120 a minute |
| MCP tool | [`get_account`](https://yapfactory.com/developers/tools.md#get_account) |

## Parameters

None.

## Example request

```bash
curl "https://yapfactory.com/api/v1/me" \
  -H "Authorization: Bearer $YAP_API_KEY"
```

## Response

`200` with the result in `data`: the same object the MCP tool returns.

```json
{
  "data": {
    "name": "Dana Lee",
    "email": "dana@sleepwell.app",
    "country": "US",
    "currency": "USD",
    "sides": [
      "brand"
    ],
    "brand": {
      "company": "Sleepwell",
      "country": "US",
      "paused": false,
      "home": "https://yapfactory.com/brand"
    },
    "creator": null,
    "canAct": true,
    "gettingStarted": {
      "step": "review_draft",
      "say": "Maya R.'s draft is ready to review.",
      "url": "https://yapfactory.com/deals/3b2f6c1e-7a54-4d0b-9f1a-6e5d4c3b2a19"
    },
    "environment": "live",
    "connection": {
      "app": "API key",
      "kind": "api_key",
      "scopes": [
        "read",
        "write"
      ],
      "manage": "https://yapfactory.com/brand/settings#agents"
    }
  }
}
```

An example: fields that don't apply are `null`, and new fields can be added at any time, so ignore ones you don't know. Every response carries `Request-Id` and the `RateLimit-*` headers.

## Errors

| Code | Status | When |
| --- | --- | --- |
| `invalid_request` | 400 | A field failed validation (see `meta.issues`), or an unknown query parameter. |
| `unauthorized` | 401 | No token, or it's wrong, expired, revoked or from the other environment. |
| `insufficient_scope` | 403 | The token doesn't have `account:read` (or `read`). |
| `forbidden` | 403 | Not allowed for this account, for example while it's paused. |
| `rate_limited` | 429 | Over the limit. Wait for `Retry-After` seconds. |
| `internal` | 500 | Our fault. Retry later, and send us the `requestId` if it keeps happening. |

Every error has the same shape. See [Errors](https://yapfactory.com/developers/errors.md) for what to do about each one.

---

HTML version: https://yapfactory.com/developers/api/get_account
