---
title: "Find condition by action ID"
method: GET
path: "/api/v1/workflow/actions/{actionId}/condition"
tags: ["Workflow"]
---

# Find condition by action ID

`GET /api/v1/workflow/actions/{actionId}/condition`

Returns a string representing the "condition" on the selected action.

More specifically: if the workflow action has anything in its [Custom Code](https://www.dotcms.com/docs/latest/custom-workflow-actions) field, the result is evaluated as Velocity, and the output is returned.

## Path parameters

- `actionId` string, required

## Response `200`

Condition returned successfully

- ResponseEntityStringView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` string
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `401` — Invalid User
- `403` — Forbidden
- `404` — Workflow action not found
- `406` — Not Acceptable
- `500` — Internal Server Error

---

[API](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anzworldline-solutions/dotcms-rest-api/revisions/0f38cbc3bd36/schema)
