Media
Create constrained upload instructions
Request a short-lived image upload token through your own same-origin server proxy. The proxy adds the server-only Aisle bearer key when forwarding this request. Never embed that key in client JavaScript. In the browser, build const pathname = 'weddings/photos/' + wedding.data.id + '/api/' + file.name and call upload(pathname, file, { access: 'public', handleUploadUrl: '/api/aisle-upload' }); use the corresponding weddings/site/cover/ prefix for a cover. Here wedding.data.id is the public ID returned by GET /wedding. After upload, register the URL with POST /photos or PATCH /site/cover. The signed provider callback is internal to Aisle.
post/uploads
Request
- Base URL: https://api.aisle.wedding/v1
- URL: https://api.aisle.wedding/v1/uploads
- Auth: HTTP bearer
Request body
Example request
{
"type": "blob.generate-client-token",
"payload": {
"pathname": "weddings/photos/wed_example/api/photo.jpg",
"multipart": false,
"clientPayload": null
}
}Response
The requested data.
Example response
{
"type": "blob.generate-client-token",
"clientToken": "vercel_blob_client_token"
}Changes
No recorded changes to this operation across all 1 revision of this API.