---
title: "Upload Execution Context Files"
method: POST
path: "/agents/v2/executions/{executionId}/context-files"
tags: ["Files"]
---

# Upload Execution Context Files

`POST /agents/v2/executions/{executionId}/context-files`

## Request

- Base URL: `https://odyssey.asteroid.ai`
- URL: `https://odyssey.asteroid.ai/agents/v2/executions/{executionId}/context-files`
- Auth: API key in header `X-Api-Key`

Upload files to a running execution that is already in progress. If you want to attach files to an execution that is not yet running, see the /temp-files endpoint.

## Path parameters

- `executionId` string, uuid, required

## Request body `multipart/form-data`

- object
  - `files` AgentsFilesFilePart[], required

## Response `200`

The request has succeeded.

## Other responses

- `400`: The server could not understand the request due to invalid syntax.
- `404`: The server cannot find the requested resource.

---

[API](https://skmtc.dev/asteroid/apis/agent-service.md) - [All operations](https://skmtc.dev/asteroid/apis/agent-service/llms.txt) - [OpenAPI document](https://skmtc.dev/asteroid/apis/agent-service/revisions/ccc134d1d510?raw)
