{ "opencollection": "1.0.0", "info": { "name": "Cresilon Media API", "version": "wp/v2" }, "items": [ { "info": { "name": "Media", "type": "folder" }, "items": [ { "info": { "name": "List media library items", "type": "http" }, "http": { "method": "GET", "url": "https://cresilon.com/wp-json/wp/v2/media", "params": [ { "name": "page", "value": "", "type": "query", "description": "Current page of the collection. Defaults to 1." }, { "name": "per_page", "value": "", "type": "query", "description": "Maximum number of items to be returned in the result set. Verified live: values outside 1-100 return HTTP 400 `rest_invalid_param`." }, { "name": "search", "value": "", "type": "query", "description": "Limit results to those matching a string." }, { "name": "order", "value": "", "type": "query", "description": "Order sort attribute ascending or descending." }, { "name": "orderby", "value": "", "type": "query", "description": "Sort collection by object attribute." }, { "name": "context", "value": "", "type": "query", "description": "Scope under which the request is made; determines fields present in the response. Only `view` and `embed` are available anonymously — `edit` returns HTTP 401." }, { "name": "_fields", "value": "", "type": "query", "description": "Comma-separated list of fields to limit the response to. Verified live, e.g. `_fields=id,slug,link,title`." }, { "name": "include", "value": "", "type": "query", "description": "Limit result set to specific IDs." }, { "name": "exclude", "value": "", "type": "query", "description": "Ensure result set excludes specific IDs." }, { "name": "offset", "value": "", "type": "query", "description": "Offset the result set by a specific number of items." }, { "name": "media_type", "value": "", "type": "query", "description": "Limit results to attachments of a particular media type." }, { "name": "mime_type", "value": "", "type": "query", "description": "Limit results to attachments of a particular MIME type." }, { "name": "parent", "value": "", "type": "query", "description": "Limit results to attachments of specific parent post IDs." } ] }, "docs": "Returns a paginated collection of media library attachments behind cresilon.com — product photography, TRAUMAGEL and VETIGEL imagery, IFU and publication PDFs, video posters and press assets, with their generated size variants. Verified live 2026-08-04: X-WP-Total: 1307." }, { "info": { "name": "Get a media library item", "type": "http" }, "http": { "method": "GET", "url": "https://cresilon.com/wp-json/wp/v2/media/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "Unique numeric identifier for the object." }, { "name": "context", "value": "", "type": "query", "description": "Scope under which the request is made; determines fields present in the response. Only `view` and `embed` are available anonymously — `edit` returns HTTP 401." }, { "name": "_fields", "value": "", "type": "query", "description": "Comma-separated list of fields to limit the response to. Verified live, e.g. `_fields=id,slug,link,title`." } ] }, "docs": "Returns a single media attachment by its numeric WordPress attachment ID. Verified live: id 16942 is the site logo." } ] } ], "bundled": true }