POST
/landing-pages/{id}/deployDeploy a landing page
- Auth
- Bearer API key
- Content-Type
- application/json
Request
Path parameters
| Field | Type | Description |
|---|---|---|
idrequired | string |
Body
| Field | Type | Description |
|---|---|---|
subdomain | string | |
customDomain | string |
Example request body
{
"subdomain": "string",
"customDomain": "string"
}Code samples
curl -X POST 'https://namemy.app/api/v1/landing-pages/{id}/deploy' \
-H 'Authorization: Bearer nma_live_...' \
-H 'Content-Type: application/json' \
-d '{
"subdomain": "string",
"customDomain": "string"
}'Responses
| Field | Type | Description |
|---|---|---|
id | string | |
status | string | One of: |
subdomain | string | |
deploymentUrl | string | |
error | string |
Example
{
"id": "string",
"status": "deployed",
"subdomain": "string",
"deploymentUrl": "string",
"error": "string"
}| Field | Type | Description |
|---|---|---|
error | string | |
code | string | |
productType | string | |
productName | string | |
oneTimePrice | number | |
recurring | string | One of: |
message | string | |
upgrade | object |
Example
{
"error": "Payment required",
"code": "entitlement_required",
"productType": "BRAND_KIT",
"productName": "Brand Kit",
"oneTimePrice": 29.99,
"recurring": "one-time",
"message": "string",
"upgrade": {
"subscription": "string",
"oneTimePurchase": "string"
}
}| Field | Type | Description |
|---|---|---|
error | string | |
code | string |
Example
{
"error": "Not found",
"code": "not_found"
}| Field | Type | Description |
|---|---|---|
error | string | |
code | string | One of: |
tier | string | One of: |
limit | integer | |
upgrade | string |
Example
{
"error": "string",
"code": "rate_limit_exceeded",
"tier": "explorer",
"limit": 0,
"upgrade": "https://namemy.app/pricing"
}