Basker Docs

Get Media

Retrieve a single Media by ID. Rate limit: 100 requests per minute per API key.

This returns the metadata for one image — filename, alt text, caption, credit, focal point, and dimensions — along with a URL pointing to the image. Serving the image bytes themselves is handled by a separate delivery service, not this endpoint.

GET
/{version}/{tenant}/media/{id}
Authorization<token>

Use format: users API-Key YOUR_API_KEY

In: header

Path Parameters

version*string

API version

Default"2026-02"
Value in"2026-02"
tenant*string

Tenant slug

id*string

Media ID

Query Parameters

select?

Field selection object. Example query: select[slug]=true&select[updatedAt]=true

populate?

Relationship population object. Example query: populate[media][url]=true

Response Body

application/json

application/json

curl -X GET "https://api.basker.app/partners/2026-02/string/media/string?select%5Bslug%5D=true&select%5BupdatedAt%5D=true&populate%5Bmedia%5D=%5Bobject+Object%5D"
{
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "filename": "string",
  "focalX": 0,
  "focalY": 0,
  "height": 0,
  "prefix": "string",
  "src": "string",
  "url": "string",
  "width": 0
}
Empty
{
  "error": "Too Many Requests",
  "message": "Rate limit exceeded. Please retry later."
}