Skip to content
Sign in
Docs/API reference/Dashboard/Dashboard snapshot

Dashboard snapshot

GET /v1/bootstrap scope read

One snapshot to open the dashboard: session, workspaces, channels, notifications (the last 20 and unreadCount), preferences, billing (summary), account (security summary: MFA, passkeys and a short session list), onboarding and counters (unanswered comments and queued posts, by network and by channel), each section with the same body as its own route, plus version. session, workspaces, account and onboarding exist only for a dashboard session (null with an API key). No third-party calls: it reads what the sync jobs stored. Send If-None-Match with the previous ETag (W/"<version>") to get 304 when nothing changed (1 database round trip). Answers 404 route_not_found while the server keeps it switched off.

HeadersAuthorization: Bearer praeko_… and X-Praeko-Contract: en. Always send both.

Example

curl "https://praeko.app/v1/bootstrap" \
  -H "Authorization: Bearer $PRAEKO_KEY" \
  -H "X-Praeko-Contract: en"

Response

Success status When
200 Success.
Response 200
{
  "version": "42.3fa9c1d2",
  "session": {
    "email": "marcone@example.com",
    "name": "Marcone",
    "avatar": null,
    "role": "owner",
    "scope": "admin",
    "workspace": {
      "id": "ws_01KA3V0R5D8M2WQ7X4HT9NZ1BF",
      "name": "Marcone"
    },
    "platformAdmin": false,
    "expiresAt": "2026-12-07T14:02:11.482Z",
    "language": {
      "saved": "pt-BR",
      "waitlist": null
    },
    "reviewAccount": {
      "expiresAt": "2026-12-07T14:02:11.482Z",
      "platform": "meta"
    }
  },
  "workspaces": {
    "workspaces": [
      {
        "id": "ws_01KA3V0R5D8M2WQ7X4HT9NZ1BF",
        "name": "Marcone",
        "role": "owner",
        "current": true
      }
    ]
  },
  "channels": {
    "channels": [
      {
        "network": "youtube",
        "supported": true,
        "id": "01KA3V0R5D8M2WQ7X4HT9NZ1BF",
        "connected": true,
        "detail": "Marcone's Channel",
        "name": "Marcone's Channel",
        "timezone": "America/Sao_Paulo",
        "slots": 3,
        "avatar": "/v1/channels/youtube/avatar",
        "default": true
      },
      {
        "network": "instagram",
        "supported": true,
        "id": "01KA3V1G4C7N9PXS2WQ6HM8TDZ",
        "connected": true,
        "detail": "via the Meta API",
        "timezone": "America/Sao_Paulo",
        "slots": 0,
        "meta": {
          "connected": true,
          "username": "dev.ocioso"
        },
        "name": "dev.ocioso"
      },
      {
        "network": "tiktok",
        "supported": true,
        "connected": false,
        "detail": "not connected (the TIKTOK_CLIENT_KEY and TIKTOK_CLIENT_SECRET secrets are missing)"
      },
      {
        "network": "facebook",
        "supported": false,
        "comingSoon": true,
        "connected": false,
        "detail": "coming soon"
      }
    ]
  },
  "notifications": {
    "notifications": [
      {
        "id": "01KA3ZB6T8N2QW5XH0D7MV4CRE",
        "event": "postFailed",
        "data": {
          "event": "post.failed",
          "title": "The test that only failed on Mondays",
          "network": "youtube",
          "error": "YouTube rejected the video (daily quota exceeded)",
          "postId": "01KA3W2Y6H1RC5ZQ8M0T4VXE7N"
        },
        "link": {
          "type": "post",
          "id": "01KA3W2Y6H1RC5ZQ8M0T4VXE7N"
        },
        "read": false,
        "createdAt": "2026-11-07T14:02:11.482Z"
      }
    ],
    "unreadCount": 1,
    "next": "01KA3ZB6T8N2QW5XH0D7MV4CRE"
  },
  "preferences": {
    "theme": "dark",
    "language": "pt-BR",
    "notifications": {
      "postSent": {
        "email": false,
        "panel": true
      },
      "postFailed": {
        "email": true,
        "panel": true
      },
      "scheduledFail": {
        "email": false,
        "panel": true
      },
      "weeklySummary": {
        "email": false,
        "panel": true
      },
      "newComment": {
        "email": false,
        "panel": true
      }
    }
  },
  "billing": {
    "courtesy": null,
    "plan": "free",
    "interval": null,
    "price": {
      "amount": 0,
      "currency": "BRL",
      "interval": "month"
    },
    "enforced": false,
    "configured": true,
    "missing": [],
    "status": "none",
    "access": {
      "allowed": true,
      "reason": "billing_off",
      "graceEndsAt": null
    },
    "grandfathered": false,
    "currentPeriodEnd": null,
    "cancelAtPeriodEnd": false,
    "canManage": false,
    "lastCheckoutId": null,
    "effectivePlan": "free"
  },
  "account": {
    "email": "marcone@example.com",
    "name": "Marcone",
    "avatar": null,
    "role": "owner",
    "workspace": {
      "id": "ws_01KA3V0R5D8M2WQ7X4HT9NZ1BF",
      "name": "Marcone"
    },
    "platformAdmin": false,
    "createdAt": "2026-11-07T14:02:11.482Z",
    "deletionRequestedAt": null,
    "mfa": {
      "totp": true,
      "required": false,
      "recoveryCodesLeft": 8
    },
    "passkeys": 1,
    "sessions": [
      {
        "current": true,
        "createdAt": "2026-11-07T14:02:11.482Z",
        "lastUsedAt": "2026-11-07T14:02:11.482Z"
      }
    ]
  },
  "onboarding": {
    "publishTo": [
      "youtube"
    ],
    "updatedAt": "2026-11-07T14:02:11.482Z",
    "guide": null
  },
  "counters": {
    "comments": {
      "unanswered": 3,
      "byNetwork": {
        "youtube": 3
      },
      "byChannel": {
        "01KA3V0R5D8M2WQ7X4HT9NZ1BF": 3
      }
    },
    "queue": {
      "total": 2,
      "byNetwork": {
        "youtube": 2
      },
      "byChannel": {
        "01KA3V0R5D8M2WQ7X4HT9NZ1BF": 2
      }
    }
  }
}

Each section is the body of the matching route (channels = GET /v1/channels, notifications = the first page of GET /v1/notifications…), so the dashboard opens from one read. session, workspaces, account and onboarding are null with an API key; account is the body of GET /v1/account plus sessions (current, createdAt, lastUsedAt). counters.comments is null while the local comment copy is switched off; counters.queue counts scheduled, running or failed items. version is the number inside the weak ETag (W/"<version>"); null while the server has no version counter. With an If-None-Match equal to the ETag, the response is 304 with no body. The response is private, no-cache. channels.channels[].detail is free text the server writes in Portuguese; the example shows it in English.

Errors

Status code When
404 route_not_found The server does not switch this route on yet (an old server answers the same): read each section's own route.

Errors on any route

Status code When
401 unauthorized The Authorization: Bearer … header is missing.
401 invalid_api_key The key does not exist.
401 revoked_api_key The key has been revoked.
401 expired_api_key The key has expired.
403 forbidden The key's scope is not enough for this route (see the scope badge).
429 rate_limited The per-minute request limit was exceeded.

The body of every error is { "error": { "code", "message", "details"? } }. See all error codes.

Try it

Try it

The live test uses your key and your account. It stays off when you are not signed in.

Sign in to try it
Question or mistake on this page? contato@praeko.appView .md

Type to search pages, routes and error codes.