Jobs
Submit a job
Submit a new CI job for execution
Authorization
api_key X-API-Key<token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/jobs" \ -H "Content-Type: application/json" \ -d '{ "repository": { "url": "https://github.com/user/repo.git", "ref": "main" }, "trigger": { "event": "push" } }'{
"job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
"status": "pending",
"repository": {
"url": "https://github.com/user/repo.git",
"ref": "main",
"commit_sha": "string",
"auth": {
"type": "bearer",
"token": "string",
"private_key": "string"
}
},
"trigger": {
"event": "push",
"branch": "string",
"pr_number": 0
},
"steps": [
{
"step_name": "string",
"status": "success",
"exit_code": 0,
"duration_ms": 0
}
],
"artifacts": [
{
"name": "string",
"size": 0,
"content_type": "string",
"created_at": "2019-08-24T14:15:22Z"
}
],
"created_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z"
}Empty
Empty