Create a media upload
curl --request POST \
--url http://localhost:4000/api/v1/media \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filename": "<string>",
"contentType": "<string>",
"size": 1
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({filename: '<string>', contentType: '<string>', size: 1})
};
fetch('http://localhost:4000/api/v1/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/api/v1/media"
payload = {
"filename": "<string>",
"contentType": "<string>",
"size": 1
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(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",
"upload": {
"method": "PUT",
"url": "<string>",
"headers": {},
"expiresAt": "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
}
}Media
Upload media
Creates a pending media asset and returns a short-lived signed PUT URL for direct upload. API keys are scoped to a profile; omit profileId unless you want to assert that scope explicitly.
POST
http://localhost:4000
/
api
/
v1
/
media
Create a media upload
curl --request POST \
--url http://localhost:4000/api/v1/media \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filename": "<string>",
"contentType": "<string>",
"size": 1
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({filename: '<string>', contentType: '<string>', size: 1})
};
fetch('http://localhost:4000/api/v1/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/api/v1/media"
payload = {
"filename": "<string>",
"contentType": "<string>",
"size": 1
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(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",
"upload": {
"method": "PUT",
"url": "<string>",
"headers": {},
"expiresAt": "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
}
}Authorizations
Use your Postova API key as a bearer token.
Query Parameters
Optional profile scope assertion.
Example:
"profile_123"
Body
application/json
Last modified on June 20, 2026