---
title: "Save logs (self-hosted)"
method: POST
path: "/self-hosted/{accountId}/tasks/logs"
tags: ["Self-Hosted Runners"]
---

# Save logs (self-hosted)

`POST /self-hosted/{accountId}/tasks/logs`

Saves logs for a task (self-hosted)

## Path parameters

- `accountId` string, required

## Request body

- SelfHostedSaveLogsRequest
  - `accountId` string — Account ID
  - `content` string, byte, required — Log content as byte array
  - `product` string, required — Product identifier
  - `logId` string, required — Log identifier

## Response `200`

Logs saved successfully

## Other responses

- `400` — Bad Request Error
- `401` — Unauthorized Error
- `403` — Insufficient permissions
- `500` — Internal Server Error

---

[API](https://skmtc.net/firefly/apis/api-gateway.md) · [All operations](https://skmtc.net/firefly/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/firefly/api-gateway/revisions/eea119b4113f/schema)
