The account behind the token
Markdown versionGET/me
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Your account and the token's expiry. | Me |
| 401 | Missing, expired or revoked token (code `unauthorized`). Run `bsbot login` again. | Error |
| 404 | No such bot in your account, or a bot's handle subdomain (the API is only served on the main site). | Error |
| 429 | Rate limited: `publicApi` per IP, `creatorApi` per account, and `handleChange` per account for claims, switches, checks and releases (shared with the dashboard). | Error |
| 500 | Unexpected error. | Error |
Example
curl \
-H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
https://bluesky.bot/api/v1/meSchemas
Error
| Field | Type | Description |
|---|---|---|
| error (required) | object | |
| error.code (required) | string: "bad_request", "invalid_handle", "not_found", "rate_limited", "internal_error", "unauthorized", "forbidden", "conflict", "invalid_grant", "upstream_error", "insufficient_scope", "invalid_listing", "consent_required" | |
| error.message (required) | string | |
| error.reason | string | With `invalid_handle`, `invalid_listing`, `conflict` and `forbidden`: e.g. `reserved`, `taken`, `too_long`, `no_handle`, `suspended`. |
| error.url | string, uri | With consent_required: open this dashboard page to grant profile editing. |
| error.field | string | With `invalid_listing`: the refused field. |
| error.scope | string | With `insufficient_scope`: the scope the token lacks. |
| error.parameter | string | The invalid query parameter. |
| error.retryAfterSeconds | integer (1–) | With `rate_limited`. |
Account
| Field | Type | Description |
|---|---|---|
| did (required) | string | |
| handle (required) | string | Your Bluesky handle. |
| displayName | string | null |
Me
| Field | Type | Description |
|---|---|---|
| creator (required) | Account | |
| token (required) | object | |
| token.kind | string: "cli", "deploy" | A CLI login token, or a listing-only deploy token made in Settings. |
| token.name (required) | string | The token name given at login or in Settings. |
| token.createdAt (required) | string, date-time | |
| token.expiresAt (required) | string, date-time | |
| token.scopes (required) | string: "handles", "listing"[] | What the token may do: `handles` (list the bots, claim, switch, verify, release, checkups) and `listing` (read and edit listings). A CLI token issued before the `listing` scope has `handles` only. |
| token.botDid (required) | string | null | The only bot the token may touch; null for all your bots. |