{
  "info": {
    "name": "Rueda Lens API",
    "description": "AI-powered tire and vehicle identification API by Tire&Go.\n\nThis collection includes all public API endpoints for vehicle recognition, health checks, and request retrieval.\n\n**Recognition modes:** `POST /v1/analyze` supports two modes selected via the required `mode` field — `single` (one tire image) and `dual` (tire + vehicle image). The Recognition folder includes a ready-to-run request for each.\n\n**Getting started:**\n1. Set your API key in the collection variables (`RUEDA_LENS_API_KEY`)\n2. Optionally customize `BASE_URL` if using a different environment\n3. Start with the Health Check request to verify connectivity\n4. Use an Analyze Vehicle request (Single or Dual Mode) with your tire and vehicle images\n\n**Documentation:** https://docs.ruedalens.com",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "0"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{RUEDA_LENS_API_KEY}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "BASE_URL",
      "value": "https://api.ruedalens.com",
      "type": "string"
    },
    {
      "key": "RUEDA_LENS_API_KEY",
      "value": "rdlns_sk_your_api_key_here",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Health",
      "item": [
        {
          "name": "Health Check",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Status code is 200\", function () {",
                  "    pm.response.to.have.status(200);",
                  "});",
                  "",
                  "pm.test(\"API is healthy\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    pm.expect(jsonData.status).to.eql(\"healthy\");",
                  "});",
                  "",
                  "pm.test(\"Response has version\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    pm.expect(jsonData.version).to.exist;",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "auth": {
              "type": "noauth"
            },
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/v1/health",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "v1",
                "health"
              ]
            },
            "description": "Check the health status of the Rueda Lens API.\n\n**Authentication:** None required (public endpoint)\n\n**Response:**\n- `200 OK`: API is healthy and operational\n- `503 Service Unavailable`: API is experiencing issues\n\n**Notes:**\n- Does not consume your API quota\n- Typical response time: < 500ms\n- Use for monitoring and pre-flight checks"
          },
          "response": [
            {
              "name": "Healthy",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{BASE_URL}}/v1/health",
                  "host": [
                    "{{BASE_URL}}"
                  ],
                  "path": [
                    "v1",
                    "health"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"status\": \"healthy\",\n  \"version\": \"1.0.0\",\n  \"timestamp\": \"2026-02-08T12:00:00.000Z\"\n}"
            }
          ]
        }
      ],
      "description": "Health check endpoints for monitoring API availability"
    },
    {
      "name": "Recognition",
      "item": [
        {
          "name": "Analyze Vehicle (Dual Mode)",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Status code is 200\", function () {",
                  "    pm.response.to.have.status(200);",
                  "});",
                  "",
                  "pm.test(\"Response is successful\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    pm.expect(jsonData.success).to.be.true;",
                  "});",
                  "",
                  "pm.test(\"Has request ID\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    pm.expect(jsonData.requestId).to.exist;",
                  "});",
                  "",
                  "pm.test(\"Echoes recognition mode\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    pm.expect(jsonData.mode).to.be.oneOf([\"single\", \"dual\"]);",
                  "});",
                  "",
                  "pm.test(\"Has vehicle data\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    pm.expect(jsonData.data.vehicles).to.be.an('array');",
                  "    pm.expect(jsonData.data.vehicles.length).to.be.above(0);",
                  "});",
                  "",
                  "pm.test(\"Vehicle has required fields\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    var vehicle = jsonData.data.vehicles[0];",
                  "    pm.expect(vehicle.confidence).to.exist;",
                  "    pm.expect(vehicle.brand).to.exist;",
                  "    pm.expect(vehicle.model).to.exist;",
                  "    pm.expect(vehicle.current_tire).to.exist;",
                  "});",
                  "",
                  "pm.test(\"Has execution time metric\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    pm.expect(jsonData.metrics.executionTimeMs).to.be.a('number');",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"mode\": \"dual\",\n  \"tireImage\": \"/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAv/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAX/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCwAA8A/9k=\",\n  \"carImage\": \"/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAv/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAX/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCwAA8A/9k=\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{BASE_URL}}/v1/analyze",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "v1",
                "analyze"
              ]
            },
            "description": "Analyze a **tire image** and a **vehicle image** together for the highest-accuracy vehicle identification.\n\n**Authentication:** Required (Bearer token)\n\n**Recognition mode:** `dual` — send both `tireImage` and `carImage`.\n\n**Request body:**\n- `mode` (string, required): must be `\"dual\"`\n- `tireImage` (string, required): Base64-encoded tire image\n- `carImage` (string, required): Base64-encoded vehicle image\n\n**Image requirements:**\n- Format: JPEG or PNG\n- Encoding: raw Base64 string (no data URL prefix)\n- Max size: 10 MB per image\n- Recommended resolution: 1920x1080\n\n**Response:** array of vehicle matches ordered by confidence, current + OE tire specs, recommended pressures, and the `mode` used. Typical processing time is 10–20 seconds. Every request (success or failure) counts toward your monthly quota.\n\n**Note:** Replace the placeholder Base64 strings with your actual images. For a simpler one-photo integration, see **Analyze Vehicle (Single Mode)**."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"mode\": \"dual\",\n  \"tireImage\": \"/9j/4AAQSkZJRg...\",\n  \"carImage\": \"/9j/4AAQSkZJRg...\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{BASE_URL}}/v1/analyze",
                  "host": [
                    "{{BASE_URL}}"
                  ],
                  "path": [
                    "v1",
                    "analyze"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"requestId\": \"cmlecazi4000111qu590n9v6i\",\n  \"mode\": \"dual\",\n  \"data\": {\n    \"vehicles\": [\n      {\n        \"confidence\": 0.98,\n        \"brand\": \"Lexus\",\n        \"model\": \"NX\",\n        \"trims\": [\n          \"300h\",\n          \"300\"\n        ],\n        \"start_year\": 2017,\n        \"end_year\": 2021,\n        \"current_tire\": {\n          \"tire_brand\": \"Bridgestone\",\n          \"tire_model\": \"Dueler H/L 33\",\n          \"width\": 225,\n          \"aspect_ratio\": 60,\n          \"diameter\": 18,\n          \"load_index\": \"100\",\n          \"speed_index\": \"H\",\n          \"structure\": \"R\",\n          \"runflat\": null,\n          \"xl\": null,\n          \"3pmsf\": null,\n          \"tire_size\": \"225/60R18 100H\"\n        },\n        \"oe_front_tire\": {\n          \"width\": 225,\n          \"aspect_ratio\": 60,\n          \"diameter\": 18,\n          \"load_index\": \"100\",\n          \"speed_index\": \"H\",\n          \"structure\": \"R\",\n          \"runflat\": false,\n          \"xl\": false,\n          \"tire_size\": \"225/60R18 100H\"\n        },\n        \"oe_rear_tire\": {\n          \"width\": 225,\n          \"aspect_ratio\": 60,\n          \"diameter\": 18,\n          \"load_index\": \"100\",\n          \"speed_index\": \"H\",\n          \"structure\": \"R\",\n          \"runflat\": false,\n          \"xl\": false,\n          \"tire_size\": \"225/60R18 100H\"\n        },\n        \"pressure_front\": 2.2,\n        \"pressure_rear\": 2.2\n      }\n    ]\n  },\n  \"metrics\": {\n    \"executionTimeMs\": 10364\n  },\n  \"timestamp\": \"2026-02-08T22:54:03.962Z\"\n}"
            },
            {
              "name": "Unreadable Image",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"mode\": \"dual\",\n  \"tireImage\": \"/9j/4AAQSkZJRg...\",\n  \"carImage\": \"/9j/4AAQSkZJRg...\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{BASE_URL}}/v1/analyze",
                  "host": [
                    "{{BASE_URL}}"
                  ],
                  "path": [
                    "v1",
                    "analyze"
                  ]
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"UNREADABLE_IMAGE\",\n    \"message\": \"Only the tire tread is visible. The sidewall markings where the tire size is printed cannot be read.\"\n  },\n  \"timestamp\": \"2026-02-08T12:00:00.000Z\"\n}"
            },
            {
              "name": "Invalid Request Body",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"tireImage\": \"/9j/4AAQSkZJRg...\",\n  \"carImage\": \"/9j/4AAQSkZJRg...\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{BASE_URL}}/v1/analyze",
                  "host": [
                    "{{BASE_URL}}"
                  ],
                  "path": [
                    "v1",
                    "analyze"
                  ]
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_IMAGE\",\n    \"message\": \"Invalid request body\",\n    \"details\": {}\n  },\n  \"timestamp\": \"2026-02-08T12:00:00.000Z\"\n}"
            },
            {
              "name": "Unauthorized - Invalid API Key",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"mode\": \"dual\",\n  \"tireImage\": \"/9j/4AAQSkZJRg...\",\n  \"carImage\": \"/9j/4AAQSkZJRg...\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{BASE_URL}}/v1/analyze",
                  "host": [
                    "{{BASE_URL}}"
                  ],
                  "path": [
                    "v1",
                    "analyze"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_API_KEY\",\n    \"message\": \"Invalid or expired API key.\"\n  },\n  \"timestamp\": \"2026-02-08T12:00:00.000Z\"\n}"
            },
            {
              "name": "Quota Exceeded",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"mode\": \"dual\",\n  \"tireImage\": \"/9j/4AAQSkZJRg...\",\n  \"carImage\": \"/9j/4AAQSkZJRg...\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{BASE_URL}}/v1/analyze",
                  "host": [
                    "{{BASE_URL}}"
                  ],
                  "path": [
                    "v1",
                    "analyze"
                  ]
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"QUOTA_EXCEEDED\",\n    \"message\": \"Monthly quota exceeded\"\n  },\n  \"timestamp\": \"2026-02-08T12:00:00.000Z\"\n}"
            },
            {
              "name": "Rate Limit Exceeded",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"mode\": \"dual\",\n  \"tireImage\": \"/9j/4AAQSkZJRg...\",\n  \"carImage\": \"/9j/4AAQSkZJRg...\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{BASE_URL}}/v1/analyze",
                  "host": [
                    "{{BASE_URL}}"
                  ],
                  "path": [
                    "v1",
                    "analyze"
                  ]
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"RATE_LIMIT_EXCEEDED\",\n    \"message\": \"Too many requests. Please wait before retrying.\"\n  },\n  \"timestamp\": \"2026-02-08T12:00:00.000Z\"\n}"
            },
            {
              "name": "Request Timeout",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"mode\": \"dual\",\n  \"tireImage\": \"/9j/4AAQSkZJRg...\",\n  \"carImage\": \"/9j/4AAQSkZJRg...\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{BASE_URL}}/v1/analyze",
                  "host": [
                    "{{BASE_URL}}"
                  ],
                  "path": [
                    "v1",
                    "analyze"
                  ]
                }
              },
              "status": "Request Timeout",
              "code": 408,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"REQUEST_TIMEOUT\",\n    \"message\": \"Request timed out. Processing exceeded the maximum allowed time. Please try again.\"\n  },\n  \"timestamp\": \"2026-02-08T12:00:00.000Z\"\n}"
            },
            {
              "name": "Internal Server Error",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"mode\": \"dual\",\n  \"tireImage\": \"/9j/4AAQSkZJRg...\",\n  \"carImage\": \"/9j/4AAQSkZJRg...\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{BASE_URL}}/v1/analyze",
                  "host": [
                    "{{BASE_URL}}"
                  ],
                  "path": [
                    "v1",
                    "analyze"
                  ]
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"RECOGNITION_FAILED\",\n    \"message\": \"Failed to process the images. Please try again.\"\n  },\n  \"timestamp\": \"2026-02-08T12:00:00.000Z\"\n}"
            },
            {
              "name": "Service Unavailable",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"mode\": \"dual\",\n  \"tireImage\": \"/9j/4AAQSkZJRg...\",\n  \"carImage\": \"/9j/4AAQSkZJRg...\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{BASE_URL}}/v1/analyze",
                  "host": [
                    "{{BASE_URL}}"
                  ],
                  "path": [
                    "v1",
                    "analyze"
                  ]
                }
              },
              "status": "Service Unavailable",
              "code": 503,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"SERVICE_UNAVAILABLE\",\n    \"message\": \"Service temporarily unavailable. Please retry with exponential backoff.\"\n  },\n  \"timestamp\": \"2026-02-08T12:00:00.000Z\"\n}"
            }
          ]
        },
        {
          "name": "Analyze Vehicle (Single Mode)",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Status code is 200\", function () {",
                  "    pm.response.to.have.status(200);",
                  "});",
                  "",
                  "pm.test(\"Response is successful\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    pm.expect(jsonData.success).to.be.true;",
                  "});",
                  "",
                  "pm.test(\"Mode is single\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    pm.expect(jsonData.mode).to.eql(\"single\");",
                  "});",
                  "",
                  "pm.test(\"Has vehicle data\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    pm.expect(jsonData.data.vehicles).to.be.an('array');",
                  "    pm.expect(jsonData.data.vehicles.length).to.be.above(0);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"mode\": \"single\",\n  \"image\": \"/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAv/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAX/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCwAA8A/9k=\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{BASE_URL}}/v1/analyze",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "v1",
                "analyze"
              ]
            },
            "description": "Analyze a single **tire image** for a simpler one-photo integration.\n\n**Authentication:** Required (Bearer token)\n\n**Recognition mode:** `single` — send one `image`.\n\n**Request body:**\n- `mode` (string, required): must be `\"single\"`\n- `image` (string, required): Base64-encoded tire image\n\n**Response:** same structure as dual mode (vehicle matches + tire specs), with `\"mode\": \"single\"`. Vehicle-model accuracy is slightly lower than dual mode since there is no vehicle photo for context.\n\n**Error responses** are identical across modes — see the examples saved under **Analyze Vehicle (Dual Mode)**."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"mode\": \"single\",\n  \"image\": \"/9j/4AAQSkZJRg...\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{BASE_URL}}/v1/analyze",
                  "host": [
                    "{{BASE_URL}}"
                  ],
                  "path": [
                    "v1",
                    "analyze"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"requestId\": \"cmlecazi4000111qu590n9v6i\",\n  \"mode\": \"single\",\n  \"data\": {\n    \"vehicles\": [\n      {\n        \"confidence\": 0.98,\n        \"brand\": \"Lexus\",\n        \"model\": \"NX\",\n        \"trims\": [\n          \"300h\",\n          \"300\"\n        ],\n        \"start_year\": 2017,\n        \"end_year\": 2021,\n        \"current_tire\": {\n          \"tire_brand\": \"Bridgestone\",\n          \"tire_model\": \"Dueler H/L 33\",\n          \"width\": 225,\n          \"aspect_ratio\": 60,\n          \"diameter\": 18,\n          \"load_index\": \"100\",\n          \"speed_index\": \"H\",\n          \"structure\": \"R\",\n          \"runflat\": null,\n          \"xl\": null,\n          \"3pmsf\": null,\n          \"tire_size\": \"225/60R18 100H\"\n        },\n        \"oe_front_tire\": {\n          \"width\": 225,\n          \"aspect_ratio\": 60,\n          \"diameter\": 18,\n          \"load_index\": \"100\",\n          \"speed_index\": \"H\",\n          \"structure\": \"R\",\n          \"runflat\": false,\n          \"xl\": false,\n          \"tire_size\": \"225/60R18 100H\"\n        },\n        \"oe_rear_tire\": {\n          \"width\": 225,\n          \"aspect_ratio\": 60,\n          \"diameter\": 18,\n          \"load_index\": \"100\",\n          \"speed_index\": \"H\",\n          \"structure\": \"R\",\n          \"runflat\": false,\n          \"xl\": false,\n          \"tire_size\": \"225/60R18 100H\"\n        },\n        \"pressure_front\": 2.2,\n        \"pressure_rear\": 2.2\n      }\n    ]\n  },\n  \"metrics\": {\n    \"executionTimeMs\": 10364\n  },\n  \"timestamp\": \"2026-02-08T22:54:03.962Z\"\n}"
            }
          ]
        }
      ],
      "description": "Vehicle recognition endpoints"
    },
    {
      "name": "Requests",
      "item": [
        {
          "name": "Get Request Details",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Status code is 200\", function () {",
                  "    pm.response.to.have.status(200);",
                  "});",
                  "",
                  "pm.test(\"Response is successful\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    pm.expect(jsonData.success).to.be.true;",
                  "});",
                  "",
                  "pm.test(\"Has request data\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    pm.expect(jsonData.data).to.exist;",
                  "    pm.expect(jsonData.data.id).to.exist;",
                  "    pm.expect(jsonData.data.status).to.be.oneOf(['success', 'error']);",
                  "    pm.expect(jsonData.data.createdAt).to.exist;",
                  "});",
                  "",
                  "pm.test(\"Has metrics\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    pm.expect(jsonData.data.metrics.executionTimeMs).to.be.a('number');",
                  "});",
                  "",
                  "pm.test(\"Has vehicle data on success\", function () {",
                  "    var jsonData = pm.response.json();",
                  "    if (jsonData.data.status === 'success') {",
                  "        pm.expect(jsonData.data.result).to.exist;",
                  "        pm.expect(jsonData.data.result.vehicles).to.be.an('array');",
                  "        pm.expect(jsonData.data.vehicle).to.exist;",
                  "        pm.expect(jsonData.data.vehicle.brand).to.exist;",
                  "    }",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/v1/requests/:id",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "v1",
                "requests",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "your_request_id_here",
                  "description": "The request ID returned from the analyze endpoint"
                }
              ]
            },
            "description": "Retrieve details of a past analysis request by ID.\n\n**Authentication:** Required (Bearer token)\n\n**Path Parameters:**\n- `id` (string, required): The unique request identifier returned as `requestId` from POST /v1/analyze\n\n**Response:**\n- Full analysis result (same structure as the `data` field from POST /v1/analyze)\n- Denormalized vehicle summary for quick access\n- Execution time metrics\n- Error details for failed requests\n\n**Notes:**\n- Does not count toward your monthly quota\n- Only returns requests belonging to the authenticated user\n- Request data is retained for 30 days"
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{BASE_URL}}/v1/requests/cmlecazi4000111qu590n9v6i",
                  "host": [
                    "{{BASE_URL}}"
                  ],
                  "path": [
                    "v1",
                    "requests",
                    "cmlecazi4000111qu590n9v6i"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"data\": {\n    \"id\": \"cmlecazi4000111qu590n9v6i\",\n    \"status\": \"success\",\n    \"createdAt\": \"2026-02-08T22:54:03.962Z\",\n    \"result\": {\n      \"vehicles\": [\n        {\n          \"confidence\": 0.98,\n          \"brand\": \"Lexus\",\n          \"model\": \"NX\",\n          \"trims\": [\n            \"300h\",\n            \"300\"\n          ],\n          \"start_year\": 2017,\n          \"end_year\": 2021,\n          \"current_tire\": {\n            \"tire_brand\": \"Bridgestone\",\n            \"tire_model\": \"Dueler H/L 33\",\n            \"width\": 225,\n            \"aspect_ratio\": 60,\n            \"diameter\": 18,\n            \"load_index\": \"100\",\n            \"speed_index\": \"H\",\n            \"structure\": \"R\",\n            \"runflat\": null,\n            \"xl\": null,\n            \"3pmsf\": null,\n            \"tire_size\": \"225/60R18 100H\"\n          },\n          \"oe_front_tire\": {\n            \"width\": 225,\n            \"aspect_ratio\": 60,\n            \"diameter\": 18,\n            \"load_index\": \"100\",\n            \"speed_index\": \"H\",\n            \"structure\": \"R\",\n            \"runflat\": false,\n            \"xl\": false,\n            \"tire_size\": \"225/60R18 100H\"\n          },\n          \"oe_rear_tire\": {\n            \"width\": 225,\n            \"aspect_ratio\": 60,\n            \"diameter\": 18,\n            \"load_index\": \"100\",\n            \"speed_index\": \"H\",\n            \"structure\": \"R\",\n            \"runflat\": false,\n            \"xl\": false,\n            \"tire_size\": \"225/60R18 100H\"\n          },\n          \"pressure_front\": 2.2,\n          \"pressure_rear\": 2.2\n        }\n      ]\n    },\n    \"metrics\": {\n      \"executionTimeMs\": 10364\n    },\n    \"vehicle\": {\n      \"brand\": \"Lexus\",\n      \"model\": \"NX\",\n      \"trims\": [\n        \"300h\",\n        \"300\"\n      ],\n      \"year\": \"2017\",\n      \"tireSize\": \"225/60R18 100H\",\n      \"confidence\": 0.98\n    },\n    \"error\": null\n  },\n  \"timestamp\": \"2026-02-22T10:30:00.000Z\"\n}"
            },
            {
              "name": "Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{BASE_URL}}/v1/requests/nonexistent_id",
                  "host": [
                    "{{BASE_URL}}"
                  ],
                  "path": [
                    "v1",
                    "requests",
                    "nonexistent_id"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"NOT_FOUND\",\n    \"message\": \"Request not found.\"\n  },\n  \"timestamp\": \"2026-02-22T10:30:00.000Z\"\n}"
            },
            {
              "name": "Unauthorized",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{BASE_URL}}/v1/requests/cmlecazi4000111qu590n9v6i",
                  "host": [
                    "{{BASE_URL}}"
                  ],
                  "path": [
                    "v1",
                    "requests",
                    "cmlecazi4000111qu590n9v6i"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"MISSING_API_KEY\",\n    \"message\": \"Missing API key. Please provide a valid API key in the Authorization header.\"\n  },\n  \"timestamp\": \"2026-02-22T10:30:00.000Z\"\n}"
            }
          ]
        }
      ],
      "description": "Retrieve past analysis request details"
    }
  ]
}
