---
title: "Stage a file for an execution"
method: POST
path: "/agents/v2/temp-files/{organizationId}"
tags: ["Files"]
deprecated: true
---

# Stage a file for an execution

`POST /agents/v2/temp-files/{organizationId}`

## Request

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

> **Deprecated.**

Stage a file prior to starting an execution, so that it can be used when the execution is started. See the /agents/{agentId}/execute to understand how to pass the returned file information to the execution endpoint.

## Path parameters

- `organizationId` string, uuid, required

## Request body `multipart/form-data`

- object
  - `files` AgentsFilesFilePart[], required

## Response `200`

The request has succeeded.

- AgentsFilesTempFilesResponse
  - `tempFiles` AgentsFilesTempFile[], required
    - `id` string, uuid, required
    - `name` string, required

## Other responses

- `400`: The server could not understand the request due to invalid syntax.
- `403`: Access is forbidden.
- `500`: Server error

---

[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)
