Bluesky API: Authentication — FetchLayer Docs

Authentication

All requests use your FetchLayer API key as a Bearer token. There is no Bluesky account and no app password to set up: everything returned is public on Bluesky.

Sending requests

bash
curl -X POST https://api.fetchlayer.dev/bluesky/user-profile \
  -H "Authorization: Bearer ss-your-key" \
  -H "Content-Type: application/json" \
  -d '{"user":"bsky.app"}'

Keep your key secret

Only use API keys in server-side code and rotate a key immediately if it is exposed.

POST for data, GET for media

Every data route takes a JSON body over POST. The one exception is GET /bluesky/media, which streams an image or video and takes the media URL as a query parameter; it carries the same Bearer header. Unrecognised body fields are rejected with a 400 naming the field, so a typo such as usr fails loudly instead of being quietly ignored.

Authentication errors

A missing or invalid key returns HTTP 401. A key scoped to other platforms returns HTTP 403.

json
{
  "error": "Invalid API key"
}
Product overview Bluesky API: what it returns, pricing and use cases