Skip to Content
SeyloDocs

Remove a domain

POST
/api/v1/domains.remove

Removes a domain from the service; requests to it stop reaching the service right away. When it was primary, the oldest remaining domain becomes primary.

Needs domains.edit on the service (a grant on its project covers it). Available to MCP clients and the assistant, after a person approves the call.

Authorization

cookieseylo_session<token>

Request Body

application/json
  1. body
serviceId*string

Panel-issued id.

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

Panel-issued id.

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

Response Body

Success.

application/json
  1. response
Example Request
curl -X POST 'https://example.com/api/v1/domains.remove' \  -H 'Content-Type: application/json' \  -d '{  "serviceId": "string",  "domainId": "string"}'
Example Response
{}