Skip to main content
POST
Gửi dữ liệu đăng ký vào luồng registration

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.

JSON payload dung de submit dang ky user moi vao registration flow.

method
enum<string>
bắt buộc

Phuong thuc dang ky. Client gui password cho dang ky dua tren mat khau.

Tùy chọn có sẵn:
password
traits
object
bắt buộc

Cac identity traits se duoc tao tren identity.

password
string<password>
bắt buộc

Mat khau gan cho identity moi. Ung dung mobile co the tu sinh mat khau an toan cho onboarding bang OTP.

csrf_token
string

CSRF token lay tu UI node cua registration flow khi he thong yeu cau.

Phản hồi

Registration flow da duoc xu ly. Response la registration flow moi nhat va co the kem session field neu he thong cho phep tao session ngay.

self-service flow object duoc tra ve boi cac endpoint tao/cap nhat login, registration, recovery va settings flow.

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.