---
title: "Create an enterprise connection test run"
method: POST
path: "/enterprise_connections/{enterprise_connection_id}/test_runs"
tags: ["Enterprise Connections"]
---

# Create an enterprise connection test run

`POST /enterprise_connections/{enterprise_connection_id}/test_runs`

## Request

- Base URL: `https://api.clerk.com/v1`
- URL: `https://api.clerk.com/v1/enterprise_connections/{enterprise_connection_id}/test_runs`
- Auth: HTTP bearer

Returns a short-lived URL that starts the IdP test flow for this connection.

## Path parameters

- `enterprise_connection_id` string, required

## Response `200`

A URL to initiate an enterprise connection test run

- EnterpriseConnectionTestRunResponse
  - `url` string, required: A short-lived URL that can be used to initiate the test run flow

## Other responses

- `402`: Payment required
- `403`: Authorization invalid
- `404`: Resource not found

## Changes

- **2026-06-04** (2025-11-10) `4db0b9e2d5e6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/clerk/apis/clerk-backend-api/changes/enterprise_connections/:enterprise_connection_id/test_runs/post.md)

---

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