Docs
Docs
API reference

Apps

Your app: the origin every customer domain forwards to, white-label, webhooks and the signing secret.

Base URL https://api.apexly.dev. Send your key as Authorization: Bearer sk_live_… or sk_test_…; the examples read it from APEXLY_API_KEY.

Get the API key's app

GET/v1/apps/current

Response

200 OK. Errors use the error envelope.

FieldTypeDescription
idstringapp_…
namestring
origin_urlstring | nullWhere every customer domain forwards, e.g. https://app.hireflow.com.
origin_reachablebooleanResult of the latest probe.
origin_latency_msinteger | nullLatency of the latest successful probe.
origin_checked_atstring | nullWhen the origin was last probed (RFC 3339).
origin_status_reasonstring | nullWhy the latest probe failed: origin_not_allowed | origin_dns_failed | origin_timeout | origin_tls_error | origin_connection_failed | origin_http_error | origin_too_many_redirects | origin_bad_redirect.
origin_unreachablebooleanTrue after 3 consecutive failed probes (re-probed every 15 minutes).
webhook_urlstring | null
whitelabel_hoststring | null
whitelabel_verifiedboolean
whitelabel_targetstringWhat whitelabel_host must CNAME to, e.g. edge.apexly.dev.
whitelabel_status_reasonstring | nullwhitelabel_unverified while whitelabel_host is set but its CNAME chain does not reach whitelabel_target. One of whitelabel_unverified.
whitelabel_foundstring | nullThe CNAME last seen at whitelabel_host while unverified (null = no record).
whitelabel_checked_atstring | nullWhen whitelabel_host was last checked (every 6 hours once verified).
whitelabel_grace_ends_atstring | nullSet when a verified host broke: domains routed through it keep serving until then, then go dns_broken.
apex_redirect_defaultstringOne of none, www.
created_atstring

Example

curl https://api.apexly.dev/v1/apps/current \
  -H "Authorization: Bearer $APEXLY_API_KEY"

Update the API key's app

PATCH/v1/apps/current

A given origin_url is validated (https, public hostname, not an IP, not an Apexly host, not a domain of another app) and probed before it is saved; the response carries origin_reachable and origin_latency_ms. 422 origin_not_allowed when it resolves to a private, loopback, link-local, CGNAT or reserved address. Test keys are sandboxed: once the app has a live domain, a test key gets 403 forbidden (use a live key or the dashboard).

Body

FieldTypeDescription
namestringAt most 80 characters.
origin_urlstringhttps, scheme and host only; probed before it is saved. At most 2048 characters.
webhook_urlstring | nullhttps; stored, deliveries start in a later release. At most 2048 characters.
whitelabel_hoststring | nulle.g. domains.hireflow.com (Growth and above, or trial); verified separately; null turns white-label off. At most 253 characters.
apex_redirect_defaultstringOne of none, www.

Response

200 OK. Errors use the error envelope.

FieldTypeDescription
idstringapp_…
namestring
origin_urlstring | nullWhere every customer domain forwards, e.g. https://app.hireflow.com.
origin_reachablebooleanResult of the latest probe.
origin_latency_msinteger | nullLatency of the latest successful probe.
origin_checked_atstring | nullWhen the origin was last probed (RFC 3339).
origin_status_reasonstring | nullWhy the latest probe failed: origin_not_allowed | origin_dns_failed | origin_timeout | origin_tls_error | origin_connection_failed | origin_http_error | origin_too_many_redirects | origin_bad_redirect.
origin_unreachablebooleanTrue after 3 consecutive failed probes (re-probed every 15 minutes).
webhook_urlstring | null
whitelabel_hoststring | null
whitelabel_verifiedboolean
whitelabel_targetstringWhat whitelabel_host must CNAME to, e.g. edge.apexly.dev.
whitelabel_status_reasonstring | nullwhitelabel_unverified while whitelabel_host is set but its CNAME chain does not reach whitelabel_target. One of whitelabel_unverified.
whitelabel_foundstring | nullThe CNAME last seen at whitelabel_host while unverified (null = no record).
whitelabel_checked_atstring | nullWhen whitelabel_host was last checked (every 6 hours once verified).
whitelabel_grace_ends_atstring | nullSet when a verified host broke: domains routed through it keep serving until then, then go dns_broken.
apex_redirect_defaultstringOne of none, www.
created_atstring

Example

curl -X PATCH https://api.apexly.dev/v1/apps/current \
  -H "Authorization: Bearer $APEXLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"origin_url":"https://app.hireflow.com"}'

Rotate the signing secret

POST/v1/apps/current/signing-secret/rotate

Issues a new whsec_ secret, returned only in this response. The previous secret keeps verifying for 24 hours (previous_valid_until). Needs a live key: test keys are sandboxed (403 forbidden).

Response

200 OK. Errors use the error envelope.

FieldTypeDescription
signing_secretstringThe new whsec_… secret. Returned only in this response.
previous_valid_untilstringThe previous secret keeps verifying until then (24 h, RFC 3339).

Example

curl -X POST https://api.apexly.dev/v1/apps/current/signing-secret/rotate \
  -H "Authorization: Bearer $APEXLY_API_KEY"
Was this helpful?
Edit this page