Uploads
Get upload properties for a file
Authorizations
OAuth2authorizationCodeRequiredAuthorization URL: Token URL: Refresh URL:
OAuth2 Bearer token authentication
Body
file_namestringRequired
File name for the uploaded file
hashed_payloadstringRequired
SHA256 digest of the file content
Responses
200
File Uploaded
application/json
urlstringRequired
post/v1/clients/upload_properties
POST /v1/clients/upload_properties HTTP/1.1
Host: api.textmaster.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 44
"file_name='text'&hashed_payload='text'"200
File Uploaded
{
"url": "https://storage-proxy.textmaster.com/api-files/uploads/10922fb8-9265-4ef2-92e8-c4177c3b03da/ef9f1ca8/my-file.pdf",
"headers": {
"x-upload-path": "uploads/10922fb8-9265-4ef2-92e8-c4177c3b03da/ef9e1ca8/my-file.pdf",
"x-upload-sha256": "f2ca1bb6c7e907d06dafe4687e579fce76b37e4e39b7605022da52e6ccc26fd2",
"x-upload-date": "20500102T123456Z",
"Authorization": "78ca271e7f6464961ef3db6903da3d2c51cd4156975322ba678840e12a334de3"
}
}Code samples
Last updated
Was this helpful?