Read a media file
Read one file by the fileId list media returns. Media belongs to the workspace, not to one site.
GET https://sitepaste.com/api/v1/public/media/{fileId}
Requires the media scope.
Usage
curl "https://sitepaste.com/api/v1/public/media/a1b2c3d4.webp" \
-H "Authorization: Bearer $TOKEN"
Authorizations
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication. |
Response
The file record, in the shape list media returns each entry in.
404 when the workspace has no file with that ID.