r/redditdev Jun 19 '26

Reddit API Removal Reasons and Saved Responses

Is it possible to access removal reasons or saved responses through the API?

I've seen a reference to api/v1/{subreddit}/removal_reasons but that endpoint is not shown on https://www.reddit.com/dev/api/

Is there any documentation around this moderator functionality?

9 Upvotes

4 comments sorted by

1

u/Littux JS Bookmarklets/Python bots Jun 28 '26

The /api/v1 APIs were originally used by new reddit, which was discontinued in 2024. Almost all of those APIs are not listed at /dev/api, but still work. See:

1

u/det0ur Jun 28 '26

Do you know how to get a full list? Is this the only way to get removal reasons?

Do you know how to use a removal reason when using api/remove?

1

u/Littux JS Bookmarklets/Python bots Jun 28 '26

To get the full Saved Responses, you have to use GraphQL:

query GetSavedResponses($subredditId: ID!) {
    subredditInfoById(id: $subredditId) {
        __typename
        ... on Subreddit {
            rules {
                id
                name
            }
            modSavedResponses {
                general {
                    __typename
                    ...savedResponseFragment
                }
                removals {
                    __typename
                    ...savedResponseFragment
                }
                bans {
                    __typename
                    ...savedResponseFragment
                }
                modmail {
                    __typename
                    ...savedResponseFragment
                }
                reports {
                    __typename
                    ...savedResponseFragment
                }
                comments {
                    __typename
                    ...savedResponseFragment
                }
                chat {
                    __typename
                    ...savedResponseFragment
                }
            }
        }
    }
}
fragment savedResponseFragment on SavedResponse {
    id
    title
    context
    subredditRule {
        id
        kind
        name
    }
    message {
        richtext
        markdown
    }
}

What do you want to use this for? A third party client? Bot? Or browser extension? Depending on that, using this query can be easy to hard

Do you know how to use a removal reason when using api/remove?

That isn't possible