{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/api.inazumacard.com"
        }
    ],
    "info": {
        "name": "InazumaCard API Documentation",
        "_postman_id": "91a31b2f-a919-4fbf-8327-a0e0ff3f2d9f",
        "description": "Public REST API for browsing trading cards and sharing card collections.",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Endpoints",
            "description": "",
            "item": [
                {
                    "name": "List cards",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/cards",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "Axel+Blaze",
                                    "description": "Partial, case-insensitive match against the card name.",
                                    "disabled": false
                                },
                                {
                                    "key": "set",
                                    "value": "Football+Frontier",
                                    "description": "Exact match against the set code.",
                                    "disabled": false
                                },
                                {
                                    "key": "type",
                                    "value": "Reserve",
                                    "description": "Exact match against the card type.",
                                    "disabled": false
                                },
                                {
                                    "key": "rarity",
                                    "value": "Rare",
                                    "description": "Exact match against the rarity.",
                                    "disabled": false
                                },
                                {
                                    "key": "attribute",
                                    "value": "Power",
                                    "description": "Exact match against the attribute.",
                                    "disabled": false
                                },
                                {
                                    "key": "team",
                                    "value": "Raimon",
                                    "description": "Exact match against the team.",
                                    "disabled": false
                                },
                                {
                                    "key": "position",
                                    "value": "FW",
                                    "description": "Exact match against the position.",
                                    "disabled": false
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "description": "Page number when paginating.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/cards?search=Axel+Blaze&set=Football+Frontier&type=Reserve&rarity=Rare&attribute=Power&team=Raimon&position=FW&page=1"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Returns a paginated list of cards (24 per page).",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":131,\"name\":\"Aniya Mayer\",\"set\":\"Voluptate Dolor In Dolore\",\"collectors_number\":\"OV 73\\\/100\",\"rarity\":\"Super Rare\",\"type\":\"Reserve\",\"image_url\":\"https:\\\/\\\/api.inazumacard.com\\\/storage\\\/cards\\\/lquaslzu.jpg\",\"attribute\":\"Tactic\",\"position\":\"FW\",\"skill_points\":200,\"ability\":\"Ut rerum porro est quas ut facere voluptatem.\",\"effect\":null,\"requirement\":null,\"team\":\"Eius Eaque\",\"level\":3,\"fired_up_skill_points\":800,\"assist_points\":200,\"flavor_text\":\"Quia fuga commodi incidunt quia culpa vel incidunt autem qui quasi saepe repellendus.\",\"artist\":\"Annamae Daugherty\"},{\"id\":132,\"name\":\"Clarissa Hackett\",\"set\":\"Quisquam Molestiae Sit Cum\",\"collectors_number\":\"DL 24\\\/100\",\"rarity\":\"Rare\",\"type\":\"Reserve\",\"image_url\":\"https:\\\/\\\/api.inazumacard.com\\\/storage\\\/cards\\\/jtwwbigd.jpg\",\"attribute\":\"Speed\",\"position\":\"MF\",\"skill_points\":400,\"ability\":\"Aut id autem eos sit.\",\"effect\":null,\"requirement\":null,\"team\":\"Hic Non\",\"level\":5,\"fired_up_skill_points\":900,\"assist_points\":200,\"flavor_text\":\"Eius eos voluptates cum perspiciatis labore eveniet sed consequatur optio ut.\",\"artist\":\"Orrin Langosh\"}],\"links\":{\"first\":\"\\\/?page=1\",\"last\":\"\\\/?page=1\",\"prev\":null,\"next\":null},\"meta\":{\"current_page\":1,\"from\":1,\"last_page\":1,\"links\":[{\"url\":null,\"label\":\"&laquo; Previous\",\"page\":null,\"active\":false},{\"url\":\"\\\/?page=1\",\"label\":\"1\",\"page\":1,\"active\":true},{\"url\":null,\"label\":\"Next &raquo;\",\"page\":null,\"active\":false}],\"path\":\"\\\/\",\"per_page\":24,\"to\":2,\"total\":2}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Show a card",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/cards\/:card_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/cards\/:card_id",
                            "variable": [
                                {
                                    "id": "card_id",
                                    "key": "card_id",
                                    "value": "1",
                                    "description": "The ID of the card."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Returns a single card.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":133,\"name\":\"Tiffany Rath\",\"set\":\"Dolorem Veniam Esse Placeat\",\"collectors_number\":\"WB 96\\\/100\",\"rarity\":\"Common\",\"type\":\"Reserve\",\"image_url\":\"https:\\\/\\\/api.inazumacard.com\\\/storage\\\/cards\\\/qslmychy.jpg\",\"attribute\":\"Speed\",\"position\":\"FW\",\"skill_points\":400,\"ability\":\"Sed aperiam tempora ut veritatis et dolor eum.\",\"effect\":null,\"requirement\":null,\"team\":\"Sint Saepe\",\"level\":4,\"fired_up_skill_points\":800,\"assist_points\":100,\"flavor_text\":\"Blanditiis voluptatem culpa et id consequatur placeat corrupti voluptatum sed optio id.\",\"artist\":\"Jonathan Legros\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Encode a collection",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/collections\/encode",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/collections\/encode"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"items\":[{\"cardId\":16,\"count\":22}]}"
                        },
                        "description": "Encodes a list of card IDs and counts into a compact, shareable token. Returns\na 422 validation error when the resulting token would exceed 2000 characters \u2014\nin that case clients should fall back to the file-import flow.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"data\": {\n    \"token\": \"eJxdjsEKwjAQRH8l5GpJ...\",\n    \"item_count\": 12,\n    \"token_length\": 184\n  }\n}",
                            "name": "success"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"items\": [\"Collection too large to share as a link \u2014 use file export instead.\"]\n  }\n}",
                            "name": "token too large"
                        }
                    ]
                },
                {
                    "name": "Decode a collection token",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/collections\/decode",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/collections\/decode"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"token\":\"eJxdjsEKwjAQRH8l5GpJ...\"}"
                        },
                        "description": "Decodes a shared collection token back into card records. Cards whose IDs no\nlonger exist in the database are listed separately under `missing` so the\nclient can surface them to the user.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"items\":[{\"card\":{\"id\":134,\"name\":\"Christelle Bailey\",\"set\":\"Animi Quos Velit Et\",\"collectors_number\":\"VD 29\\\/100\",\"rarity\":\"Common\",\"type\":\"Reserve\",\"image_url\":\"https:\\\/\\\/api.inazumacard.com\\\/storage\\\/cards\\\/ujwvlxjk.jpg\",\"attribute\":\"Speed\",\"position\":\"MF\",\"skill_points\":400,\"ability\":\"Aut ab provident perspiciatis quo omnis nostrum aut.\",\"effect\":null,\"requirement\":null,\"team\":\"Adipisci Quidem\",\"level\":3,\"fired_up_skill_points\":600,\"assist_points\":400,\"flavor_text\":\"Iure odit et et modi ipsum nostrum omnis autem et consequatur aut dolores enim non.\",\"artist\":\"Matilda Feeney\"},\"cardId\":134,\"count\":3},{\"card\":null,\"cardId\":1132,\"count\":1}],\"missing\":[{\"cardId\":1132,\"count\":1}]}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Import a collection file",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/collections\/import-file",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/collections\/import-file"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "multipart\/form-data"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "collection",
                                    "src": [],
                                    "type": "file"
                                }
                            ]
                        },
                        "description": "Imports a collection from an uploaded JSON file (max 256KB). The response\nshape matches the `decode` endpoint, with resolved cards under `items` and\nunresolved IDs under `missing`.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"items\":[{\"card\":{\"id\":135,\"name\":\"Christelle Bailey\",\"set\":\"Animi Quos Velit Et\",\"collectors_number\":\"VD 29\\\/100\",\"rarity\":\"Common\",\"type\":\"Reserve\",\"image_url\":\"https:\\\/\\\/api.inazumacard.com\\\/storage\\\/cards\\\/ujwvlxjk.jpg\",\"attribute\":\"Speed\",\"position\":\"MF\",\"skill_points\":400,\"ability\":\"Aut ab provident perspiciatis quo omnis nostrum aut.\",\"effect\":null,\"requirement\":null,\"team\":\"Adipisci Quidem\",\"level\":3,\"fired_up_skill_points\":600,\"assist_points\":400,\"flavor_text\":\"Iure odit et et modi ipsum nostrum omnis autem et consequatur aut dolores enim non.\",\"artist\":\"Matilda Feeney\"},\"cardId\":135,\"count\":3},{\"card\":null,\"cardId\":1133,\"count\":1}],\"missing\":[{\"cardId\":1133,\"count\":1}]}}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "noauth"
    }
}