List units (Preview)
curl --request POST \
--url https://api.the-juno.com/api/v1/public-api/units/.search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"filters": {}
}'import requests
url = "https://api.the-juno.com/api/v1/public-api/units/.search"
payload = { "filters": {} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({filters: {}})
};
fetch('https://api.the-juno.com/api/v1/public-api/units/.search', 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://api.the-juno.com/api/v1/public-api/units/.search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filters' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.the-juno.com/api/v1/public-api/units/.search"
payload := strings.NewReader("{\n \"filters\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.the-juno.com/api/v1/public-api/units/.search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.the-juno.com/api/v1/public-api/units/.search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": {}\n}"
response = http.request(request)
puts response.read_body{
"dataLength": 1000,
"data": [
{
"_id": "64f0c0ffee00000000000003",
"standalone": true,
"creator": "64f0c0ffee00000000000001",
"title": "Course Reviews",
"type": "module",
"tid": "64f0c0ffee00000000000002",
"createdAt": "2025-04-30T08:50:47.357Z",
"updatedAt": "2025-04-30T09:20:15.021Z"
},
{
"_id": "64f0c0ffee00000000000004",
"standalone": true,
"creator": "64f0c0ffee00000000000001",
"title": "Course Reviews",
"type": "module",
"tid": "64f0c0ffee00000000000002",
"createdAt": "2025-04-30T08:50:47.457Z",
"updatedAt": "2025-04-30T09:20:15.021Z"
}
]
}Units
List units (Preview)
Search the learning units in your organization. Requires the units:read scope.
By default, returns standalone units only (not sections inside a course). Returns up to 1,000 units per request; use skip to page.
POST
/
api
/
v1
/
public-api
/
units
/
.search
List units (Preview)
curl --request POST \
--url https://api.the-juno.com/api/v1/public-api/units/.search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"filters": {}
}'import requests
url = "https://api.the-juno.com/api/v1/public-api/units/.search"
payload = { "filters": {} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({filters: {}})
};
fetch('https://api.the-juno.com/api/v1/public-api/units/.search', 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://api.the-juno.com/api/v1/public-api/units/.search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filters' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.the-juno.com/api/v1/public-api/units/.search"
payload := strings.NewReader("{\n \"filters\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.the-juno.com/api/v1/public-api/units/.search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.the-juno.com/api/v1/public-api/units/.search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": {}\n}"
response = http.request(request)
puts response.read_body{
"dataLength": 1000,
"data": [
{
"_id": "64f0c0ffee00000000000003",
"standalone": true,
"creator": "64f0c0ffee00000000000001",
"title": "Course Reviews",
"type": "module",
"tid": "64f0c0ffee00000000000002",
"createdAt": "2025-04-30T08:50:47.357Z",
"updatedAt": "2025-04-30T09:20:15.021Z"
},
{
"_id": "64f0c0ffee00000000000004",
"standalone": true,
"creator": "64f0c0ffee00000000000001",
"title": "Course Reviews",
"type": "module",
"tid": "64f0c0ffee00000000000002",
"createdAt": "2025-04-30T08:50:47.457Z",
"updatedAt": "2025-04-30T09:20:15.021Z"
}
]
}Authorizations
Personal access token. Create one in Admin → Security → Developer Settings → Generate Personal Access Token.
Body
application/json
MongoDB-style filters. The endpoint description lists the supported fields.
Maximum number of results to return.
Required range:
1 <= x <= 1000Number of results to skip before returning.
Required range:
x >= 0MongoDB-style sort, for example { "createdAt": -1 }.
Fields to return, MongoDB projection style, for example { "primaryEmail": 1 }.
Was this page helpful?

