cURL
curl --request POST \
--url https://api.feedspace.io/v3/pages \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'name=<string>' \
--data 'custom_attributes={
"cta_enabled": true,
"cta_attributes": {
"heading_text": "<string>",
"body_text": "<string>",
"button_label": "<string>",
"button_color": "<string>",
"position": "<string>",
"card_background_color": "<string>",
"card_border_color": "<string>",
"button_url": "<string>"
}
}'import requests
url = "https://api.feedspace.io/v3/pages"
payload = {
"name": "<string>",
"custom_attributes": "{
\"cta_enabled\": true,
\"cta_attributes\": {
\"heading_text\": \"<string>\",
\"body_text\": \"<string>\",
\"button_label\": \"<string>\",
\"button_color\": \"<string>\",
\"position\": \"<string>\",
\"card_background_color\": \"<string>\",
\"card_border_color\": \"<string>\",
\"button_url\": \"<string>\"
}
}"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Basic <encoded-value>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({
name: '<string>',
custom_attributes: '{\n "cta_enabled": true,\n "cta_attributes": {\n "heading_text": "<string>",\n "body_text": "<string>",\n "button_label": "<string>",\n "button_color": "<string>",\n "position": "<string>",\n "card_background_color": "<string>",\n "card_border_color": "<string>",\n "button_url": "<string>"\n }\n}'
})
};
fetch('https://api.feedspace.io/v3/pages', 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.feedspace.io/v3/pages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "name=%3Cstring%3E&custom_attributes=%7B%0A%20%20%22cta_enabled%22%3A%20true%2C%0A%20%20%22cta_attributes%22%3A%20%7B%0A%20%20%20%20%22heading_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22body_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_label%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22position%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_background_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_border_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_url%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/x-www-form-urlencoded"
],
]);
$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.feedspace.io/v3/pages"
payload := strings.NewReader("name=%3Cstring%3E&custom_attributes=%7B%0A%20%20%22cta_enabled%22%3A%20true%2C%0A%20%20%22cta_attributes%22%3A%20%7B%0A%20%20%20%20%22heading_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22body_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_label%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22position%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_background_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_border_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_url%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
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.feedspace.io/v3/pages")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("name=%3Cstring%3E&custom_attributes=%7B%0A%20%20%22cta_enabled%22%3A%20true%2C%0A%20%20%22cta_attributes%22%3A%20%7B%0A%20%20%20%20%22heading_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22body_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_label%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22position%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_background_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_border_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_url%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.feedspace.io/v3/pages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "name=%3Cstring%3E&custom_attributes=%7B%0A%20%20%22cta_enabled%22%3A%20true%2C%0A%20%20%22cta_attributes%22%3A%20%7B%0A%20%20%20%20%22heading_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22body_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_label%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22position%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_background_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_border_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_url%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D"
response = http.request(request)
puts response.read_body{
"message": "Page Created Successfully",
"data": {
"id": 407,
"unique_page_id": "page_asN7DjyRStBAGx4xANmUuNK5",
"slug": "J0SrBzf5yj",
"public_url": "https://www.feedspace.io/w/J0SrBzf5yj"
}
}Pages
Create Page
Create a new page.
POST
/
pages
cURL
curl --request POST \
--url https://api.feedspace.io/v3/pages \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'name=<string>' \
--data 'custom_attributes={
"cta_enabled": true,
"cta_attributes": {
"heading_text": "<string>",
"body_text": "<string>",
"button_label": "<string>",
"button_color": "<string>",
"position": "<string>",
"card_background_color": "<string>",
"card_border_color": "<string>",
"button_url": "<string>"
}
}'import requests
url = "https://api.feedspace.io/v3/pages"
payload = {
"name": "<string>",
"custom_attributes": "{
\"cta_enabled\": true,
\"cta_attributes\": {
\"heading_text\": \"<string>\",
\"body_text\": \"<string>\",
\"button_label\": \"<string>\",
\"button_color\": \"<string>\",
\"position\": \"<string>\",
\"card_background_color\": \"<string>\",
\"card_border_color\": \"<string>\",
\"button_url\": \"<string>\"
}
}"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Basic <encoded-value>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({
name: '<string>',
custom_attributes: '{\n "cta_enabled": true,\n "cta_attributes": {\n "heading_text": "<string>",\n "body_text": "<string>",\n "button_label": "<string>",\n "button_color": "<string>",\n "position": "<string>",\n "card_background_color": "<string>",\n "card_border_color": "<string>",\n "button_url": "<string>"\n }\n}'
})
};
fetch('https://api.feedspace.io/v3/pages', 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.feedspace.io/v3/pages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "name=%3Cstring%3E&custom_attributes=%7B%0A%20%20%22cta_enabled%22%3A%20true%2C%0A%20%20%22cta_attributes%22%3A%20%7B%0A%20%20%20%20%22heading_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22body_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_label%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22position%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_background_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_border_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_url%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/x-www-form-urlencoded"
],
]);
$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.feedspace.io/v3/pages"
payload := strings.NewReader("name=%3Cstring%3E&custom_attributes=%7B%0A%20%20%22cta_enabled%22%3A%20true%2C%0A%20%20%22cta_attributes%22%3A%20%7B%0A%20%20%20%20%22heading_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22body_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_label%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22position%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_background_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_border_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_url%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
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.feedspace.io/v3/pages")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("name=%3Cstring%3E&custom_attributes=%7B%0A%20%20%22cta_enabled%22%3A%20true%2C%0A%20%20%22cta_attributes%22%3A%20%7B%0A%20%20%20%20%22heading_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22body_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_label%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22position%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_background_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_border_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_url%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.feedspace.io/v3/pages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "name=%3Cstring%3E&custom_attributes=%7B%0A%20%20%22cta_enabled%22%3A%20true%2C%0A%20%20%22cta_attributes%22%3A%20%7B%0A%20%20%20%20%22heading_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22body_text%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_label%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22position%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_background_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22card_border_color%22%3A%20%22%3Cstring%3E%22%2C%0A%20%20%20%20%22button_url%22%3A%20%22%3Cstring%3E%22%0A%20%20%7D%0A%7D"
response = http.request(request)
puts response.read_body{
"message": "Page Created Successfully",
"data": {
"id": 407,
"unique_page_id": "page_asN7DjyRStBAGx4xANmUuNK5",
"slug": "J0SrBzf5yj",
"public_url": "https://www.feedspace.io/w/J0SrBzf5yj"
}
}Authorizations
HTTP Basic Authentication using API Key and Secret Key. The credentials should be Base64 encoded in the format 'api_key:secret_key'. You can obtain your API Key and Secret Key from Feedspace → Automation → API (https://app.feedspace.io/automation/api).
Body
application/x-www-form-urlencoded
⌘I