Your webhook endpoints
GET
/
api
/
v1
/
webhook-endpoints
Your webhook endpoints
curl --request GET \
--url https://mediamonster.app/api/v1/webhook-endpoints \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://mediamonster.app/api/v1/webhook-endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://mediamonster.app/api/v1/webhook-endpoints"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"endpoints": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"description": "<string>",
"events": [
"job.completed"
],
"enabled": true,
"disabled_reason": "<string>",
"previous_secret_expires_at": "2023-11-07T05:31:56Z",
"failing_since": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_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
Your webhook endpoints
curl --request GET \
--url https://mediamonster.app/api/v1/webhook-endpoints \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://mediamonster.app/api/v1/webhook-endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://mediamonster.app/api/v1/webhook-endpoints"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"endpoints": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"description": "<string>",
"events": [
"job.completed"
],
"enabled": true,
"disabled_reason": "<string>",
"previous_secret_expires_at": "2023-11-07T05:31:56Z",
"failing_since": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_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"
}
}
