POST /vanity-domains
Create vanity domain
Register a new custom vanity domain
Authentication Required
Authorization: Bearer {token}
header string This header is required to access this endpoint
Required Parameters
x-account-id
header string Account ID for the request
Request Body
{ "domain": "string"}{ "domain": "string", "sslEnabled": true}Try it out
Loading...
Output:
Responses
Description
Domain created successfully
{ "id": "string", "domain": "string", "status": "string", "sslEnabled": false, "createdAt": "string", "updatedAt": "string"}Description
Invalid domain name or already exists
Description
Insufficient permissions
References
#/components/parameters/xAccountIdHeader
in: headername: x-account-idschema: type: stringdescription: Account ID for the requestrequired: trueexample: "2311"|export type xAccountIdHeader = any; // Schema type not fully supported#/components/schemas/VanityDomain
type: objectproperties: id: type: string domain: type: string status: type: string enum: - pending - active - failed sslEnabled: type: boolean createdAt: type: string format: date-time updatedAt: type: string format: date-time|export interface VanityDomain { id?: string; domain?: string; status?: "pending" | "active" | "failed"; sslEnabled?: boolean; createdAt?: Date; updatedAt?: Date;}Route Source Code
Check out the source code for this route entrypoint here: /vanity-domains/route.ts
Or the swagger.yaml spec this documentation was generated from:
/vanity-domains/swagger.yaml