dOCR
API ReferenceAccount

List device presets

Returns the device presets usable via the `device` screenshot option.

GET
/devices
AuthorizationBearer <token>

API key as a Bearer token: Authorization: Bearer docr_sk_…

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://app.docr.dev/api/v1/devices"
{
  "devices": [
    {
      "name": "iphone_15",
      "width": 393,
      "height": 852,
      "deviceScaleFactor": 3,
      "mobile": true
    }
  ]
}
{
  "error": "Invalid or revoked API key"
}
{
  "error": "IP 203.0.113.4 is not whitelisted"
}