---
title: "Post Agent Run Log"
method: POST
path: "/me/chats/{chat_id}/runs"
tags: ["User API"]
---

# Post Agent Run Log

`POST /me/chats/{chat_id}/runs`

Creates a new agent run log entry for a chat

## Path parameters

- `chat_id` string, uuid, required

## Response `200`

Successfully created agent run log

- AgentRunLog
  - `id` string, uuid, nullable
  - `user_id` string, required
  - `agent_id` string, uuid, required
  - `run_id` string, uuid, nullable
  - `type` 'local' | 'agent_stream' | 'agent_run' | 'agent_studio' | 'agent_studio_v3', required
  - `created_at` string, date-time, nullable
  - `start_time` string, date-time, nullable
  - `end_time` string, date-time, nullable

## Other responses

- `403` — You don't have permission to access this chat
- `404` — Agent not found
- `422` — Validation Error
- `500` — Internal server error

---

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