MobiariDocs
Admin APIStorefront

Verify a custom domain

POST
/stores/{store_id}/domains/{domain_id}/verify

Looks up the TXT record now. 200 when it matches: the domain is verified and published to the edge, which then issues its certificate. 202 when it does not match yet (DNS can take a while); the failure is counted and the call can be repeated.

Authorization

bearer_auth
AuthorizationBearer <token>

Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.

In: header

Path Parameters

store_id*string

Store id

Formatuuid
domain_id*string

Domain id

Formatuuid

Header Parameters

Idempotency-Key?string

A unique value (e.g. a UUID) per logical request. Retrying with the same key within 24 hours replays the first response instead of repeating the side effect; the replay carries Idempotent-Replayed: true. Reusing a key for a different request is a 422 idempotency_key_reused; retrying while the first is still running is a 409 idempotency_request_in_progress. JSON bodies up to 1 MB.

Lengthlength <= 255

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/domains/497f6eca-6276-4993-bfeb-53cbbbba6f08/verify"
{
  "cname_target": "string",
  "dns_challenge": "string",
  "hostname": "loja.example.com.br",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "is_primary": true,
  "kind": "platform",
  "last_verification_attempt_at": "2019-08-24T14:15:22Z",
  "txt_record_name": "string",
  "verification_failures": 0,
  "verified_at": "2019-08-24T14:15:22Z"
}
{
  "cname_target": "string",
  "dns_challenge": "string",
  "hostname": "loja.example.com.br",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "is_primary": true,
  "kind": "platform",
  "last_verification_attempt_at": "2019-08-24T14:15:22Z",
  "txt_record_name": "string",
  "verification_failures": 0,
  "verified_at": "2019-08-24T14:15:22Z"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}