CorefinityCorefinityDocs
Open the Control PanelControl Panel
Redirects · 3 of 5

Download a site's redirects

Answers the saved table as a text file, as an attachment and never cached. The answer is plain text, not JSON.

GET/api/corestack/sites/{site}/redirects/export

Path parameters

siteintegerRequired

The id of a site row. A website's production site and each of its environments has its own id. Digits only. At least 1.

Query parameters

formatstring

The file format. Defaults to nginx.

nginxapachecsv

Returns

200 The file.

Fields of the 200 answer

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
409deletedThe site, environment or copy has been deleted, or is being deleted. Nothing can be changed on it. Restore a deleted site first if it can still be restored.
409provisioningThe site is still being created. Try again in a few minutes.
422invalidFix the field named in field; errors says why.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl https://manage.corefinity.com/api/corestack/sites/1042/redirects/export \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
"type,from,to,status,keep_query,enabled,note\nexact,/about-us.html,/about,301,1,1,Old brochure page\nprefix,/blog,/news,301,1,1,\n"
Try it

Try it is off for this endpointIt has not been cleared for the console. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT