Spaces

Read a WordPress attachment

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}

Request

  • Base URL: https://api.spacefast.com
  • URL: https://api.spacefast.com/v1/spaces/{spaceId}/content/media/{attachmentId}
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-better-auth.session_token
    • OAuth 2 (authorization code, authorization URL https://api.spacefast.com/v1/auth/oauth2/authorize, token URL https://api.spacefast.com/v1/auth/oauth2/token; client credentials, token URL https://api.spacefast.com/v1/auth/oauth2/token, scopes: spaces:read)

Path parameters

spaceIdstring required
attachmentIdinteger required

Query parameters

sizestring

Response

Attachment bytes

Changes

No recorded changes to this operation across all 1 revision of this API.