How do I create a test run with the TofuPilot API?
Updated July 7, 2026
Use the Python SDK (client.runs.create with procedure_id, serial_number, part_number, outcome, and phases) or the REST endpoint POST https://www.tofupilot.app/api/v2/runs. Authenticate with an API key passed as a bearer token or the TOFUPILOT_API_KEY environment variable.
Related questions
- How do I install the TofuPilot Python SDK?Install from PyPI: pip install tofupilot. Import it as "from tofupilot.v2 import TofuPilot". Pass your API key to the constructor or set the TOFUPILOT_API_KEY…
- What is TofuPilot's relationship with OpenHTF?We've used TofuPilot for years on drone manufacturing floors and maintain openhtf.org, the open-source OpenHTF documentation site. We're also close to the…
- Why does my Cpk drop when tests correctly catch failing units?Cpk measures process capability, so far-out-of-limit readings from a known upstream failure distort it. Use yield to track pass/fail performance and Cpk to…