Postman collection
The collection has all 39 endpoints of this reference, in one folder per section, with example request bodies and example responses. It is a Postman Collection v2.1 file and is updated whenever the reference changes.
Use the Postman collection
- Download the collection with the button above. It has every endpoint in this reference, in one folder per section.
- In Postman, click Import and choose the downloaded file.
- Open the collection, go to its Variables tab and paste your secret key (
sk_live_…) into the Current value ofapiKey. Every request sends it asAuthorization: Bearer, so you set it once. - Open Account → Retrieve the account and click Send. A
200response with your account details means you're ready to try the rest.
Variables
| Variable | What it is |
|---|---|
baseUrl | NewHost API base URL. Request paths start with /v1 (or /ai/v1 for the AI gateway). |
apiKey | Your secret key (sk_live_...). Never commit or share it. |
appId | The app ID. Copy it from a list request. |
previewId | The preview ID. Copy it from a list request. |
deploymentId | The deployment ID. Copy it from a list request. |
domainId | The domain ID. Copy it from a list request. |
recordId | Record ID from List DNS records. Copy it from a list request. |
subscriptionId | The subscription ID. Copy it from a list request. |
aliasId | Alias ID from List website aliases. Copy it from a list request. |
invoiceId | The invoice ID. Copy it from a list request. |
webhookId | The webhook ID. Copy it from a list request. |
To call one resource, run its list request first (for example Applications → List applications), copy an ID into the matching variable (appId), and the requests that need it are ready to send. The same goes for domainId, invoiceId and the others.
Keep your key in Postman's Current value column. That value stays on your machine and is not synced or exported with the collection.