{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"redocly_category":"Journeys","product":"Identity Management","type":"markdown"},"seo":{"title":"Report Action Result","description":"Everything about Mosaic Journeys, SDKs, and APIs","siteUrl":"https://developer.transmitsecurity.com"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"report-action-result","__idx":0},"children":["Report Action Result"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"badge-wrapper"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"className":"badge"},"children":["Client SDK"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"badge"},"children":["Backend API"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"badge"},"children":["Mobile approve"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"badge"},"children":["SSO"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"badge"},"children":["Sub-journey"]}]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Reports the outcome of a previously triggered or evaluated action to Fraud Prevention"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"description","__idx":1},"children":["Description"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This step is used to report the outcome of an action that Fraud Prevention already issued a recommendation for, such as a login assessed by the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/orchestration/journeys/risk_recommendation"},"children":["Fraud Level Analysis"]}," step or a payment assessed by the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/orchestration/journeys/evaluate_transaction"},"children":["Evaluate Transaction"]}," step. It reports whether the action succeeded, which challenge (if any) was presented to the user, and the identity of the user once it's known."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use this step after the user completes the action, for example after any required step-up authentication. Reporting the outcome adds context that Fraud Prevention uses for future risk assessments. Reporting a user ID on a successful login-type action also sets the user for all subsequent events in the device session. For other actions, such as transactions, the user is set for that action only. To report an outcome, the step needs the action token returned when the action was triggered or evaluated."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can report the outcome of the same action multiple times, for example after each authentication factor. This lets you see that the first factor succeeded but the second factor failed."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The step sends the outcome to Fraud Prevention, but the reported outcome doesn't determine how the journey proceeds: if the report is submitted successfully, the journey continues to the next step, even when the reported outcome is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Failure"]}," or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incomplete"]},". The step fails only if the report can't be submitted, for example due to a network error, a timeout, an invalid action token, or a service error. In this case, the journey proceeds according to the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Failure behavior"]}," setting."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Reported outcomes are stored with the action. You can review them on the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Recommendations"]}," page (",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Admin Portal"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Fraud Prevention"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Recommendations"]},"), for example by filtering on ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Action result"]},", or retrieve them using the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/openapi/risk/actions-search.openapi/other/searchactions"},"children":["Search actions"]}," API, which returns them in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["recommendation.result"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["recommendation.challenge_type"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"configuration","__idx":2},"children":["Configuration"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"table"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Action token"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Expression that yields the token of the previously triggered or evaluated action whose outcome is reported. Required. Use the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["action_token"]}," from the output variable of the preceding Fraud Prevention step:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/orchestration/journeys/risk_recommendation"},"children":["Fraud Level Analysis"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["risk_recommendation.action_token"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/orchestration/journeys/evaluate_transaction"},"children":["Evaluate Transaction"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_result.action_token"]}]}]},"If you renamed the step's output variable, use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<output_variable>.action_token"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Action outcome"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Outcome of the reported action: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Success"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Failure"]},", or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incomplete"]},". This value doesn't determine whether the step proceeds to the success or failure branch."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["User ID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Expression that yields the ID of the authenticated user. Set it when the user identity became known after the action was triggered."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Challenge type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Type of challenge presented to the user for the action. Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["No challenge"]}," if no challenge was used. Other options: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["SMS OTP"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Email OTP"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["TOTP"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Push OTP"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Voice OTP"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Identity verification"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["CAPTCHA"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Password"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Passkey"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Error output variable"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Name of the variable that stores any errors returned by the step. Default: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Failure behavior"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Determines the behavior in case of failure, which either aborts the journey or proceeds to a failure branch of the control flow (default)."]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Journey event data"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This step can be configured to record step input and output data, or a custom payload, which is then surfaced in journey events in Journey Analytics for diagnostic purposes. For details, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/orchestration/getting-started/event_reporting"},"children":["Additional data reporting"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"example","__idx":3},"children":["Example"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Consider a login journey that assesses the login attempt with Fraud Prevention before the user authenticates."]},{"$$mdtype":"Tag","name":"figure","attributes":{"style":{"margin":"0"}},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/assets/report_action_results_ex.af8634ab5aea752c1ea853da8f7030bdb47e55d945426b9ba0bddafa4afea778.6f9096f8.png","target":"_blank"},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/report_action_results_ex.af8634ab5aea752c1ea853da8f7030bdb47e55d945426b9ba0bddafa4afea778.6f9096f8.png","alt":"Report Action Result journey example","style":{"maxWidth":"100%","border":"1px solid #ededf2"}},"children":[]}]},{"$$mdtype":"Tag","name":"figcaption","attributes":{"style":{"color":"grey","fontStyle":"italic","fontSize":"14px"}},"children":["Click to open the image in a dedicated tab."]}]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/orchestration/journeys/risk_recommendation"},"children":["Fraud Level Analysis"]}," step assesses the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["login"]}," action. On ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Trust"]}," or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Allow"]},", the user authenticates with a password. On ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Challenge"]},", the user also completes ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/orchestration/journeys/authenticate_email_otp"},"children":["Email OTP Authentication"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once the user authenticates, the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Report Action Result"]}," step reports the outcome of the login action. In the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Challenge"]}," branch, the step is configured with:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Action token"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["risk_recommendation.action_token"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Action outcome"]},": ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Success"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["User ID"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@policy.userContext().user_id"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Challenge type"]},": ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Email OTP"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Trust"]}," and ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Allow"]}," branches, the step uses the same configuration, with ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Challenge type"]}," set to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["No challenge"]},". Since the user identity is only known after authentication, reporting the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["User ID"]}," also sets the user for subsequent events in the device session."]}]},"headings":[{"value":"Report Action Result","id":"report-action-result","depth":1},{"value":"Description","id":"description","depth":2},{"value":"Configuration","id":"configuration","depth":2},{"value":"Example","id":"example","depth":2}],"frontmatter":{"markdown":{"toc":{"depth":2}},"seo":{"title":"Report Action Result"}},"lastModified":"2026-11-05T16:17:49.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/orchestration/journeys/report_action_result","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}