Launch offer: service fee 10% 4% until 31 Dec, just enough to cover card processing. See pricing

← REST API reference

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.

View as Markdown
GEThttps://yapfactory.com/api/v1/me
Who can use itEveryone: brands and creators
Tierread: Reads. Changes nothing.
Scopeaccount:read, or read
Idempotency-KeyNot used
Rate limitReads: 120 a minute
MCP toolget_account

Parameters

None.

Example request

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.

{
  "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

CodeStatusWhen
invalid_request400A field failed validation (see meta.issues), or an unknown query parameter.
unauthorized401No token, or it's wrong, expired, revoked or from the other environment.
insufficient_scope403The token doesn't have account:read (or read).
forbidden403Not allowed for this account, for example while it's paused.
rate_limited429Over the limit. Wait for Retry-After seconds.
internal500Our fault. Retry later, and send us the requestId if it keeps happening.

Every error has the same shape. See Errors for what to do about each one.