Create Recovery Flow for Native Apps
Changed onThis endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on.
If a valid provided session cookie or session token is provided, a 400 Bad Request error.
On an existing recovery flow, use the getRecoveryFlow API endpoint.
You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks.
This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...).
More information can be found at Ory Kratos Account Recovery Documentation.
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/self-service/recovery/api
- Authnone declared
Response
recoveryFlow
Example response
{
"expires_at": "2000-01-23T04:56:07.000+00:00",
"transient_payload": "{}",
"ui": {
"nodes": [
{
"meta": {
"label": {
"context": "{}",
"id": 6,
"text": "text",
"type": "info"
}
},
"messages": [
{
"context": "{}",
"id": 6,
"text": "text",
"type": "info"
},
{
"context": "{}",
"id": 6,
"text": "text",
"type": "info"
}
],
"attributes": {
"autocomplete": "email",
"maxlength": 1,
"onclick": "onclick",
"pattern": "pattern",
"onclickTrigger": "oryWebAuthnRegistration",
"label": {
"context": "{}",
"id": 6,
"text": "text",
"type": "info"
},
"type": "text",
"required": true,
"onload": "onload",
"node_type": "input",
"onloadTrigger": "oryWebAuthnRegistration",
"name": "name",
"disabled": true,
"value": ""
},
"type": "text",
"group": "default"
},
{
"meta": {
"label": {
"context": "{}",
"id": 6,
"text": "text",
"type": "info"
}
},
"messages": [
{
"context": "{}",
"id": 6,
"text": "text",
"type": "info"
},
{
"context": "{}",
"id": 6,
"text": "text",
"type": "info"
}
],
"attributes": {
"autocomplete": "email",
"maxlength": 1,
"onclick": "onclick",
"pattern": "pattern",
"onclickTrigger": "oryWebAuthnRegistration",
"label": {
"context": "{}",
"id": 6,
"text": "text",
"type": "info"
},
"type": "text",
"required": true,
"onload": "onload",
"node_type": "input",
"onloadTrigger": "oryWebAuthnRegistration",
"name": "name",
"disabled": true,
"value": ""
},
"type": "text",
"group": "default"
}
],
"method": "method",
"action": "action",
"messages": [
{
"context": "{}",
"id": 6,
"text": "text",
"type": "info"
},
{
"context": "{}",
"id": 6,
"text": "text",
"type": "info"
}
]
},
"continue_with": [
{
"action": "show_verification_ui",
"flow": {
"verifiable_address": "verifiable_address",
"id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"url": "url"
}
},
{
"action": "show_verification_ui",
"flow": {
"verifiable_address": "verifiable_address",
"id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"url": "url"
}
}
],
"active": "active",
"return_to": "return_to",
"id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"state": "",
"type": "type",
"issued_at": "2000-01-23T04:56:07.000+00:00",
"request_url": "request_url"
}Changes
- breaking
added to the
///response propertyoneOflist for the response status - warning
added the new
divenum value to the///response property for the response status - warning
added the new
username webauthnenum value to the////////response property for the response status - info
added
divdiscriminator mapping keys to the///response property for the response status - info
removed the
aenum value from the////////response property for the response status - info
removed the
aenum value from the/////response property for the response status - info
removed the
aenum value from the/////response property for the response status - info
removed the
aenum value from the/////response property for the response status - info
removed the
imgenum value from the////////response property for the response status - info
removed the
imgenum value from the/////response property for the response status - info
removed the
imgenum value from the/////response property for the response status - info
removed the
imgenum value from the/////response property for the response status - info
removed the
inputenum value from the/////response property for the response status - info
removed the
inputenum value from the/////response property for the response status - info
removed the
inputenum value from the/////response property for the response status - info
removed the
inputenum value from the/////response property for the response status - info
removed the
scriptenum value from the////////response property for the response status - info
removed the
scriptenum value from the/////response property for the response status - info
removed the
scriptenum value from the/////response property for the response status - info
removed the
scriptenum value from the/////response property for the response status - info
removed the
textenum value from the////////response property for the response status - info
removed the
textenum value from the/////response property for the response status - info
removed the
textenum value from the/////response property for the response status - info
removed the
textenum value from the/////response property for the response status
- breaking
- breaking
added to the
/response propertyoneOflist for the response status - breaking
the
/response's property type changed from no type toobjectfor status - warning
added the new
captchaenum value to the///response property for the response status - warning
added the new
identifier_firstenum value to the///response property for the response status - warning
added the new
samlenum value to the///response property for the response status - info
added the optional property
///////to the response with the status - info
added the optional property
////////to the response with the status - info
added the optional property
////////to the response with the status - info
added the optional property
////////to the response with the status - info
added
redirect_browser_todiscriminator mapping keys to the/response property for the response status
- breaking