cURL
curl --request GET \ --url https://api.example.com/api/trpc/projects.get
{ "id": "<string>", "name": "<string>", "description": "<string>", "created_at": "<string>", "updated_at": "<string>", "settings": { "base_url": "<string>", "default_timeout": 123, "environment": "<string>", "viewport": {} }, "tags": [ {} ], "stats": { "total_tests": 123, "passing_tests": 123, "failing_tests": 123, "last_run_at": "<string>" }, "404 Not Found": {}, "401 Unauthorized": {} }
Retrieve details of a specific project
Show properties
curl "https://api.tryiris.dev/api/trpc/projects.get?batch=1&input=%7B%22project_id%22%3A%22prj_9a8b7c6d5e%22%7D" \ -H "Authorization: Bearer ${API_KEY}"
{ "0": { "result": { "data": { "id": "prj_9a8b7c6d5e", "name": "e-commerce-testing", "description": "End-to-end testing for our e-commerce platform", "created_at": "2024-01-20T11:00:00Z", "updated_at": "2024-01-20T11:30:00Z", "settings": { "base_url": "https://shop.example.com", "default_timeout": 45, "environment": "staging", "viewport": { "width": 1920, "height": 1080 } }, "tags": ["e-commerce", "web", "staging"], "stats": { "total_tests": 25, "passing_tests": 23, "failing_tests": 2, "last_run_at": "2024-01-20T11:15:00Z" } } } } }
{ "error": "not_found", "message": "Project not found" }
{ "error": "unauthorized", "message": "Invalid API key provided" }