Retrieve a page collection
curl --request GET \
--url https://api.domo.com/v1/pages/{page_id}/collections \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.domo.com/v1/pages/{page_id}/collections"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.domo.com/v1/pages/{page_id}/collections', 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.domo.com/v1/pages/{page_id}/collections",
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://api.domo.com/v1/pages/{page_id}/collections"
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://api.domo.com/v1/pages/{page_id}/collections")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.domo.com/v1/pages/{page_id}/collections")
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[
{
"id": 284760742,
"title": "Executive Pulse: 6 metrics you should check every morning.",
"description": "",
"cardIds": [
1349867785,
519660200,
1581963101,
1793085897,
883306279,
2065775735
]
},
{
"id": 218043425,
"title": "Leads and Opportunities: See where most of your prospects are coming from.",
"description": "",
"cardIds": [
2142729150,
722896244,
817752006,
417097071,
2126821636
]
},
{
"id": 1236388313,
"title": "Sales: What you can do today to exceed your sales goals.",
"description": "",
"cardIds": [
1006593467,
931119744,
659079801,
1885170395
]
},
{
"id": 705581826,
"title": "Sales Reps: Recognize, reward and position your top talent for top performance.",
"description": "",
"cardIds": [
563365994,
663359659,
1901443339,
623100687,
1712451993
]
}
]Page API
Retrieve a page collection
GET
/
v1
/
pages
/
{page_id}
/
collections
Retrieve a page collection
curl --request GET \
--url https://api.domo.com/v1/pages/{page_id}/collections \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.domo.com/v1/pages/{page_id}/collections"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.domo.com/v1/pages/{page_id}/collections', 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.domo.com/v1/pages/{page_id}/collections",
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://api.domo.com/v1/pages/{page_id}/collections"
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://api.domo.com/v1/pages/{page_id}/collections")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.domo.com/v1/pages/{page_id}/collections")
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[
{
"id": 284760742,
"title": "Executive Pulse: 6 metrics you should check every morning.",
"description": "",
"cardIds": [
1349867785,
519660200,
1581963101,
1793085897,
883306279,
2065775735
]
},
{
"id": 218043425,
"title": "Leads and Opportunities: See where most of your prospects are coming from.",
"description": "",
"cardIds": [
2142729150,
722896244,
817752006,
417097071,
2126821636
]
},
{
"id": 1236388313,
"title": "Sales: What you can do today to exceed your sales goals.",
"description": "",
"cardIds": [
1006593467,
931119744,
659079801,
1885170395
]
},
{
"id": 705581826,
"title": "Sales Reps: Recognize, reward and position your top talent for top performance.",
"description": "",
"cardIds": [
563365994,
663359659,
1901443339,
623100687,
1712451993
]
}
]Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of page that contains the page collection
⌘I