AT URI and bsky.app link converter
Markdown versionGET/tools/at-uri-converter
Converts a bsky.app link (profile, post, feed, list, starter pack) to its `at://` URI with the DID, and an `at://` URI back to its bsky.app links.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| uri (required) | query | string | A bsky.app link or an `at://` URI (a handle or a DID alone is a profile). |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The tool's answer, with the canonical URL of its page. | ToolAtUriConverter |
| 400 | Invalid query parameter (code `bad_request`). | Error |
| 401 | Unknown, expired or revoked token (code `unauthorized`). Without an `Authorization` header, the tool answers anonymously. | Error |
| 404 | Not found. Also returned on a bot's handle subdomain: the API is only served on the main site. | Error |
| 429 | Rate limited: `toolsApi` (60 a minute) and `toolsApiDaily` (2,000 a day) per IP, or 10 times both per account with a creator's token. A tool that fans out costs more than one call. | Error |
| 500 | Unexpected error. | Error |
| 502 | The service the tool asks did not answer (code `upstream_error`). | Error |
Example
curl \
-G \
--data-urlencode "uri=https://bsky.app/profile/bsky.app" \
-H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
https://bluesky.bot/api/v1/tools/at-uri-converterSchemas
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`. |
ToolAtUriConverter
| Field | Type | Description |
|---|---|---|
| tool (required) | string = "at-uri-converter" | The tool's slug. |
| url (required) | string | The canonical URL of the tool's page on Bluesky.bot. |
| result (required) | object | The tool's answer. |
| result.atUri (required) | string | The `at://` URI, with the DID. |
| result.did (required) | string | The DID. |
| result.handle (required) | string | null | A handle verified both ways for the DID (it resolves to the DID, and the DID document claims it), or null. |
| result.collection (required) | string | null | The collection NSID. |
| result.rkey (required) | string | null | The record key. |
| result.kind (required) | string: "profile", "post", "feed", "list", "starterpack", "other" | What the URI points to; `other` has no bsky.app page. |
| result.bskyUrl (required) | string | null | The bsky.app link with the handle. |
| result.bskyUrlDid (required) | string | null | The stable bsky.app link, with the DID. |
| result.rkeyIsTid (required) | boolean | The record key is a TID, which holds a date. |