Appearance
Reliability and errors
Handle every documented status explicitly and retry only requests that are safe to repeat. The API Reference defines the response body for each operation.
Rate limits and pagination
All v1 routes share a limit of 120 requests per minute per credential. Separate credentials have independent quotas, even within one account or when created by the same administrator. A 429 Too Many Requests response includes Retry-After; wait at least that many seconds before retrying and add a small random delay when several processes use the same credential.
Only GET /properties is paginated:
pagestarts at 1;per_pagedefaults to 15 and accepts 1 through 100;- responses contain
metaandlinks; - follow
links.nextuntil it isnull.
Property schema, fields, field options, and contact forms are unpaginated. Do not send pagination parameters to those configuration endpoints.
Status handling
| Status | Meaning | What to do |
|---|---|---|
200 | Read, update, restore, media operation, or idempotent create recovery completed | Keyed recovery returns current property state, not a cached response; for media attach, also inspect the per-URL errors array. |
201 | Property created | Persist data.id; do not recreate merely because later processing failed. |
204 | Full-access token check or deletion succeeded | Expect an empty response body. |
401 | Credential is missing, invalid, expired, revoked, or its account is unavailable | Stop retrying; ask an account administrator to check the account and replace the credential if needed. |
403 | The token lacks the required permission, or account settings, the property, or the plan does not allow the action | Do not retry unchanged. Ask an account owner or administrator to update the token permissions or resolve the stated restriction. |
404 | The property, media item, or field was not found in this Residenda account | Refresh local mappings; do not substitute an ID from another account. |
409 | A key conflicts with its original input/target/action/condition, or a create/restore key's property is unavailable | Inspect code: idempotency_key_conflict or idempotency_target_unavailable. Keep the original If-Match on update recovery. Reconcile manually; do not bypass a conflict with a new key. |
412 | The property no longer matches the supplied If-Match | code: property_revision_conflict. No partial update or key reservation is committed. Read again and review the proposed update; never blindly refresh the condition and retry. |
422 | Query, body or header validation failed, or media synchronization stopped without making partial changes | Read errors, correct the request, and call GET /property-schema again when fields or options changed. |
429 | Rate limit reached | Honor Retry-After, then retry with a small random delay. |
500 | Unexpected server error | Retry only when the operation is safe, with exponential backoff and a finite attempt limit; otherwise reconcile state first. |
A normal validation response has a top-level message and field-keyed errors:
json
{
"message": "The given data was invalid.",
"errors": {
"listing_type": [
"The selected listing type is invalid."
]
}
}Use error text to help people understand a failure, but do not parse it in program logic. Branch on the HTTP status and documented stable codes such as remote_media_processing_failed.
For PUT/PATCH translations, 422 includes whole-field null, empty maps/lists, inactive language keys, and null entries for title or required custom translations. Nullable translations accept individual-language nulls, not whole-field null. Blank or whitespace-only language strings become null before validation. Omitted languages remain unchanged; see translation updates.
An If-Match header must contain exactly one received strong ETag, including its double quotes around 64 lowercase hexadecimal characters. Empty, malformed, weak, list, wildcard or repeated headers return 422 with errors.If-Match. Omitting the header is valid and leaves updates unconditional.
Retry safety by operation
- Safe reads: retry
GETafter transient transport failures,429, or selected5xxresponses. - Property create with a key: persist a unique
Idempotency-Keyand the full input before the firstPOST /properties, then reuse both after a lost response,429, or selected5xxresponses. The server returns201for a new creation, or200with the same property's current state on recovery. It does not reapply input. Changed input or an unavailable original property returns409; never auto-retry with a new key. Reservations are account-scoped and do not expire. See create recovery. - Property create without a key: a lost response may mean the property was created even though your integration did not receive its ID. Do not retry automatically; reconcile before creating another property. The
referencefield is not guaranteed unique and cannot prove whether the first request succeeded. - Property update with a key: persist a unique key, target UUID, full input and any original
If-Matchbefore the first PUT/PATCH; reuse them unchanged for a bounded retry after an ambiguous failure. A completed key returns200with current data and ETag, without reapplying old values or rechecking the original condition, even after newer edits. Keep the original condition even if success made it stale. Do not advance to a newer operation while the old one remains uncertain. See update recovery for capability discovery and conflicts. - Property update without a key:
PATCH /properties/{property}andPUT /properties/{property}apply supplied values on every request, merging only supplied translation languages. WithoutIf-Match, an old retry can overwrite newer changes to supplied values. WithIf-Match, a stale condition returns412, but cannot tell you whether a previous timed-out attempt succeeded or another writer changed the property. A later GET alone cannot prove a timed-out request will not still complete; investigate before sending newer data. - Property restore: persist a new key and target UUID before
POST /properties/{property}/restorewith exactly{}and no query. Restore requires the key and echoes it on200. Bounded retries with the same key return current state without resetting later publication status. A later soft deletion yields409 idempotency_target_unavailable; another action, input or target under the same shared update/restore key yields409 idempotency_key_conflict. Never automatically replace the key or recreate the target. Discover restore support separately; see restore recovery. - Media attach: repeated source URLs sent to
POST /properties/{property}/imagesare deduplicated, but always inspectattachedanderrorsbecause processing permits partial success. - Media synchronization: repeating the same complete ordered URL list with
PUT /properties/{property}/imagesis idempotent. If a new download fails, the endpoint returns422before any existing media is removed or reordered, so retry after fixing the remote source. - Delete: a successful delete returns
204for properties. If the response is lost, verify with a read before deciding whether a subsequent404represents completed cleanup.
Manual XML takeover is an operator boundary
XML-profile restore/delete remains denied by default. Operators must configure the exact account/profile pair in both XML_IMPORT_API_LIFECYCLE_PROFILES (default '[]') and XML_IMPORT_PAUSED_PROFILES; the server requires the explicit allowlist match and ImportPause::isPaused. A pause alone is not permission. Malformed configuration fails closed with ordinary 403, without exposing configuration details. Do not retry unchanged or attempt to override this through request data. See the pair format and scope.
This permission applies to holders of normal properties:write in that account, not one special integration credential, and never relaxes dashboard/user, unknown-profile or other-account restrictions. UUID and import provenance remain intact. Restore retries are authorized again: keep both flags until takeover has ended, including all lifecycle recovery attempts. Refresh service configuration and config caches consistently before relying on changed flags.
Neither flag proves an already-running legacy job drained, interrupts its writes, or locks out another writer. Independently stop and verify the previous writer has finished before takeover; do not resume it while replacement delivery is active. A 200 restore or 204 delete proves the requested API operation, not exclusive ownership, content parity or website publication.
When using authenticated property reads to decide whether geocoding is needed, test each coordinate for null, not falsiness. Numeric zero is preserved, including (0, nonzero), (nonzero, 0) and (0, 0); only null means missing. Do not replace valid zero coordinates because of a truthiness check.
Conditions and recovery serve different purposes
If-Match checks whether a new update is still based on the observed property state. Idempotency-Key acknowledges an update that already succeeded without applying it again. Use both when you need both protections:
- Read the property, inspect its data, and review the intended update. Save the received ETag and send it as
If-Match, together with a saved operation key and input. - After an ambiguous failure, retry the original key, body, target and header. A successful key is recovered even when its old condition is now stale. Adding, changing or removing that condition under a successful key returns
409 idempotency_key_conflict; requests originally sent without a condition retain their existing fingerprints. - After a definitive
412 property_revision_conflict, no partial property change or key reservation remains from that attempt. Read again and review the differences before deciding whether to send a revised operation with a new condition. Do not automate a blind ETag refresh-and-retry loop. If an earlier attempt's outcome is still uncertain, investigate it before moving on.
Single-property GET and successful PUT/PATCH, including recovery, return strong ETags. These are account/property-bound observations of the raw stored property row and resolved response, including hidden/inactive translations, not just timestamps. The check runs under a property row lock before mutations and covers other writers' property-row changes committed before it. It is conservative and whole-property, not per-field merge-if-unchanged. It does not lock catalog/settings/media, prevent later edits after commit, or track permanent revision history when identical state recurs. See conditional update scope.
These responses include Cache-Control: no-cache, private, no-transform so intermediaries preserve the representation and its strong ETag. Origin compression must also be disabled for these responses; no-transform alone does not disable Nginx gzip. If a response arrives with a weak tag (W/"..."), stop the conditional update and report the transport configuration problem. Do not strip W/, reconstruct a token, or silently omit If-Match. Requesting Accept-Encoding: identity alone is not a fix when a CDN independently requests compressed content from the origin.
A bounded 429 retry
sh
attempt=0
while (( attempt < 4 )); do
headers="$(mktemp)"
status="$(curl --silent --show-error \
--dump-header "${headers}" \
--output response.json \
--write-out '%{http_code}' \
--header "Authorization: Bearer ${RESIDENDA_TOKEN}" \
"${RESIDENDA_API}/properties?per_page=100")"
if [[ "${status}" != '429' ]]; then
rm -f "${headers}"
break
fi
retry_after="$(awk 'tolower($1) == "retry-after:" {gsub("\\r", "", $2); print $2}' "${headers}")"
rm -f "${headers}"
[[ "${retry_after}" =~ ^[0-9]+$ ]] || retry_after=1
sleep "$(( retry_after + attempt ))"
((attempt += 1))
doneImplement the same bounded retry policy in production and monitor repeated failures without logging bearer tokens or sensitive request data.