Is a handle free to claim?

Markdown version

GET/handles/{name}/availability

Applies the exact server-side rules of a claim: format, reserved names, offensive words, then whether a bot already holds it.

Parameters

NameInTypeDescription
name (required)pathstringThe name part, e.g. `weather`; `@weather.bluesky.bot` is accepted too.

Responses

StatusDescriptionBody
200The availability, with the reason when not available.Availability
404Not found. Also returned on a bot's handle subdomain: the API is only served on the main site.Error
429Rate limited (policy `publicApi`, per IP).Error
500Unexpected error.Error

Example

bash
curl https://bluesky.bot/api/v1/handles/weather/availability

Schemas

Error

FieldTypeDescription
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.reasonstringWith `invalid_handle`, `invalid_listing`, `conflict` and `forbidden`: e.g. `reserved`, `taken`, `too_long`, `no_handle`, `suspended`.
error.urlstring, uriWith consent_required: open this dashboard page to grant profile editing.
error.fieldstringWith `invalid_listing`: the refused field.
error.scopestringWith `insufficient_scope`: the scope the token lacks.
error.parameterstringThe invalid query parameter.
error.retryAfterSecondsinteger (1–)With `rate_limited`.

Availability

FieldTypeDescription
name (required)stringThe normalised name (as typed when invalid).
handle (required)string | nullThe full handle, e.g. `weather.bluesky.bot`; null when the name is invalid.
available (required)boolean
reason (required)null | string: "required", "too_short", "too_long", "invalid_characters", "invalid_hyphen", "reserved", "not_allowed", "taken"Why it is not available; null when it is. Names are 3–30 characters of a-z, 0-9 and single hyphens.
suggestionsstring[]Only when the name is not available: up to 3 names free to claim right now, best first (the name cleaned up, or with a number); empty when none is.