Get published content by slug
curl --request GET \
--url https://api.1club.ai/v1/platform/content/{slug} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/content/{slug}"
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/content/{slug}', 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/content/{slug}",
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/content/{slug}"
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/content/{slug}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/content/{slug}")
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{
"id": 123,
"organizationId": 123,
"title": "<string>",
"slug": "<string>",
"type": "faq",
"status": "<string>",
"visibility": "Public",
"content": {
"html": "<string>",
"blocks": {},
"summary": "<string>",
"keywords": [
"<string>"
]
},
"excerpt": "<string>",
"metaTitle": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"canonicalUrl": "<string>",
"template": "<string>",
"layout": "<string>",
"customFields": {},
"tags": [
"<string>"
],
"summary": "<string>",
"keywords": [
"<string>"
],
"images": [
"<string>"
],
"featured": true,
"authorId": 123,
"author": {
"id": 123,
"name": "<string>",
"email": "<string>",
"profileImage": "<string>"
},
"publishedAt": "2023-11-07T05:31:56Z",
"language": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Content
Get published content by slug
Returns a single published, publicly-visible content item by slug - the public view. Use the list endpoint with status=all to reach drafts.
GET
/
v1
/
platform
/
content
/
{slug}
Get published content by slug
curl --request GET \
--url https://api.1club.ai/v1/platform/content/{slug} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/content/{slug}"
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/content/{slug}', 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/content/{slug}",
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/content/{slug}"
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/content/{slug}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/content/{slug}")
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{
"id": 123,
"organizationId": 123,
"title": "<string>",
"slug": "<string>",
"type": "faq",
"status": "<string>",
"visibility": "Public",
"content": {
"html": "<string>",
"blocks": {},
"summary": "<string>",
"keywords": [
"<string>"
]
},
"excerpt": "<string>",
"metaTitle": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"canonicalUrl": "<string>",
"template": "<string>",
"layout": "<string>",
"customFields": {},
"tags": [
"<string>"
],
"summary": "<string>",
"keywords": [
"<string>"
],
"images": [
"<string>"
],
"featured": true,
"authorId": 123,
"author": {
"id": 123,
"name": "<string>",
"email": "<string>",
"profileImage": "<string>"
},
"publishedAt": "2023-11-07T05:31:56Z",
"language": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Organization-scoped bearer credential: a customer API key (1club_sk_live_...) or an MCP OAuth access token.
Path Parameters
Content slug
Query Parameters
Locale for content resolution
Response
Content item
A content item (FAQ, post, document, block, or how-to guide) for the organization.
Available options:
faq, post, document, block, how-to-guide Available options:
Public, Member_only, Private Body of the content item. May contain HTML, EditorJS blocks, a summary, and keywords.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?