ApiResourcesStore settings
Connect a custom domain
Create or recover a managed Cloudflare custom-hostname connection.
Submit a hostname or an HTTP(S) URL whose host is the desired domain. Wildcards, IP addresses, credentials, explicit ports, queries, and fragments are rejected. A domain can belong to only one store, including during concurrent requests.
Authorization
bearerAuth storeAuth AuthorizationBearer <token>
Provide your SellApp API key as a bearer token.
In: header
X-STORE<token>
Select the SellApp store for this API request.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://sell.app/api/v2/store/custom-domains" \ -H "Content-Type: application/json" \ -d '{ "domain": null }'{
"data": {
"id": 0,
"domain": "example.com",
"status": "pending",
"hostname_status": "string",
"ssl_status": "string",
"ownership_verification": {},
"ssl_validation_records": [
{}
],
"cname_target": "example.com",
"last_checked_at": "2019-08-24T14:15:22Z",
"verified_at": "2019-08-24T14:15:22Z"
}
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "The given data was invalid.",
"errors": {
"data": [
"The data field is required."
]
}
}