customdomains
Create custom domain
Creates a new custom domain for preview deployments. After creation, you must configure DNS records and verify domain ownership before it becomes active.
post/customdomains
Request
- Base URLhttps://api.blaxel.ai/v0
- Auth
- OAuth 2Authorization code/oauth/authorizeClient credentialsToken URL/oauth/tokenScopescustomdomains:create
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"metadata": {
"displayName": "Preview Domain",
"name": "preview.example.com"
},
"spec": {
"domainType": "applications",
"fallbackPreviewId": "my-fallback-preview",
"region": "us-pdx-1",
"status": "verified"
}
}Response
successful operation
Example response
{
"metadata": {
"displayName": "Preview Domain",
"name": "preview.example.com"
},
"spec": {
"domainType": "applications",
"fallbackPreviewId": "my-fallback-preview",
"region": "us-pdx-1",
"status": "verified"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.