Published at 2026-06-26
Changes to the API since 043.
The publish endpoint (POST /listings/{id}/publish) now accepts an optional
allowedAutoApprove boolean parameter.
When set to true, Hemnet will attempt to automatically approve the listing at
the same time as it is published. Publication and approval are atomic — if
auto-approval fails for any reason, the listing will not be published.
The combination of isPublished and isApproved publication states will make
the listing become visible on hemnet.se.
Auto-approval is currently only attempted for listings in the TEASED market state. We do not currently allow any other market states to become approved from the API, because they are behind paid plans. However, the set of supported market states is not exhaustive and may expand in the future without being considered a breaking change.
For auto-approval to succeed the listing must satisfy a number of preconditions,
including complete seller and billing information. If any precondition is not
met, the endpoint returns 422 with one or more errors describing what is
missing. In that case the listing remains unpublished.
The parameter is optional — existing integrations that omit it continue to work unchanged.