API overview

The Pie API is served from https://api.pie.inc under /v1/ and authenticates with an API key in the X-API-Key header. These are the endpoints customers call most. For every operation and schema, see the interactive API reference.

Most of these also have an MCP tool. See MCP tools. For headers, the response envelope and sign-in errors, see Authentication and Error codes.

Loops

Method and pathWhat it doesNotes
POST /v1/loops/triggerRuns a web Loop from CI/CDThe JSON body names the Loop with scheduleId. For a mobile app, upload the build with POST /v1/app/builds/loop instead. See Trigger from CI.

Builds

Method and pathWhat it doesNotes
POST /v1/app/buildsUploads a new buildFor mobile apps. See Prepare mobile builds.
POST /v1/app/builds/loopUploads a mobile build and runs it through a LoopMultipart upload. The Loop fires once the build verifies.
POST /v1/app/builds/code-reviewUploads a build scoped to a pull request or merge requestSee Test PRs.
POST /v1/app/builds/coverage-scanUploads a mobile build and triggers a coverage scan after verificationSee Coverage scans.

To list builds or check a build’s verification status, use GET /v1/builds and GET /v1/builds/{buildID} in the full reference.

Coverage scans

Method and pathWhat it doesNotes
POST /v1/coverage-scansTriggers a full coverage scanAny member can start a scan, and Pie reviews it. See Run a coverage scan.

Runs

Method and pathWhat it doesNotes
POST /v1/runsCreates a new test run
POST /v1/runs/customCreates a custom run from test cases you pick plus new ones
POST /v1/test-executionsExecutes specific test cases
GET /v1/runsLists the history of test runs
GET /v1/runs/{runId}Returns one run with its execution and suite configuration
GET /v1/runs/progressReturns a run’s progressPoll it to see whether a run has finished.

Findings, issues and test cases

Method and pathWhat it doesNotes
PATCH /v1/findingsApproves or rejects findings in bulk
PATCH /v1/issuesRejects or dismisses issues in bulkUse it for bulk triage. You can reject issues, not approve them.
PATCH /v1/test-casesUpdates test cases in bulk
GET /v1/issues/{issueId}/repro-historyReturns an issue’s verification historySummarizes whether a fix holds, using the issue’s repro test when one exists.

Everything else

The full reference also covers apps, test cases, test suites, key features, results, scripts, credentials and the build list. Credential endpoints never return passwords. The pages for credentials and execution scripts name the endpoints they use.

Last updated on