This is the read-only API for delivering redirects, caused by moving or renaming content in the Umbraco backoffice, to any app, website, device, or platform.
The redirect API is only available if your project is using the Content Delivery Platform. You can verify this in the Umbraco backoffice, settings section in the headless overview panel.
To request redirects in a specific language, a culture parameter can be specified. When no culture is specified it's treated as invariant and the default language will be returned.
If an error occurs, you will receive a HTTP status code along with an API error code and an error message in the response body.
JSON example:
Gets all redirect URLs.
The key is the URL of the content and the values are the URLs redirecting to the content.
URL: /redirect
Method: GET
Query Strings
The maximum page size is 1000.
Code: 200
Content Example:
Status Code | Error Code | Message |
---|---|---|
400
AmbiguousCulture
The following cultures were requested: {cultures}. At most, only a single culture may be specified. Please update the intended culture and retry the request.
400
LanguageForCultureNotFound
Could not find a language for culture {culture}.
401
Unauthorized
Authorization has been denied for this request.
500
InternalServerError
Internal server error.