Skip to Content
SeyloDocs
API referenceExposed ports

Set first-run IP:port access

POST
/api/v1/exposures.setFirstRun

Opens or closes the service's first-run IP:port access and sets whether it closes on its own (redirecting to the primary domain first) once a domain is live. Fields left out keep their value.

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

Authorization

cookieseylo_session<token>

Request Body

application/json
  1. body
serviceId*string

Panel-issued id.

Match^[a-z0-9]{16}$
open?boolean
closeWhenDomainLive?boolean
redirectToPrimary?boolean

Response Body

Success.

application/json
  1. response
status*string|string|string|string
address*string|null
redirectTo*string|null
closeAt*|null
domainLiveAt*|null
closeWhenDomainLive*boolean
redirectToPrimary*boolean
firewallHint*string|null
Example Request
curl -X POST 'https://example.com/api/v1/exposures.setFirstRun' \  -H 'Content-Type: application/json' \  -d '{  "serviceId": "string"}'
Example Response
{  "status": "open",  "address": "string",  "redirectTo": "string",  "closeAt": "2019-08-24T14:15:22Z",  "domainLiveAt": "2019-08-24T14:15:22Z",  "closeWhenDomainLive": true,  "redirectToPrimary": true,  "firewallHint": "string"}