AnkiConnect: Getting unsupported action Error: createFilteredDeck Command Not Working

Hello everyone,

I’m trying to create a filtered deck using the createFilteredDeck command in Anki Connect, but I keep getting the unsupported action error. If anyone can assist, I would greatly appreciate it.

Error Message:

{
  "result": null,
  "error": "unsupported action"
}

Steps I’ve Taken:

  1. I made sure Anki Connect is correctly installed and that Anki is open.
  2. Verified that Anki Connect is enabled in the Add-ons section of Anki.
  3. Restarted both Anki and Anki Connect.
  4. Tested connection to Anki Connect using cURL and checked for available actions via the actionList command.
  • The actionList command ran successfully, but I still received the unsupported action error when attempting createFilteredDeck.

The Command I’m Using:

I’m attempting to use the createFilteredDeck command like this:

{
  "action": "createFilteredDeck",
  "version": 6,
  "params": {
    "deckName": "MissedThisWeek",
    "search": "tag:missed_once is:suspended",
    "options": {
      "limit": 100,
      "reschedule": false
    }
  }
}

What I Need Help With:

  • I checked whether I’m using the latest version of Anki Connect. If this command isn’t supported in the current version, I’d like to know how to update Anki Connect.
  • If the createFilteredDeck command is not supported in the current Anki Connect version, how can I resolve this issue or work around it?

Questions:

  1. How can I use the createFilteredDeck command properly with Anki Connect ?
  2. If Anki Connect’s current version does not support this command, how can I update it?

Any help would be much appreciated. Thanks in advance!

1 Like

I don’t think you can create a filtered deck with cards which are already buried or suspended. Could you try creating a filtered deck without this clause?
Also, are you on 25.02.1? There might be some issues with AnkiConnect due to the recent update (not sure if it has been fixed yet).

Hi,

Thanks for the suggestion! I tried removing the is:suspended clause from the createFilteredDeck query as you recommended, but I’m still getting the same unsupported action error. Additionally, when I try running the actionList command to list the available actions, it also fails.

Here are the steps I’ve tried :

1. Removed is:suspended Clause

I updated the query to:
"search": "tag:missed_once"

However, the error persists:
{"result": null, "error": "unsupported action"}

2. Tried Python and cURL

Both Python code and cURL command are giving the same error. Here’s what I tried:

Python code:

import requests

anki_connect_url = "http://localhost:8765"

payload_create_filtered_deck = {
    "action": "createFilteredDeck",
    "version": 6,
    "params": {
        "deckName": "MissedThisWeek",
        "search": "tag:missed_once",
        "options": {
            "limit": 100,
            "reschedule": False
        }
    }
}

response_create_filtered_deck = requests.post(anki_connect_url, json=payload_create_filtered_deck)
print(response_create_filtered_deck.json())

cURL command:

curl -X POST http://localhost:8765 \
  -H "Content-Type: application/json" \
  -d '{
    "action": "createFilteredDeck",
    "version": 6,
    "params": {
      "deckName": "MissedThisWeek",
      "search": "tag:missed_once",
      "options": {
        "limit": 100,
        "reschedule": false
      }
    }
  }'

3. actionList Command Also Failing:

When I run the actionList command to check the available actions, I get the same unsupported action error:

curl -X POST http://localhost:8765 \
  -H "Content-Type: application/json" \
  -d '{"action":"actionList","version":6,"params":{}}'

This should list available actions, but it’s not working either.

What I’ve Tried So Far

:

  1. Anki Connect is enabled and active .
  2. Anki is running and up-to-date .
  3. I have tried restarting Anki and reinstalling Anki Connect but the error still persists.

Questions:

  1. Is the createFilteredDeck command supported in Anki Connect for Anki 25.02.1 ?
  2. I am currently using Anki 25.02.1, what can I do to get rid of that if this is a version-related issue?

Any help or suggestions would be appreciated!

Could you try downgrading (steps if you need) to a previous version (try both 25.02 and 24.11)?
Here’s a discussion on the issues caused by the new update, maybe that gives you some insight.

1 Like

Hello,
I was confronted with the same problem and, according to my knowledge a function for “Create Filtered Deck” was never implemented:

1 Like

I gave this also a try but didn’t help. (tried it with 24.11) :frowning:

1 Like

Oh, I thought it was a feature. Can someone confirm that? And did you manage to find a workaround? If so, how? Thanks.

Apologies, I was just suggesting what could work. I was unaware of the fact that such an API doesn’t exist. (I also don’t have much experience with AnkiConnect)

The link sent above is from 5 years ago. They might’ve added that feature. Anyone knows where to check?

The add on download link (https://ankiweb.net/shared/info/2055492159) links to their official website. You should check it out, as it has a lot of examples and a huge list of supported actions.

1 Like

Where did you find the idea to use createFilteredDeck? I’m assuming you’re referring to a documentation somewhere, but I don’t see this action on the Anki Connect site.

1 Like

Actually, an AI suggested this. I was experimenting with the o4‑mini-high model, and it made that recommendation, so I decided to give it a try. However, I couldn’t find the corresponding AnkiConnect action afterward. Is there any way to create filtered decks based on specific tags through AnkiConnect?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.