Simple Create Card
curl --request POST \
--url https://api.supernotes.app/v1/cards/simple \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"markup": "<string>",
"icon": "<string>",
"tags": [],
"parent_ids": [],
"source": "<string>",
"daily_date": "<string>",
"meta": {}
}
'import requests
url = "https://api.supernotes.app/v1/cards/simple"
payload = {
"name": "<string>",
"markup": "<string>",
"icon": "<string>",
"tags": [],
"parent_ids": [],
"source": "<string>",
"daily_date": "<string>",
"meta": {}
}
headers = {
"Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
markup: '<string>',
icon: '<string>',
tags: [],
parent_ids: [],
source: '<string>',
daily_date: '<string>',
meta: {}
})
};
fetch('https://api.supernotes.app/v1/cards/simple', 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/simple",
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([
'name' => '<string>',
'markup' => '<string>',
'icon' => '<string>',
'tags' => [
],
'parent_ids' => [
],
'source' => '<string>',
'daily_date' => '<string>',
'meta' => [
]
]),
CURLOPT_HTTPHEADER => [
"Api-Key: <api-key>",
"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.supernotes.app/v1/cards/simple"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"markup\": \"<string>\",\n \"icon\": \"<string>\",\n \"tags\": [],\n \"parent_ids\": [],\n \"source\": \"<string>\",\n \"daily_date\": \"<string>\",\n \"meta\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Api-Key", "<api-key>")
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.supernotes.app/v1/cards/simple")
.header("Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"markup\": \"<string>\",\n \"icon\": \"<string>\",\n \"tags\": [],\n \"parent_ids\": [],\n \"source\": \"<string>\",\n \"daily_date\": \"<string>\",\n \"meta\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.supernotes.app/v1/cards/simple")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"markup\": \"<string>\",\n \"icon\": \"<string>\",\n \"tags\": [],\n \"parent_ids\": [],\n \"source\": \"<string>\",\n \"daily_date\": \"<string>\",\n \"meta\": {}\n}"
response = http.request(request)
puts response.read_body{}{
"type": "<string>",
"detail": "<string>",
"status": 123
}Cards
Simple Create Card
Create a single card with the minimum amount of data required
POST
/
v1
/
cards
/
simple
Simple Create Card
curl --request POST \
--url https://api.supernotes.app/v1/cards/simple \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"markup": "<string>",
"icon": "<string>",
"tags": [],
"parent_ids": [],
"source": "<string>",
"daily_date": "<string>",
"meta": {}
}
'import requests
url = "https://api.supernotes.app/v1/cards/simple"
payload = {
"name": "<string>",
"markup": "<string>",
"icon": "<string>",
"tags": [],
"parent_ids": [],
"source": "<string>",
"daily_date": "<string>",
"meta": {}
}
headers = {
"Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
markup: '<string>',
icon: '<string>',
tags: [],
parent_ids: [],
source: '<string>',
daily_date: '<string>',
meta: {}
})
};
fetch('https://api.supernotes.app/v1/cards/simple', 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/simple",
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([
'name' => '<string>',
'markup' => '<string>',
'icon' => '<string>',
'tags' => [
],
'parent_ids' => [
],
'source' => '<string>',
'daily_date' => '<string>',
'meta' => [
]
]),
CURLOPT_HTTPHEADER => [
"Api-Key: <api-key>",
"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.supernotes.app/v1/cards/simple"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"markup\": \"<string>\",\n \"icon\": \"<string>\",\n \"tags\": [],\n \"parent_ids\": [],\n \"source\": \"<string>\",\n \"daily_date\": \"<string>\",\n \"meta\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Api-Key", "<api-key>")
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.supernotes.app/v1/cards/simple")
.header("Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"markup\": \"<string>\",\n \"icon\": \"<string>\",\n \"tags\": [],\n \"parent_ids\": [],\n \"source\": \"<string>\",\n \"daily_date\": \"<string>\",\n \"meta\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.supernotes.app/v1/cards/simple")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"markup\": \"<string>\",\n \"icon\": \"<string>\",\n \"tags\": [],\n \"parent_ids\": [],\n \"source\": \"<string>\",\n \"daily_date\": \"<string>\",\n \"meta\": {}\n}"
response = http.request(request)
puts response.read_body{}{
"type": "<string>",
"detail": "<string>",
"status": 123
}Authorizations
Body
application/json
Maximum string length:
512Maximum string length:
24000Available options:
blue, green, orange, pink, purple, red, yellow Maximum string length:
64Maximum string length:
32Available options:
-1, 0, 1 Maximum string length:
8Pattern:
^\d{4}-\d{2}-\d{2}$Show child attributes
Show child attributes
Response
Successful Response
- WrappedCardResponse
- WrappedErrorResponse
Show child attributes
Show child attributes
⌘I