---
updatedAt: 2026-08-04T20:06:57.000Z
agentTools:
  projectIndex: https://docs.spyne.ai/llms.txt
---

# Retrieve Media

Retrieves the processed media and metadata for a vehicle by any one of its identifiers.

Fields with no value are **omitted** from the response rather than returned as `null`, so do not rely on a key being present.

<br />

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "get-media",
    "version": "2"
  },
  "servers": [
    {
      "url": "https://api.spyne.ai/api/pv1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/merchandise": {
      "get": {
        "summary": "Retrieve Media",
        "description": "Retrieves the processed media and metadata for a vehicle by any one of its identifiers.\n\nFields with no value are **omitted** from the response rather than returned as `null`, so do not rely on a key being present.",
        "operationId": "get-media",
        "parameters": [
          {
            "name": "dealerVinId",
            "in": "query",
            "required": false,
            "description": "Spyne's record identifier, returned by the processing request. When supplied, the other identifiers are ignored.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vin",
            "in": "query",
            "required": false,
            "description": "The vehicle's 17-character alphanumeric VIN.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "stockNumber",
            "in": "query",
            "required": false,
            "description": "The dealer's internal inventory identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "registrationNumber",
            "in": "query",
            "required": false,
            "description": "The vehicle's official registration number.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "teamId",
            "in": "query",
            "required": false,
            "description": "Team the lookup is scoped to. If omitted, the team from the authenticated API credential is used. \"Note\": a supplied teamId takes precedence over the credential's team.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Vehicle media and metadata retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "vin": {
                      "type": "string",
                      "example": "1HGCM82633A004352"
                    },
                    "stockNumber": {
                      "type": "string",
                      "example": "STK-4471"
                    },
                    "registrationNumber": {
                      "type": "string",
                      "example": "KA01AB1234"
                    },
                    "dealerVinID": {
                      "type": "string",
                      "example": "3bd1c257-9b32-4933-8cf4-a445fd5b37b8",
                      "description": "Spyne's record identifier, returned by the processing request."
                    },
                    "source": {
                      "type": "string",
                      "example": "API"
                    },
                    "dealerId": {
                      "type": "string",
                      "example": "86fc402add",
                      "description": "Team the record is attributed to."
                    },
                    "clientMetaData": {
                      "type": "object",
                      "description": "Opaque metadata echoed back exactly as supplied on the processing request.",
                      "properties": {}
                    },
                    "mediaData": {
                      "type": "object",
                      "properties": {
                        "image": {
                          "type": "object",
                          "description": "Catalog image output. Present when catalog processing was requested.",
                          "properties": {
                            "skuId": {
                              "type": "string",
                              "example": "sku_9f2c"
                            },
                            "aiStatus": {
                              "type": "string",
                              "example": "YET_TO_START"
                            },
                            "qcStatus": {
                              "type": "string",
                              "example": "PENDING"
                            },
                            "imageData": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "angle": {
                                    "type": "string",
                                    "example": "front"
                                  },
                                  "status": {
                                    "type": "string",
                                    "example": "Yet to Start"
                                  },
                                  "frameNo": {
                                    "type": "integer",
                                    "example": 1
                                  },
                                  "imageId": {
                                    "type": "string",
                                    "example": "img-bbef1ea1-e055-4571-aa16-02965d1fef14"
                                  },
                                  "imageName": {
                                    "type": "string",
                                    "example": "0c4fb0ff-0323-4957-a53c-ffed1d385df4"
                                  },
                                  "inputImage": {
                                    "type": "string",
                                    "example": "https://cdn.example.com/veh/front.jpg"
                                  },
                                  "outputImage": {
                                    "type": "string",
                                    "example": "https://cdn.example.com/veh/front-processed.jpg"
                                  },
                                  "backgroundId": {
                                    "type": "string",
                                    "example": "13488"
                                  },
                                  "category": {
                                    "type": "string",
                                    "example": "Exterior"
                                  },
                                  "clientMetaData": {
                                    "type": "object",
                                    "description": "Opaque per-image metadata echoed back exactly as supplied on the processing request.",
                                    "properties": {}
                                  }
                                }
                              }
                            }
                          }
                        },
                        "spin": {
                          "type": "object",
                          "description": "360 spin output. Present when spin processing was requested.",
                          "properties": {
                            "skuId": {
                              "type": "string",
                              "example": "sku_7a11"
                            },
                            "aiStatus": {
                              "type": "string",
                              "example": "COMPLETED"
                            },
                            "qcStatus": {
                              "type": "string",
                              "example": "APPROVED"
                            },
                            "spinIframe": {
                              "type": "string",
                              "example": "https://spin.spyne.ai/embed/abc123"
                            },
                            "spinUrl": {
                              "type": "string",
                              "example": "https://spin.spyne.ai/input/abc123"
                            },
                            "thumbnailUrl": {
                              "type": "string",
                              "example": "https://cdn.example.com/spin-thumb.jpg"
                            },
                            "inputVideoUrl": {
                              "type": "string",
                              "example": "https://cdn.example.com/walkaround.mp4"
                            }
                          }
                        },
                        "video": {
                          "type": "object",
                          "description": "Feature video output. Present when feature video processing was requested.",
                          "properties": {
                            "aiStatus": {
                              "type": "string",
                              "example": "COMPLETED"
                            },
                            "qcStatus": {
                              "type": "string",
                              "example": "APPROVED"
                            },
                            "videoId": {
                              "type": "string",
                              "example": "vid_5512"
                            },
                            "videoUrl": {
                              "type": "string",
                              "example": "https://cdn.example.com/feature.mp4"
                            },
                            "iframeUrl": {
                              "type": "string",
                              "example": "https://video.spyne.ai/embed/vid_5512"
                            },
                            "processingStatus": {
                              "type": "string",
                              "example": "DONE"
                            }
                          }
                        }
                      }
                    },
                    "inputData": {
                      "type": "object",
                      "description": "Echo of the source assets, when recorded against the vehicle.",
                      "properties": {
                        "assetsInfo": {
                          "type": "object",
                          "properties": {}
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Result": {
                    "value": {
                      "vin": "1HGCM82633A004352",
                      "stockNumber": "STK-4471",
                      "dealerVinID": "3bd1c257-9b32-4933-8cf4-a445fd5b37b8",
                      "source": "API",
                      "dealerId": "86fc402add",
                      "clientMetaData": {
                        "dmsRef": "RO-88213"
                      },
                      "mediaData": {
                        "image": {
                          "skuId": "sku_9f2c",
                          "aiStatus": "COMPLETED",
                          "qcStatus": "APPROVED",
                          "imageData": [
                            {
                              "angle": "front",
                              "status": "Done",
                              "frameNo": 1,
                              "imageId": "img-bbef1ea1",
                              "imageName": "0c4fb0ff",
                              "inputImage": "https://cdn.example.com/veh/front.jpg",
                              "outputImage": "https://cdn.example.com/veh/front-processed.jpg",
                              "backgroundId": "13488",
                              "category": "Exterior",
                              "clientMetaData": {
                                "position": "front"
                              }
                            }
                          ]
                        },
                        "spin": {
                          "skuId": "sku_7a11",
                          "aiStatus": "COMPLETED",
                          "qcStatus": "APPROVED",
                          "spinIframe": "https://spin.spyne.ai/embed/abc123",
                          "thumbnailUrl": "https://cdn.example.com/spin-thumb.jpg"
                        },
                        "video": {
                          "aiStatus": "COMPLETED",
                          "qcStatus": "APPROVED",
                          "videoId": "vid_5512",
                          "videoUrl": "https://cdn.example.com/feature.mp4"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "No identifier supplied, missing auth context, or a bad request relayed from the inventory service.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "noIdentifier": {
                    "value": {
                      "message": "At least one identifier (dealerVinId, vin, stockNumber, or registrationNumber) is required"
                    }
                  },
                  "missingAuthContext": {
                    "value": {
                      "message": "auth_key is required"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credential.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "401"
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid Auth key"
                    }
                  }
                },
                "examples": {
                  "Result": {
                    "value": {
                      "status": "401",
                      "message": "Invalid Auth key"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No vehicle matches the supplied identifier.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "Result": {
                    "value": {
                      "message": "Inventory details not found"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error, or the inventory service was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "Result": {
                    "value": {
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "x-internal": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```