v1
latestOpenAPI 3.0.3Apache 2.02026-07-173769114.2 KBComplete Registration Flow with Username/Email Password Method
Use this endpoint to complete a registration flow by sending an identity's traits and password. This endpoint behaves differently for API and browser flows.
API flows expect application/json to be sent in the body and respond with HTTP 200 and a application/json body with the created identity success - if the session hook is configured the session and session_token will also be included; HTTP 302 redirect to a fresh registration flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors.
Browser flows expect application/x-www-form-urlencoded to be sent in the body and responds with a HTTP 302 redirect to the post/after registration URL or the return_to value if it was set and if the registration succeeded; a HTTP 302 redirect to the registration UI URL with the flow ID containing the validation errors otherwise.
More information can be found at Ory Kratos User Login and User Registration Documentation.
Query parameters
Flow is flow ID.
Request body
Response
registrationViaApiResponse