RecommendSlimQuery
The request payload for the recommendations endpoint.
| Field | Type | Required | Nullable | Notes |
|---|---|---|---|---|
card_format | enum | No | No | How every card in the request is identified: the commanders, the deck, the keys of weighted_deck, and explicit candidates. One of oracle_id, scryfall_id, name, or set_collector_number, which is set|number with an optional |language (English when left off). Defaults to oracle_id. |
commander | string | Yes | No | The main commander identifier. At most 150 characters. |
partner | string | No | Yes | Optional partner commander. At most 150 characters. |
deck | string[] | No | No | Cards encoded using the selected card_format. At most 500 cards, each identifier at most 150 characters. |
weighted_deck | object | No | Yes | Cards mapped to a weight between -10 and 10, for how much each counts toward the recommendations. A card in deck counts 1.0 unless it is weighted here. A card listed only here is added to the deck. A negative weight counts against the cards usually played with that card. At most 500 cards, each identifier at most 150 characters. |
candidate_step | RecommendSlimCandidateStep | No | Yes | Which cards are ranked. Leave it out to rank the cards in the commanders’ color identity. |