A file's version history
Newest first.
GET
/
api
/
v1
/
assets
/
{id}
/
versions
A file's version history
curl --request GET \
--url https://mediamonster.app/api/v1/assets/{id}/versions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://mediamonster.app/api/v1/assets/{id}/versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://mediamonster.app/api/v1/assets/{id}/versions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current": 123,
"versions": [
{
"version": 123,
"current": true,
"file_name": "<string>",
"mime_type": "<string>",
"kind": "<string>",
"size_bytes": 123,
"width": 123,
"height": 123,
"duration_seconds": 123,
"note": "<string>",
"restored_from": 123,
"uploaded_by": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "missing_file",
"message": "What went wrong, and what to do instead.",
"doc_url": "https://docs.mediamonster.app/api/errors#missing_file",
"request_id": "req_8fK2mQ0x7ZtLw3nVb1cR9dYe"
}
}{
"error": {
"code": "missing_key",
"message": "What went wrong, and what to do instead.",
"doc_url": "https://docs.mediamonster.app/api/errors#missing_key",
"request_id": "req_8fK2mQ0x7ZtLw3nVb1cR9dYe"
}
}{
"error": {
"code": "insufficient_scope",
"message": "What went wrong, and what to do instead.",
"doc_url": "https://docs.mediamonster.app/api/errors#insufficient_scope",
"request_id": "req_8fK2mQ0x7ZtLw3nVb1cR9dYe"
}
}{
"error": {
"code": "unknown_skill",
"message": "What went wrong, and what to do instead.",
"doc_url": "https://docs.mediamonster.app/api/errors#unknown_skill",
"request_id": "req_8fK2mQ0x7ZtLw3nVb1cR9dYe"
}
}{
"error": {
"code": "rate_limited",
"message": "What went wrong, and what to do instead.",
"doc_url": "https://docs.mediamonster.app/api/errors#rate_limited",
"request_id": "req_8fK2mQ0x7ZtLw3nVb1cR9dYe"
}
}Authorizations
Authorization: Bearer mm_live_…. Mint a key at mediamonster.app/keys; every plan includes the API. A test key, mm_test_…, runs every check a live key does and spends nothing: each run finishes at once with a stand-in file, and says livemode: false. A key does only what its scopes allow.
Headers
⌘I
A file's version history
curl --request GET \
--url https://mediamonster.app/api/v1/assets/{id}/versions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://mediamonster.app/api/v1/assets/{id}/versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://mediamonster.app/api/v1/assets/{id}/versions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current": 123,
"versions": [
{
"version": 123,
"current": true,
"file_name": "<string>",
"mime_type": "<string>",
"kind": "<string>",
"size_bytes": 123,
"width": 123,
"height": 123,
"duration_seconds": 123,
"note": "<string>",
"restored_from": 123,
"uploaded_by": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "missing_file",
"message": "What went wrong, and what to do instead.",
"doc_url": "https://docs.mediamonster.app/api/errors#missing_file",
"request_id": "req_8fK2mQ0x7ZtLw3nVb1cR9dYe"
}
}{
"error": {
"code": "missing_key",
"message": "What went wrong, and what to do instead.",
"doc_url": "https://docs.mediamonster.app/api/errors#missing_key",
"request_id": "req_8fK2mQ0x7ZtLw3nVb1cR9dYe"
}
}{
"error": {
"code": "insufficient_scope",
"message": "What went wrong, and what to do instead.",
"doc_url": "https://docs.mediamonster.app/api/errors#insufficient_scope",
"request_id": "req_8fK2mQ0x7ZtLw3nVb1cR9dYe"
}
}{
"error": {
"code": "unknown_skill",
"message": "What went wrong, and what to do instead.",
"doc_url": "https://docs.mediamonster.app/api/errors#unknown_skill",
"request_id": "req_8fK2mQ0x7ZtLw3nVb1cR9dYe"
}
}{
"error": {
"code": "rate_limited",
"message": "What went wrong, and what to do instead.",
"doc_url": "https://docs.mediamonster.app/api/errors#rate_limited",
"request_id": "req_8fK2mQ0x7ZtLw3nVb1cR9dYe"
}
}
