Creates a new Check
https://api.vercel.com/v1/deployments/{deploymentId}/checksThis endpoint is deprecated
const response = await fetch('https://api.vercel.com/v1/deployments/deploymentId/checks?teamId=string&slug=string', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', }, body: JSON.stringify({ "name": "Performance Check", "path": "/", "blocking": "true", "detailsUrl": "http://example.com", "externalId": "1234abc", "rerequestable": "true" }),});
const data = await response.json();console.log(data);{ "id": "chk_1a2b3c4d5e6f7g8h9i0j", "name": "Performance Check", "createdAt": "123", "updatedAt": "123", "deploymentId": "example_id", "status": "completed", "conclusion": "succeeded", "externalId": "example_id", "output": { "metrics": { "FCP": { "value": "123", "previousValue": "123", "source": "web-vitals" }, "LCP": { "value": "123", "previousValue": "123", "source": "web-vitals" }, "CLS": { "value": "123", "previousValue": "123", "source": "web-vitals" }, "TBT": { "value": "123", "previousValue": "123", "source": "web-vitals" }, "virtualExperienceScore": { "value": "123", "previousValue": "123", "source": "web-vitals" } } }, "completedAt": "123", "path": "/api/users", "blocking": "false", "detailsUrl": "https://example.com", "integrationId": "example_id", "startedAt": "123", "rerequestable": "false"}Default authentication mechanism