---
raw: true
search:
  tags:
    - Spaces
    - GET
seo:
  description: >-
    Returns attachment bytes after checking space… Reference for the GET
    /v1/spaces/{spaceId}/content/media/{attachmentId} endpoint in the Spacefast
    API.
sidebar:
  label: Read a WordPress attachment
  badge: GET
title: Read a WordPress attachment
type: openapi-operation
---
Returns attachment bytes after checking space ownership and WordPress read permissions. The optional size names a WordPress image size. Responses are private and must not be cached.

`GET /v1/spaces/{spaceId}/content/media/{attachmentId}`

**Responses**

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

Response example, 200:

```json
"string"
```
