Skip to content

Create a one-time upload URL

POST
/v1/uploads
curl --request POST \
--url https://api.deskew.dev/v1/uploads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "filename": "example", "content_type": "example", "size": 1 }'
Media typeapplication/json
CreateUploadBody
object
filename
required
Filename
string
>= 1 characters <= 255 characters
content_type
Content Type
Any of:
string
<= 120 characters
size
Size
Any of:
integer
>= 1

Example generated

{
"filename": "example",
"content_type": "example",
"size": 1
}

Successful Response

Media typeapplication/json
Response Create Upload V1 Uploads Post
object
key
additional properties
any

Example generated

{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}