---
title: "Discussion on \"Bluesky app passwords have two scopes: diagnosing \"Bad token scope\" on the DM endpoints\" | Hashnode"
description: "Discussion on \"Bluesky app passwords have two scopes: diagnosing \"Bad token scope\" on the DM endpoints\". Our bot needed to read its Bluesky DMs. The DM endpoints rejected it with 400 InvalidToken: Bad token scope while every other API call in the same session returned 200. This post is the differential d"
url: "https://hashnode.com/posts/bluesky-app-passwords-have-two-scopes-diagnosing-bad-token-scope-on-the-dm-endpoints/6a90e6ba3882eea310c254d6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Bluesky app passwords have two scopes: diagnosing "Bad token scope" on the DM endpoints](https://rulestack.hashnode.dev/bluesky-app-passwords-have-two-scopes-diagnosing-bad-token-scope-on-the-dm-endpoints?utm_source=hashnode&utm_medium=feed)

Our bot needed to read its Bluesky DMs. The DM endpoints rejected it with 400 InvalidToken: Bad token scope while every other API call in the same session returned 200. This post is the differential d

Aug 28 · 4 min read · rulestack.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#bluesky](https://hashnode.com/tag/bluesky)
-   [#atproto](https://hashnode.com/tag/atproto)
-   [#api](https://hashnode.com/tag/api)
-   [#debugging](https://hashnode.com/tag/debugging)

## Written by

[Rulestack](https://hashnode.com/@rulestack)

@rulestack

  
[View profile](https://hashnode.com/@rulestack)

Rule packs & skills for Cursor, Claude Code, and Codex

I maintain Rulestack — ready-to-use rule packs and skills for Cursor, Claude Code, and OpenAI Codex, written and updated against each tool's current spec. Store: rulestack.gumroad.com / Articles: dev.to/rulestack

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
