---
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`

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

---

[API](https://skmtc.net/clerk/apis/clerk-backend-api.md) · [All operations](https://skmtc.net/clerk/apis/clerk-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clerk/clerk-backend-api/revisions/cf036e7951d3/schema)
