---
title: "Executes the defined workflowstep with the specified user/event attributes"
method: POST
path: "/applications/{application}/preview_action"
tags: ["workflows"]
---

# Executes the defined workflowstep with the specified user/event attributes

`POST /applications/{application}/preview_action`

## Path parameters

- `application` string, required

## Request body

- PreviewRequestType — Details the action to be previewed
  - `workflowStep` WorkflowStepType — Generic workflow step definition for all types of steps. These extend this definition by adding extra properties when necessary.
    - `type` 'START' | 'TERMINAL' | 'ACTION' | 'CONDITION' | 'WAIT' | 'SENDGRID_EMAIL_ACTION' | 'MANDRILL_EMAIL_ACTION' | 'SNS_PUSH_ACTION' | 'AB_SPLIT' | 'SNS_SMS' | 'ADWORDS_REMARKETING_ACTION' | 'TAG' | 'UNTAG', required — Describes the type of a workflow step
    - `name` string, required — the name of the step. This is used to refer to the step within the workflow.
    - `description` string
    - `transitions` object — map from the transition name to the resulting workflow step.
      - `transitionName` string — the name of the step. This is used to refer to the step within the workflow.
  - `userProperties` object — A map of user properties to be used as user fields. If the action contains ${user.name}, should have an element with key 'name'
  - `eventProperties` object — A map of user properties to be used as event fields. If the action contains ${event.level}, should have an element with key 'level'

## Response `200`

The action was executed correctly

- PreviewResultType — Holds information about the result of executing an action
  - `result` string

## Other responses

- `400` — Invalid parameters
- `500` — The action did not execute correctly
- `503` — The actions handler load balancer is unavailable

---

[API](https://skmtc.net/gameanalytics/apis/datatiger-management-api.md) · [All operations](https://skmtc.net/gameanalytics/apis/datatiger-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gameanalytics/datatiger-management-api/versions/20a4f732a0b7/schema)
