Upload media through Postova
curl --request PUT \
--url http://localhost:4000/api/v1/media/{id}/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/octet-stream' \
--data '"<string>"'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/octet-stream'},
body: JSON.stringify('<string>')
};
fetch('http://localhost:4000/api/v1/media/{id}/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/api/v1/media/{id}/upload"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/octet-stream"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "media_123",
"type": "image",
"url": "<string>",
"filename": "<string>",
"contentType": "<string>",
"size": 1,
"status": "pending",
"profileId": "profile_123",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"meta": {
"rateLimit": {
"limit": 60,
"remaining": 59,
"resetAt": "2026-06-14T12:01:00.000Z"
}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}Media
Upload media through Postova
Uploads raw media bytes through Postova instead of using the signed storage URL directly. The Content-Type and byte length must match the media upload request.
PUT
http://localhost:4000
/
api
/
v1
/
media
/
{id}
/
upload
Upload media through Postova
curl --request PUT \
--url http://localhost:4000/api/v1/media/{id}/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/octet-stream' \
--data '"<string>"'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/octet-stream'},
body: JSON.stringify('<string>')
};
fetch('http://localhost:4000/api/v1/media/{id}/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/api/v1/media/{id}/upload"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/octet-stream"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "media_123",
"type": "image",
"url": "<string>",
"filename": "<string>",
"contentType": "<string>",
"size": 1,
"status": "pending",
"profileId": "profile_123",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"meta": {
"rateLimit": {
"limit": 60,
"remaining": 59,
"resetAt": "2026-06-14T12:01:00.000Z"
}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request data",
"details": null
}
}Authorizations
Use your Postova API key as a bearer token.
Path Parameters
Example:
"media_123"
Body
application/octet-stream
The body is of type file.
Last modified on June 20, 2026