curl --request GET \
--url https://cool.jobmojito.com/functions/v1/media-list \
--header 'Authorization: Bearer <token>'import requests
url = "https://cool.jobmojito.com/functions/v1/media-list"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cool.jobmojito.com/functions/v1/media-list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cool.jobmojito.com/functions/v1/media-list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://cool.jobmojito.com/functions/v1/media-list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cool.jobmojito.com/functions/v1/media-list")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://cool.jobmojito.com/functions/v1/media-list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "c9d6f121-1230-48fd-b3a7-8b5a1e8db052",
"merchant_id": "<string>",
"kind": "image",
"file_name": "team-photo.jpg",
"folder": "team",
"path": "<string>",
"url": "<string>",
"content_type": "image/jpeg",
"size_bytes": 123,
"width": 123,
"height": 123,
"duration_seconds": 123,
"poster_url": "<string>",
"alt": {},
"focal_x": 123,
"focal_y": 123,
"status": "<string>",
"version": 123,
"read_only": true,
"created_at": "<string>",
"updated_at": "<string>"
}
],
"pagination": {
"total": 137,
"limit": 50,
"offset": 0,
"has_more": true
},
"folders": [
{
"name": "Crew life",
"files": 12
}
]
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}List the media library
Lists the company’s media library: images, MP4 video, audio and WOFF2 fonts for career pages. Use a file’s url in page blocks, brand logos and font settings. A sub-company also sees its parent’s files, marked read_only. Files still uploading are not listed. Listing changes nothing.
curl --request GET \
--url https://cool.jobmojito.com/functions/v1/media-list \
--header 'Authorization: Bearer <token>'import requests
url = "https://cool.jobmojito.com/functions/v1/media-list"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cool.jobmojito.com/functions/v1/media-list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cool.jobmojito.com/functions/v1/media-list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://cool.jobmojito.com/functions/v1/media-list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cool.jobmojito.com/functions/v1/media-list")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://cool.jobmojito.com/functions/v1/media-list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "c9d6f121-1230-48fd-b3a7-8b5a1e8db052",
"merchant_id": "<string>",
"kind": "image",
"file_name": "team-photo.jpg",
"folder": "team",
"path": "<string>",
"url": "<string>",
"content_type": "image/jpeg",
"size_bytes": 123,
"width": 123,
"height": 123,
"duration_seconds": 123,
"poster_url": "<string>",
"alt": {},
"focal_x": 123,
"focal_y": 123,
"status": "<string>",
"version": 123,
"read_only": true,
"created_at": "<string>",
"updated_at": "<string>"
}
],
"pagination": {
"total": 137,
"limit": 50,
"offset": 0,
"has_more": true
},
"folders": [
{
"name": "Crew life",
"files": 12
}
]
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}Authorizations
Supabase JWT — Authorization: Bearer <token>.
Query Parameters
Optional merchant to scope to. Admins and sub-merchant operators only; other callers always use their token's merchant.
"28106cba-1c27-4e53-b149-32113e5e8e31"
Only files of this kind: image, video, audio or font.
image, video, audio, font "image"
Only files in this library folder. Send an empty value for the top folder.
Only files whose name contains this text.
Also list the parent company's files, read only, when this company is a sub-company. Default true.
true, false "true"
Also return folders: the company's library folders with how many files each holds (what media-folders lists). Default false.
true, false "false"
Maximum number of records to return (1–1000).
1 <= x <= 100050
Number of records to skip from the start of the result set.
x >= 00
Response
One page of files.