Skip to main content
POST
Gửi hoặc xác thực mã khôi phục

Tham số truy vấn

flow
string
bắt buộc

Ma flow duoc tra ve tu endpoint tao flow tuong ung. Khi submit/update flow phai truyen dung ma nay trong query flow.

Nội dung

application/json

Payload cap nhat self-service flow. Truyen ma flow tren query string va gui cac field bat buoc cua method dang dung.

Payload dung de yeu cau ma recovery cho email tren recovery flow.

method
enum<string>
bắt buộc

Phuong thuc recovery. Dung code cho recovery bang ma gui qua email.

Tùy chọn có sẵn:
code
email
string<email>
bắt buộc

Email se nhan ma recovery.

Phản hồi

Recovery flow da duoc cap nhat. Khi challenge thanh cong, response co the tra session_token truc tiep hoac continue_with chua set_session_token.

Recovery flow sau khi cap nhat. Xac minh thanh cong co the kem session_token hoac continue_with.

id
string

Ma flow. Dung gia tri nay lam query parameter flow khi submit hoac update flow.

type
string

Loai flow do he thong tra ve, vi du browser hoac api.

expires_at
string<date-time>

Thoi diem flow het han. Can submit flow truoc thoi diem nay.

issued_at
string<date-time>

Thoi diem he thong tao flow.

ui
object

Payload UI cua gom action URL, method, nodes, messages va CSRF node khi can.

state
string

Trang thai hien tai cua flow, vi du choose_method, sent_email, passed_challenge hoac success.

request_url
string

URL request goc dung de tao flow.

organization_id
string | null

Ma organization cho flow theo organization, khi co.

created_at
string<date-time>

Thoi diem tao flow.

updated_at
string<date-time>

Thoi diem cap nhat flow.

refresh
boolean

Cho biet flow co phai refresh flow hay khong.

requested_aal
string

Muc dam bao xac thuc duoc yeu cau cho flow.

identity
any

Identity gan voi settings flow khi tra ve.

session_token
string

Session token tra ve sau khi xac minh recovery thanh cong, neu he thong phat truc tiep.

continue_with
object[]

Cac hanh dong tiep theo do he thong tra ve, vi du instruction set_session_token.