---
search:
  tags:
    - automations
    - POST
seo:
  description: >-
    Creates and enqueues a test run for the automation. Optional… Reference for
    the POST /automations/{id}/test-run endpoint in the Leadtime Public API.
sidebar:
  label: Create test run
  badge: POST
title: Create test run
type: openapi-operation
---
Creates and enqueues a test run for the automation. Optional testContextDoc (IDoc) is merged with the base prompt. Returns the created run id.

`POST /automations/{id}/test-run`
