Skip to main content
GET
/
v1
/
cards
/
{card_id}
Get Card
curl --request GET \
  --url https://api.supernotes.app/v1/cards/{card_id} \
  --header 'Api-Key: <api-key>'
import requests

url = "https://api.supernotes.app/v1/cards/{card_id}"

headers = {"Api-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'Api-Key': '<api-key>'}};

fetch('https://api.supernotes.app/v1/cards/{card_id}', 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.supernotes.app/v1/cards/{card_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Api-Key: <api-key>"
],
]);

$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.supernotes.app/v1/cards/{card_id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Api-Key", "<api-key>")

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.supernotes.app/v1/cards/{card_id}")
.header("Api-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.supernotes.app/v1/cards/{card_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Api-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "markup": "<string>",
    "html": "<string>",
    "ydoc": "<string>",
    "icon": "<string>",
    "tags": [
      "<string>"
    ],
    "created_when": "2023-11-07T05:31:56Z",
    "modified_when": "2023-11-07T05:31:56Z",
    "modified_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "synced_when": "2023-11-07T05:31:56Z",
    "targeted_when": "2023-11-07T05:31:56Z",
    "meta": {},
    "daily_date": "<string>",
    "h3_index": "<string>",
    "link_cache": {},
    "comment_count": 123,
    "likes": 123,
    "member_count": 123,
    "public_child_count": 123
  },
  "membership": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "liked": true,
    "personal_tags": [
      "<string>"
    ],
    "via_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_when": "2023-11-07T05:31:56Z",
    "modified_when": "2023-11-07T05:31:56Z",
    "enrolled_when": "2023-11-07T05:31:56Z",
    "opened_when": "2023-11-07T05:31:56Z",
    "auto_publish_children": true,
    "view": {
      "sort_ascending": true,
      "broadsheet_cols": 123,
      "broadsheet_full_width": true,
      "attempt_card_match": true,
      "map_position": "<string>"
    },
    "flash_memory": {
      "due": 123,
      "stability": 123,
      "difficulty": 123,
      "elapsed_days": 123,
      "scheduled_days": 123,
      "reps": 123,
      "lapses": 123,
      "last_review": 123
    },
    "total_child_count": 123,
    "share_link_count": 123
  },
  "backlinks": [
    "<string>"
  ],
  "parents": {
    "[card_id]": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "parent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "child_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_when": "2023-11-07T05:31:56Z",
      "archived": true
    }
  }
}
{
"type": "<string>",
"detail": "<string>",
"status": 123
}

Authorizations

Api-Key
string
header
required

Path Parameters

card_id
string<uuid>
required

Response

Successful Response

data
ExtendedCardDataResponse · object
required
membership
ExtendedCardMembershipResponse · object
required
parents
Parents · object
required