List custom content
curl --request GET \
--url https://api.super.work/v1/super/index \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.super.work/v1/super/index"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.super.work/v1/super/index', 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.super.work/v1/super/index",
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.super.work/v1/super/index"
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.super.work/v1/super/index")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.super.work/v1/super/index")
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{
"nbPages": 2,
"page": 0,
"hits": [
{
"title": "Onboarding",
"url": "https://slite.slite.page/p/S1TSuHnZf/Security-at-Slite",
"id": "S1TSuHnZf",
"updatedAt": "2021-01-01T00:00:00.000Z"
}
]
}{
"message": "Invalid apiKey",
"id": "auth/unauthorized"
}{
"message": "This feature is disabled for your organization. Please contact support.",
"id": "askx-disabled"
}{
"message": "Data source not found.",
"id": "root-id-not-found"
}{
"message": "Validation Failed",
"id": "field-validation",
"details": {}
}{
"message": "You've reached the api rate limit. Please wait and retry later.",
"id": "rate-limit"
}{
"message": "<string>",
"id": "<string>"
}List custom content
List custom content ids from Super usage.
GET
/
super
/
index
List custom content
curl --request GET \
--url https://api.super.work/v1/super/index \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.super.work/v1/super/index"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.super.work/v1/super/index', 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.super.work/v1/super/index",
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.super.work/v1/super/index"
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.super.work/v1/super/index")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.super.work/v1/super/index")
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{
"nbPages": 2,
"page": 0,
"hits": [
{
"title": "Onboarding",
"url": "https://slite.slite.page/p/S1TSuHnZf/Security-at-Slite",
"id": "S1TSuHnZf",
"updatedAt": "2021-01-01T00:00:00.000Z"
}
]
}{
"message": "Invalid apiKey",
"id": "auth/unauthorized"
}{
"message": "This feature is disabled for your organization. Please contact support.",
"id": "askx-disabled"
}{
"message": "Data source not found.",
"id": "root-id-not-found"
}{
"message": "Validation Failed",
"id": "field-validation",
"details": {}
}{
"message": "You've reached the api rate limit. Please wait and retry later.",
"id": "rate-limit"
}{
"message": "<string>",
"id": "<string>"
}
