Submit a Flow Engine capability response.
curl --request POST \ --url https://auth.example.com/api/flow/submit \ --header 'Content-Type: application/json' \ --data '{ "sessionId": "flow_sess_123", "requestId": "req_123", "capabilityId": "email_code.verify", "response": { "code": "123456" } }'Submits a capability-specific response and returns the next UI contract, redirect instruction, or flow error.
Request Body required
Section titled “Request Body required ”object
Capability-specific response payload.
Example
{ "sessionId": "flow_sess_123", "requestId": "req_123", "capabilityId": "email_code.verify", "response": { "code": "123456" }}Responses
Section titled “ Responses ”Successful JSON response.
object
Server-driven Flow Engine UI contract for the current node.
object
object
object
object
object
object
object
object
Example
{ "type": "continue", "uiContract": { "version": "0.1", "sessionId": "flow_sess_123", "nodeId": "email_code", "capabilities": [] }}Error response.
object
Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.
object
Example generated
{ "error": "example", "error_description": "example", "message": "example", "webauthn_signal": { "unknown_credential": true }}Error response.
object
Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.
object
Example generated
{ "error": "example", "error_description": "example", "message": "example", "webauthn_signal": { "unknown_credential": true }}Error response.
object
Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.
object
Example generated
{ "error": "example", "error_description": "example", "message": "example", "webauthn_signal": { "unknown_credential": true }}