DCHOST DEVELOPERS
DCHost API
Your accounts, domains and services. Connected to the applications you build.
Your first request
# Read your account details
curl 'https://portal.dchost.com/api/details' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Test requests run on your real account. Your Bearer token stays in this tab only.
Full pageLoading API reference…
FROM TOKEN TO REQUEST
Connect to the API in three steps.
Use these examples in your own environment, or send a request directly from the console.
Send your portal email and password as JSON. Save the token and refresh values returned in the response.
curl --request POST 'https://portal.dchost.com/api/login' \ --header 'Content-Type: application/json' \ --data '{ "username": "user@example.com", "password": "YOUR_PASSWORD" }'cURL · HTTPS / JSON