---
title: "Test a steps script"
method: POST
path: "/v1/processes/{id}/steps/{stepId}/script/test"
tags: ["Processes"]
---

# Test a steps script

`POST /v1/processes/{id}/steps/{stepId}/script/test`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/processes/{id}/steps/{stepId}/script/test`
- Auth: HTTP bearer

Runs the script in the draft on up to 10 recent records of this process, writing nothing: before and after per field. Needs a prior run (a test run is enough). Needs process_build and the `processes:write` scope.

## Path parameters

- `id` string, uuid, required
- `stepId` string, required

## Response `201`

`{ hash, ok, results }`.

## Other responses

- `403`: The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
- `404`: The requested resource was not found.
- `409`: No records to test on yet.
- `504`: The test did not finish in time; try again.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/processes/:id/steps/:stepId/script/test/post.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
