DOCS
Reference

API: Endpoints

Endpoints: List endpoints, Save an endpoint definition, Delete an endpoint.

List endpoints

GET/api/v1/projects/{projectId}/endpoints

Calls into your own systems the tester may make during a run (for example "create a voucher"). Headers are never returned.

MCP tool: list_endpoints. MCP OAuth: testsy:read or a higher scope. API keys: any active workspace key.

Path
projectIdstringrequired
Project id (p_…)

Returns { endpoints: [{ id, name, description, method, url, created_at, last_used_at }] }

Request
curl https://app.testsy.dev/api/v1/projects/p_8f2k/endpoints \
  -H "Authorization: Bearer $TESTSY_AI_API_KEY"

Save an endpoint definition

POST/api/v1/projects/{projectId}/endpoints

Save the definition of one call into your own system that the tester may make during a run (for example "create a voucher"). This only stores the definition: it sends no request itself. The tester sees only the name, the description and what the call returned. bodyTemplate may contain {{param}} placeholders the tester fills in. Headers (for example Authorization) are encrypted and never returned.

MCP tool: add_endpoint. MCP OAuth: testsy:write or a higher scope. API keys: write access.

Path
projectIdstringrequired
Project id (p_…)
Body (JSON)
namestringrequired
Short name (up to 40 characters), for example create_voucher
descriptionstringrequired
What it does and when to use it (up to 600 characters)
methodPOST | GET | PUT | PATCH | DELETE
HTTP method (default POST)
urlstringrequired
https://… address
headersobject
Request headers, up to 20 (write-only)
bodyTemplatestring
Request body with {{param}} placeholders, optional

Returns 201 { id }

Request
curl -X POST https://app.testsy.dev/api/v1/projects/p_8f2k/endpoints \
  -H "Authorization: Bearer $TESTSY_AI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Release smoke","description":"Sign in, rename the workspace to Launch notes, reload, and check the new name is still shown.","url":"https://app.example.com"}'

Delete an endpoint

DELETE/api/v1/endpoints/{endpointId}

Delete an endpoint.

MCP tool: delete_endpoint. MCP OAuth: testsy:write or a higher scope. API keys: write access.

Path
endpointIdstringrequired
Endpoint id (ep_…)

Returns { ok: true }

Request
curl -X DELETE https://app.testsy.dev/api/v1/endpoints/ep_v4 \
  -H "Authorization: Bearer $TESTSY_AI_API_KEY"