Skip to Content
SeyloDocs
API referencePR previews

Get a service's PR preview settings

GET
/api/v1/previews.getSettings

Returns whether PR previews are on for a service, their domain pattern and limit, and whether the service can have them at all (only GitHub sources can).

Needs services.view on the service (a grant on its project covers it). Available to MCP clients and the assistant.

Authorization

cookieseylo_session<token>

Query Parameters

serviceId*string

Panel-issued id.

Match^[a-z0-9]{16}$

Response Body

Success.

application/json
  1. response
settings*
available*boolean
unavailableReason*string|null
Example Request
curl -X GET 'https://example.com/api/v1/previews.getSettings?serviceId=string'
Example Response
{  "settings": {    "enabled": true,    "domainPattern": "string",    "maxPreviews": 1  },  "available": true,  "unavailableReason": "string"}