---
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 API.
sidebar:
  badge: POST
  label: Create test run
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.

<Operation source="api-reference" id="automationscontroller-testrun" />
