API

VerifyAppDomain

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/hosting/apps/{app_id}/domains/{id}/verify create Success

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

created, err := client.VerifyAppDomain(nil).Create(map[string]any{"app_id": "example", "id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local created, err = client:VerifyAppDomain():create({ app_id = "example", id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$created = $client->VerifyAppDomain()->create(["app_id" => "example", "id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

created = client.VerifyAppDomain().create({ "app_id": "example", "id": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

created = client.VerifyAppDomain.create({ "app_id" => "example", "id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const created = await client.VerifyAppDomain().create({ app_id: "example", id: "example" })

Fields

Field Type Required Description
id string No Id

create

POST /api/v1/hosting/apps/{app_id}/domains/{id}/verify

Operation ID: verify_api_v1_app_domain.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

202: Domain verification scheduled

application/json

Property Type Required Description
domain object Yes
domain.app_environment_id string Yes
domain.app_service_id string Yes
domain.certificate object Yes
domain.certificate.expires_at string (date-time) Yes
domain.certificate.last_error string Yes
domain.certificate.status string Yes
domain.created_at string (date-time) Yes
domain.dns_mode enum: manual_cname, cloudflare Yes
domain.dns_status enum: pending, configured, failed Yes
domain.failure_message string Yes
domain.hosted_app_id string Yes
domain.hostname string Yes
domain.id string Yes
domain.kind enum: primary, redirect, preview, internal Yes
domain.last_checked_at string (date-time) Yes
domain.path_rules array of object Yes
domain.path_rules[].action_kind enum: proxy, redirect, fixed_response, external Yes
domain.path_rules[].app_service_endpoint_id string Yes
domain.path_rules[].app_service_id string Yes
domain.path_rules[].backend_ref string Yes
domain.path_rules[].created_at string (date-time) Yes
domain.path_rules[].id string Yes
domain.path_rules[].last_error string Yes
domain.path_rules[].path_prefix string Yes
domain.path_rules[].status enum: pending, active, failed, disabled Yes
domain.path_rules[].updated_at string (date-time) Yes
domain.record_name string Yes
domain.record_type string Yes
domain.record_value string Yes
domain.redirect_to string Yes
domain.static_site_id string Yes
domain.target_kind enum: app_service, static_site Yes
domain.tls_status enum: pending, active, failed Yes
domain.updated_at string (date-time) Yes
domain.verification_record object Yes
domain.verification_record.name string Yes
domain.verification_record.type enum: TXT Yes
domain.verification_record.value string Yes
domain.verification_status string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway