Your scheduled runs
GET
/
api
/
v1
/
schedules
Your scheduled runs
curl --request GET \
--url https://mediamonster.app/api/v1/schedules \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://mediamonster.app/api/v1/schedules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://mediamonster.app/api/v1/schedules"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"schedules": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"enabled": true,
"recipe": {
"id": "<string>",
"name": "<string>",
"missing": true,
"version": 123,
"latest": 123
},
"steps": [
{
"tool": "background-remover",
"options": {},
"prompt": "<string>",
"nested": true
}
],
"repeat": "once",
"starts_at": "2023-11-07T05:31:56Z",
"at_minute": 123,
"every_hours": 123,
"weekdays": [
3
],
"month_day": 123,
"timezone": "<string>",
"ends_after": 123,
"when": "<string>",
"source": "none",
"trigger": "clock",
"trigger_email": "<string>",
"trigger_source": "<string>",
"trigger_url": "<string>",
"most_runs_a_day": 123,
"most_credits_a_month": 123,
"credits_this_month": 123,
"send_webhook_url": "<string>",
"only_if": [
{
"if": "kind",
"in": [
"image"
],
"seconds": 43200,
"mb": 123,
"has": "<string>"
}
],
"inputs": [
{
"name": "<string>",
"label": "<string>",
"kind": "text",
"required": true,
"default": "<string>",
"choices": [
"<string>"
]
}
],
"input_values": {},
"most_upload_mb": 123,
"source_asset": {},
"source_assets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"source_folder": "<string>",
"most_files": 123,
"output_folder": "<string>",
"next_run_at": "2023-11-07T05:31:56Z",
"last_run_at": "2023-11-07T05:31:56Z",
"run_count": 123,
"paused": {},
"finished": true,
"estimate": {
"credits": 123,
"label": "<string>"
},
"created_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"can_edit": true
}
]
}{
"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 scheduled runs
curl --request GET \
--url https://mediamonster.app/api/v1/schedules \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://mediamonster.app/api/v1/schedules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://mediamonster.app/api/v1/schedules"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"schedules": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"enabled": true,
"recipe": {
"id": "<string>",
"name": "<string>",
"missing": true,
"version": 123,
"latest": 123
},
"steps": [
{
"tool": "background-remover",
"options": {},
"prompt": "<string>",
"nested": true
}
],
"repeat": "once",
"starts_at": "2023-11-07T05:31:56Z",
"at_minute": 123,
"every_hours": 123,
"weekdays": [
3
],
"month_day": 123,
"timezone": "<string>",
"ends_after": 123,
"when": "<string>",
"source": "none",
"trigger": "clock",
"trigger_email": "<string>",
"trigger_source": "<string>",
"trigger_url": "<string>",
"most_runs_a_day": 123,
"most_credits_a_month": 123,
"credits_this_month": 123,
"send_webhook_url": "<string>",
"only_if": [
{
"if": "kind",
"in": [
"image"
],
"seconds": 43200,
"mb": 123,
"has": "<string>"
}
],
"inputs": [
{
"name": "<string>",
"label": "<string>",
"kind": "text",
"required": true,
"default": "<string>",
"choices": [
"<string>"
]
}
],
"input_values": {},
"most_upload_mb": 123,
"source_asset": {},
"source_assets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"source_folder": "<string>",
"most_files": 123,
"output_folder": "<string>",
"next_run_at": "2023-11-07T05:31:56Z",
"last_run_at": "2023-11-07T05:31:56Z",
"run_count": 123,
"paused": {},
"finished": true,
"estimate": {
"credits": 123,
"label": "<string>"
},
"created_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"can_edit": true
}
]
}{
"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"
}
}
