# Upload a file using an upload token

> Uploads file content authorized by a single-use token from `POST /api/v1/files/presigned-url`. No bearer credential is required — the token is the credential. Accepts either multipart/form-data (field `file`) or JSON with a base64-encoded `content` field.

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Upload a file using an upload token"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/api/v1/files/upload/{token}"}
  context={"endpoint"}
>
  
</MethodEndpoint>

Uploads file content authorized by a single-use token from `POST /api/v1/files/presigned-url`. No bearer credential is required — the token is the credential. Accepts either multipart/form-data (field `file`) or JSON with a base64-encoded `content` field.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
>
  <Translate id="theme.openapi.request.title">Request</Translate>
</Heading>

<ParamsDetails
  {...require("./upload-file-with-token.ParamsDetails.json")}
>
  
</ParamsDetails>

<RequestSchema
  {...require("./upload-file-with-token.RequestSchema.json")}
>
  
</RequestSchema>

<StatusCodes
  {...require("./upload-file-with-token.StatusCodes.json")}
>
  
</StatusCodes>
