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.
| Path |
|---|
projectIdstringrequired |
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.
| Path |
|---|
projectIdstringrequired |
| Body (JSON) |
|---|
namestringrequired |
descriptionstringrequired |
methodPOST | GET | PUT | PATCH | DELETE |
urlstringrequired |
headersobject |
bodyTemplatestring |
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.
| Path |
|---|
endpointIdstringrequired |
Returns { ok: true }
Request
curl -X DELETE https://app.testsy.dev/api/v1/endpoints/ep_v4 \
-H "Authorization: Bearer $TESTSY_AI_API_KEY"