---
title: "Receive artifacts (output files) from the ComfyUI GitHub Action"
method: POST
path: "/upload-artifact"
---

# Receive artifacts (output files) from the ComfyUI GitHub Action

`POST /upload-artifact`

## Request body

- object
  - `repo` string, required — Repository name
  - `job_id` string, required — Unique identifier for the job
  - `run_id` string, required — Unique identifier for the run
  - `os` string, required — Operating system used in the run
  - `cuda_version` string — Cuda version.
  - `bucket_name` string — The name of the bucket where the output files are stored
  - `output_files_gcs_paths` string — A comma separated string that contains GCS path(s) to output files. eg. gs://bucket-name/output, gs://bucket-name/output2
  - `comfy_logs_gcs_path` string — The path to ComfyUI logs. eg. gs://bucket-name/logs
  - `comfy_run_flags` string — The flags used in the comfy run
  - `commit_hash` string, required
  - `commit_time` string, required — The time of the commit in the format of "YYYY-MM-DDTHH:MM:SSZ" (2016-10-10T00:00:00Z)
  - `commit_message` string, required — The commit message
  - `workflow_name` string, required — The name of the workflow
  - `branch_name` string, required
  - `start_time` integer, required — The start time of the job as a Unix timestamp.
  - `end_time` integer, required — The end time of the job as a Unix timestamp.
  - `avg_vram` integer — The average amount of VRAM used in the run.
  - `peak_vram` integer — The peak amount of VRAM used in the run.
  - `pr_number` string, required — The pull request number
  - `author` string, required — The author of the commit
  - `job_trigger_user` string, required — The user who triggered the job
  - `python_version` string, required — The python version used in the run
  - `pytorch_version` string — The pytorch version used in the run
  - `machine_stats` MachineStats
    - `machine_name` string — Name of the machine.
    - `os_version` string — The operating system version. eg. Ubuntu Linux 20.04
    - `gpu_type` string — The GPU type. eg. NVIDIA Tesla K80
    - `cpu_capacity` string — Total CPU on the machine.
    - `initial_cpu` string — Initial CPU available before the job starts.
    - `memory_capacity` string — Total memory on the machine.
    - `initial_ram` string — Initial RAM available before the job starts.
    - `vram_time_series` object — Time series of VRAM usage.
    - `disk_capacity` string — Total disk capacity on the machine.
    - `initial_disk` string — Initial disk available before the job starts.
    - `pip_freeze` string — The pip freeze output
  - `status` 'WorkflowRunStatusStarted' | 'WorkflowRunStatusFailed' | 'WorkflowRunStatusCompleted', required

## Response `200`

Successfully received the artifact details

- object
  - `message` string

## Other responses

- `400` — Invalid request
- `500` — Internal server error

---

[API](https://skmtc.net/comfy-org/apis/comfy-api.md) · [All operations](https://skmtc.net/comfy-org/apis/comfy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comfy-org/comfy-api/versions/fb3c490f87ef/schema)
