Benutzerdefinierte Domains
GET https://paths.to/api/domains/
curl --request GET \
--url 'https://paths.to/api/domains/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://paths.to/api/domains/' \
--header 'Authorization: Bearer {api_key}' \
Parameter | Details | Beschreibung |
---|---|---|
page | Optional Ganzzahl | Die Seitenzahl, von der Sie Ergebnisse wünschen. Standardmäßig auf 1 gesetzt. |
results_per_page | Optional Ganzzahl | Wie viele Ergebnisse möchten Sie pro Seite? Erlaubte Werte sind: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Standardmäßig ist es 25 . |
{ "data": [ { "id": 1, "scheme": "https://", "host": "example.com", "custom_index_url": "", "is_enabled": true, "last_datetime": null, "datetime": "2025-04-08 15:50:33" }, ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://paths.to/api/domains?&page=1", "last": "https://paths.to/api/domains?&page=1", "next": null, "prev": null, "self": "https://paths.to/api/domains?&page=1" } }
GET https://paths.to/api/domains/{domain_id}
curl --request GET \
--url 'https://paths.to/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://paths.to/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "scheme": "https://", "host": "example.com", "custom_index_url": "", "is_enabled": true, "last_datetime": null, "datetime": "2025-04-08 15:50:33" } }
POST https://paths.to/api/domains
Parameter | Details | Beschreibung |
---|---|---|
host | Erforderlich Zeichenfolge | - |
custom_index_url | Optional Zeichenfolge | - |
custom_not_found_url | Optional Zeichenfolge | - |
curl --request POST \
--url 'https://paths.to/api/domains' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=example.com' \
--form 'custom_index_url=https://example.com/' \
--form 'custom_not_found_url=https://example.com/404-page'
--url 'https://paths.to/api/domains' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=example.com' \
--form 'custom_index_url=https://example.com/' \
--form 'custom_not_found_url=https://example.com/404-page'
{ "data": { "id": 1 } }
POST https://paths.to/api/domains/{domain_id}
Parameter | Details | Beschreibung |
---|---|---|
host | Optional Zeichenfolge | - |
custom_index_url | Optional Zeichenfolge | - |
custom_not_found_url | Optional Zeichenfolge | - |
curl --request POST \
--url 'https://paths.to/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=example.com' \
--url 'https://paths.to/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=example.com' \
{ "data": { "id": 1 } }
DELETE https://paths.to/api/domains/{domain_id}
curl --request DELETE \
--url 'https://paths.to/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://paths.to/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \