Browse API

Jobs

List or create Jobs with validated source and execution settings.

GET/api/v0/projects/<key>/jobs

List Jobs

GET https://repopack.com/api/v0/projects/<key>/jobs
Authorization: Bearer <token>

The response is a JSON array of project-scoped Job presentations ordered by creation time (newest first). The token's account needs job.read; an unreadable project or missing read permission returns 401. Jobs use permanent project-local numbers, not database IDs. This list has no cursor or page size parameter.

Create a Job

POST https://repopack.com/api/v0/projects/<key>/jobs
Authorization: Bearer <token>
Content-Type: application/json

{"name":"release","source":"master","execution":{"mode":"containerfile","containerfile":"Containerfile.release","context":"."},"artifact_paths":["/release"]}

The closed JSON object requires name and execution; optional description, source (defaults to manual master), artifact_paths, and artifact_access (only "project") are accepted. The configuration must fit within 64 KiB after normalization; artifact paths, execution and source are validated before any creation. A trigger:master source additionally requires job.run and compatible non-secret build arguments. Job creation requires job.write, rejects conflicting names, and is human-confirmed: the initial successful request returns 428, not a created Job. Confirmed execution returns the Job presentation. Changed confirmation input returns 409 job_creation_changed; invalid configuration or missing source returns 400, absent write permission 403. After an uncertain response observe the guarded action and inspect the Job list before creating another. Run artifacts remain project-only; publish a Release for public distribution.