Strange API in mutateNextCardStates in V3 scheduler

The example invocation I found in another post

anki.mutateNextCardStates('785303122174544279', (states) => {
console.log(JSON.stringify(states, null, 4)); })

uses a hard-coded key. From the source in ts/reviewer/answering.ts it looks like the key is something like the card-id. How can I obtain that key from within JavaScript?

Thanks, Andreas

1 Like

It’s not intended to be a public API; you should put the js in the deck options instead.