HydraCore
API by router

Shared hosting internal

Get Merged Customer Config

GET
/internal/v1/instances/{instance_id}/customer-config

Path Parameters

instance_idInstance Id
Formatuuid

Query Parameters

customer_idCustomer Id
Formatuuid

Response Body

curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/customer-config?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "config": {},
  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Resolve Domain To Customer

Resolve a hostname to a customer_id for shared hosting.

Maps domain → TenantWebsiteConfig → customer_id. Used by the runtime on shared instances to identify which customer a chat request belongs to based on the Host header.

GET
/internal/v1/instances/{instance_id}/resolve-domain

Path Parameters

instance_idInstance Id
Formatuuid

Query Parameters

hostnameHostname

Response Body

curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/resolve-domain?hostname=string"
{
  "customer_email": "string",
  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  "display_name": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}