---
title: "Uploads a temporary file (ie. for XML import). Returns token which can be used in other API calls."
method: POST
path: "/files"
tags: ["Files"]
---

# Uploads a temporary file (ie. for XML import). Returns token which can be used in other API calls.

`POST /files`

When a file is required by an operation (ie. task creation) it must be uploaded previously to the API.
Uploading a file will result in a file token, which can be used to reference this file in other API calls.
 Each file must be uploaded separately.
 Keep in mind that file token has limited validity (ie. 10 minutes).
 Therefore files must be uploaded just before issuing API call which reference them.

## Response `default`

default response

---

[API](https://skmtc.dev/xtrf/apis/xtrf-home-portal-api.md) · [All operations](https://skmtc.dev/xtrf/apis/xtrf-home-portal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xtrf/xtrf-home-portal-api/revisions/0c24935a3319/schema)
