---
raw: true
search:
  tags:
    - Tags
    - GET
seo:
  description: >-
    Returns the state, expiry,… Reference for the GET
    /v1/spaces/{spaceId}/tags/revisions/{revisionId}/preview-sessions/{sessionId}
    endpoint in the Spacefast API.
sidebar:
  label: Read a tag preview session
  badge: GET
title: Read a tag preview session
type: openapi-operation
---
Returns the state, expiry, target URL, and environment for a space tag preview session.

`GET /v1/spaces/{spaceId}/tags/revisions/{revisionId}/preview-sessions/{sessionId}`

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "id": "string",
    "revisionId": "string",
    "environment": "production",
    "previewUrl": "string",
    "sdkRevision": "string",
    "cacheMode": "public, max-age=0, s-maxage=60, must-revalidate",
    "websocket": {
      "enabled": true
    },
    "createdAt": "string",
    "expiresAt": "string",
    "revokedAt": "string"
  }
}
```
