---
title: "Redirect to latest Contentful asset image"
method: GET
path: "/api/nextjs-routes/image/{spaceId}/{assetId}"
tags: ["Images"]
---

# Redirect to latest Contentful asset image

`GET /api/nextjs-routes/image/{spaceId}/{assetId}`

## Request

- Base URL: `https://matterport.com` (the document declares no server; this is the origin it was published from)
- URL: `https://matterport.com/api/nextjs-routes/image/{spaceId}/{assetId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/matterport/apis/www-api-endpoints/docs/api/nextjs-routes/image/:spaceId/:assetId/get.ts> (a function with typed inputs; its response is checked against the schema)

Redirects (302) to the current CDN URL of the specified asset from the given Contentful space. Supports all [Contentful Image API query parameters](https://www.contentful.com/developers/docs/references/images-api/).

WWW Space: icnj41gkyohw
Cloud-UI Space: win0qdoynbf5

## Path parameters

- `spaceId` string, required
- `assetId` string, required

## Other responses

- `302`: Redirects to the current asset URL on the Contentful CDN
- `304`: Not Modified — if ETag matches
- `400`: Invalid or missing parameters
- `403`: Missing or unauthorized space ID
- `404`: Asset not found in Contentful
- `500`: Unexpected server error

---

[API](https://skmtc.dev/matterport/apis/www-api-endpoints.md) - [All operations](https://skmtc.dev/matterport/apis/www-api-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/matterport/apis/www-api-endpoints/revisions/689d385f1b33?raw)
