curl --request GET \
--url https://api.1club.ai/v1/platform/website/section-types \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/website/section-types"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1club.ai/v1/platform/website/section-types', 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.1club.ai/v1/platform/website/section-types",
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.1club.ai/v1/platform/website/section-types"
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.1club.ai/v1/platform/website/section-types")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/website/section-types")
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{
"content": [
"<string>"
],
"layout": [
"<string>"
],
"sectionTypes": {},
"sharedStyle": {
"fields": [
{
"key": "<string>",
"type": "string",
"options": [
"<string>"
],
"defaultValue": "<unknown>",
"group": "content",
"prominence": "card",
"order": 123,
"width": "full",
"translatable": true,
"entityType": "club",
"contactFilterType": "contact",
"itemFields": "<array>",
"maxItems": 123,
"min": 123,
"max": 123,
"step": 123,
"unit": "<string>",
"visibleIf": {
"field": "<string>",
"equals": "<unknown>",
"oneOf": [
"<unknown>"
],
"isEmpty": true,
"allOf": "<array>",
"anyOf": "<array>"
},
"deprecated": true
}
],
"notes": "<string>"
},
"defaults": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Get the section-type catalog
Every section type a page or layout may use, with its config fields, their allowed values, and authoring notes.
Read this before composing sections: it is the machine-readable definition of what a hero or a plans block accepts, and section types are added over time. content types belong in a page’s sections; layout types (header, footer) belong to the site layout and appear on every page.
curl --request GET \
--url https://api.1club.ai/v1/platform/website/section-types \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/website/section-types"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1club.ai/v1/platform/website/section-types', 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.1club.ai/v1/platform/website/section-types",
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.1club.ai/v1/platform/website/section-types"
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.1club.ai/v1/platform/website/section-types")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/website/section-types")
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{
"content": [
"<string>"
],
"layout": [
"<string>"
],
"sectionTypes": {},
"sharedStyle": {
"fields": [
{
"key": "<string>",
"type": "string",
"options": [
"<string>"
],
"defaultValue": "<unknown>",
"group": "content",
"prominence": "card",
"order": 123,
"width": "full",
"translatable": true,
"entityType": "club",
"contactFilterType": "contact",
"itemFields": "<array>",
"maxItems": 123,
"min": 123,
"max": 123,
"step": 123,
"unit": "<string>",
"visibleIf": {
"field": "<string>",
"equals": "<unknown>",
"oneOf": [
"<unknown>"
],
"isEmpty": true,
"allOf": "<array>",
"anyOf": "<array>"
},
"deprecated": true
}
],
"notes": "<string>"
},
"defaults": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Authorizations
Organization-scoped bearer credential: a customer API key (1club_sk_live_...) or an MCP OAuth access token.
Response
Section types with their config field definitions
Show child attributes
Show child attributes
The style fields EVERY content section accepts, stated once instead of repeated in each entry of sectionTypes.
Show child attributes
Show child attributes
The starting config for a new section, keyed by section type.
Show child attributes
Show child attributes
Was this page helpful?