cURL
curl --request GET \ --url https://app.coolify.io/api/v1/servers/{uuid}/domains \ --header 'Authorization: Bearer <token>'
[ { "ip": "<string>", "domains": [ "<string>" ] } ]
Get domains by server.
Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.
Keys & Tokens
API tokens
Server's Uuid
Get domains by server
The response is of type object[].
object[]