Initialize a two-step upload
Creates an upload record and returns a short-lived upload token. The client uploads the file to uploadUrl with X-Upload-Token. Used by the web UI and desktop apps.
post/v1/upload/init
Request
- Base URL: https://api.payaion.com
- URL: https://api.payaion.com/v1/upload/init
- Auth: one of:
- none
- API key in header X-Aion-Key
- HTTP bearer
Request body
Example request
{
"fileName": "document.pdf",
"sizeBytes": 1048576,
"payoutAddress": "0x1234567890abcdef1234567890abcdef12345678"
}Response
Upload initialized
Example response
{
"uploadId": "up_a1b2c3d4e5f6g7h8",
"shareHash": "abc123xyz789"
}Changes
No recorded changes to this operation across all 1 revision of this API.