Skip to Content
SeyloDocs
API referencePR previews

List a service's PR previews

GET
/api/v1/previews.list

Lists the PR previews of a service, open ones first, with PR, branch, URL and the status of their latest deploy.

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
previews*array<>
Example Request
curl -X GET 'https://example.com/api/v1/previews.list?serviceId=string'
Example Response
{  "previews": [    {      "id": "string",      "prNumber": 1,      "prTitle": "string",      "branch": "string",      "commitSha": "string",      "previewServiceId": "string",      "url": "string",      "status": "queued",      "closedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z"    }  ]}