Skip to main content
POST
/
files
/
v1
/
sync
/
upload-file
Upload file to file storage synchronously
curl --request POST \
  --url https://eu.phrase.com/connectors/files/v1/sync/upload-file \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file": "<string>"
}
'
{
  "uid": "<string>",
  "expiration": "DAY",
  "origin": "<string>",
  "sha256": "<string>",
  "size": 123,
  "customer": {
    "organization": "<string>",
    "user": "<string>"
  }
}

Authorizations

Authorization
string
header
required

JWT token created by calling Phrase API /oauth/token endpoint.

Headers

X-ActionId
string

Body

application/json
file
file
required

Response

200 - application/json

OK

uid
string
expiration
enum<string>
Available options:
DAY,
WEEK,
MONTH,
INFINITY
origin
string
sha256
string
size
integer<int32>
customer
object