Create a wiki article
curl --request POST \
--url https://api.autoprintfarm.com/public/v1/wiki \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"slug": "<string>",
"content": "<string>",
"excerpt": "<string>",
"category": "<string>",
"tags": [
"<string>"
],
"product_id": "<string>",
"sku_id": "<string>",
"is_published": false,
"meta_title": "<string>",
"meta_description": "<string>",
"featured_image_url": "<string>",
"description": "<string>",
"estimated_time_minutes": 123,
"tools_required": [
"<string>"
],
"sections": [
{
"id": "<string>",
"order": 123,
"content": "<string>",
"title": "<string>",
"description": "<string>",
"image_url": "<string>",
"notes": "<string>",
"warnings": [
"<string>"
],
"number": 123
}
]
}
'import requests
url = "https://api.autoprintfarm.com/public/v1/wiki"
payload = {
"title": "<string>",
"slug": "<string>",
"content": "<string>",
"excerpt": "<string>",
"category": "<string>",
"tags": ["<string>"],
"product_id": "<string>",
"sku_id": "<string>",
"is_published": False,
"meta_title": "<string>",
"meta_description": "<string>",
"featured_image_url": "<string>",
"description": "<string>",
"estimated_time_minutes": 123,
"tools_required": ["<string>"],
"sections": [
{
"id": "<string>",
"order": 123,
"content": "<string>",
"title": "<string>",
"description": "<string>",
"image_url": "<string>",
"notes": "<string>",
"warnings": ["<string>"],
"number": 123
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
slug: '<string>',
content: '<string>',
excerpt: '<string>',
category: '<string>',
tags: ['<string>'],
product_id: '<string>',
sku_id: '<string>',
is_published: false,
meta_title: '<string>',
meta_description: '<string>',
featured_image_url: '<string>',
description: '<string>',
estimated_time_minutes: 123,
tools_required: ['<string>'],
sections: [
{
id: '<string>',
order: 123,
content: '<string>',
title: '<string>',
description: '<string>',
image_url: '<string>',
notes: '<string>',
warnings: ['<string>'],
number: 123
}
]
})
};
fetch('https://api.autoprintfarm.com/public/v1/wiki', 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.autoprintfarm.com/public/v1/wiki",
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([
'title' => '<string>',
'slug' => '<string>',
'content' => '<string>',
'excerpt' => '<string>',
'category' => '<string>',
'tags' => [
'<string>'
],
'product_id' => '<string>',
'sku_id' => '<string>',
'is_published' => false,
'meta_title' => '<string>',
'meta_description' => '<string>',
'featured_image_url' => '<string>',
'description' => '<string>',
'estimated_time_minutes' => 123,
'tools_required' => [
'<string>'
],
'sections' => [
[
'id' => '<string>',
'order' => 123,
'content' => '<string>',
'title' => '<string>',
'description' => '<string>',
'image_url' => '<string>',
'notes' => '<string>',
'warnings' => [
'<string>'
],
'number' => 123
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.autoprintfarm.com/public/v1/wiki"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"slug\": \"<string>\",\n \"content\": \"<string>\",\n \"excerpt\": \"<string>\",\n \"category\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"product_id\": \"<string>\",\n \"sku_id\": \"<string>\",\n \"is_published\": false,\n \"meta_title\": \"<string>\",\n \"meta_description\": \"<string>\",\n \"featured_image_url\": \"<string>\",\n \"description\": \"<string>\",\n \"estimated_time_minutes\": 123,\n \"tools_required\": [\n \"<string>\"\n ],\n \"sections\": [\n {\n \"id\": \"<string>\",\n \"order\": 123,\n \"content\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"notes\": \"<string>\",\n \"warnings\": [\n \"<string>\"\n ],\n \"number\": 123\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.autoprintfarm.com/public/v1/wiki")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"slug\": \"<string>\",\n \"content\": \"<string>\",\n \"excerpt\": \"<string>\",\n \"category\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"product_id\": \"<string>\",\n \"sku_id\": \"<string>\",\n \"is_published\": false,\n \"meta_title\": \"<string>\",\n \"meta_description\": \"<string>\",\n \"featured_image_url\": \"<string>\",\n \"description\": \"<string>\",\n \"estimated_time_minutes\": 123,\n \"tools_required\": [\n \"<string>\"\n ],\n \"sections\": [\n {\n \"id\": \"<string>\",\n \"order\": 123,\n \"content\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"notes\": \"<string>\",\n \"warnings\": [\n \"<string>\"\n ],\n \"number\": 123\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.autoprintfarm.com/public/v1/wiki")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"slug\": \"<string>\",\n \"content\": \"<string>\",\n \"excerpt\": \"<string>\",\n \"category\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"product_id\": \"<string>\",\n \"sku_id\": \"<string>\",\n \"is_published\": false,\n \"meta_title\": \"<string>\",\n \"meta_description\": \"<string>\",\n \"featured_image_url\": \"<string>\",\n \"description\": \"<string>\",\n \"estimated_time_minutes\": 123,\n \"tools_required\": [\n \"<string>\"\n ],\n \"sections\": [\n {\n \"id\": \"<string>\",\n \"order\": 123,\n \"content\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"notes\": \"<string>\",\n \"warnings\": [\n \"<string>\"\n ],\n \"number\": 123\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "<string>",
"title": "<string>",
"slug": "<string>",
"excerpt": "<string>",
"category": "<string>",
"tags": [
"<string>"
],
"product_id": "<string>",
"sku_id": "<string>",
"is_published": true,
"published_at": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"featured_image_url": "<string>",
"description": "<string>",
"estimated_time_minutes": 123,
"difficulty": "<string>",
"tools_required": [
"<string>"
],
"created_at": "<string>",
"updated_at": "<string>",
"content": "<string>",
"sections": [
{}
]
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"details": "<unknown>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"details": "<unknown>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"details": "<unknown>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"details": "<unknown>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"details": "<unknown>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"details": "<unknown>"
}
}Wiki
Create a wiki article
If slug is omitted it is generated from title. 409 DUPLICATE_SLUG on collision. author_id and last_edited_by are auto-populated from the API key’s owner — never accepted from the request body. Setting is_published: true stamps published_at.
POST
/
wiki
Create a wiki article
curl --request POST \
--url https://api.autoprintfarm.com/public/v1/wiki \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"slug": "<string>",
"content": "<string>",
"excerpt": "<string>",
"category": "<string>",
"tags": [
"<string>"
],
"product_id": "<string>",
"sku_id": "<string>",
"is_published": false,
"meta_title": "<string>",
"meta_description": "<string>",
"featured_image_url": "<string>",
"description": "<string>",
"estimated_time_minutes": 123,
"tools_required": [
"<string>"
],
"sections": [
{
"id": "<string>",
"order": 123,
"content": "<string>",
"title": "<string>",
"description": "<string>",
"image_url": "<string>",
"notes": "<string>",
"warnings": [
"<string>"
],
"number": 123
}
]
}
'import requests
url = "https://api.autoprintfarm.com/public/v1/wiki"
payload = {
"title": "<string>",
"slug": "<string>",
"content": "<string>",
"excerpt": "<string>",
"category": "<string>",
"tags": ["<string>"],
"product_id": "<string>",
"sku_id": "<string>",
"is_published": False,
"meta_title": "<string>",
"meta_description": "<string>",
"featured_image_url": "<string>",
"description": "<string>",
"estimated_time_minutes": 123,
"tools_required": ["<string>"],
"sections": [
{
"id": "<string>",
"order": 123,
"content": "<string>",
"title": "<string>",
"description": "<string>",
"image_url": "<string>",
"notes": "<string>",
"warnings": ["<string>"],
"number": 123
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
slug: '<string>',
content: '<string>',
excerpt: '<string>',
category: '<string>',
tags: ['<string>'],
product_id: '<string>',
sku_id: '<string>',
is_published: false,
meta_title: '<string>',
meta_description: '<string>',
featured_image_url: '<string>',
description: '<string>',
estimated_time_minutes: 123,
tools_required: ['<string>'],
sections: [
{
id: '<string>',
order: 123,
content: '<string>',
title: '<string>',
description: '<string>',
image_url: '<string>',
notes: '<string>',
warnings: ['<string>'],
number: 123
}
]
})
};
fetch('https://api.autoprintfarm.com/public/v1/wiki', 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.autoprintfarm.com/public/v1/wiki",
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([
'title' => '<string>',
'slug' => '<string>',
'content' => '<string>',
'excerpt' => '<string>',
'category' => '<string>',
'tags' => [
'<string>'
],
'product_id' => '<string>',
'sku_id' => '<string>',
'is_published' => false,
'meta_title' => '<string>',
'meta_description' => '<string>',
'featured_image_url' => '<string>',
'description' => '<string>',
'estimated_time_minutes' => 123,
'tools_required' => [
'<string>'
],
'sections' => [
[
'id' => '<string>',
'order' => 123,
'content' => '<string>',
'title' => '<string>',
'description' => '<string>',
'image_url' => '<string>',
'notes' => '<string>',
'warnings' => [
'<string>'
],
'number' => 123
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.autoprintfarm.com/public/v1/wiki"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"slug\": \"<string>\",\n \"content\": \"<string>\",\n \"excerpt\": \"<string>\",\n \"category\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"product_id\": \"<string>\",\n \"sku_id\": \"<string>\",\n \"is_published\": false,\n \"meta_title\": \"<string>\",\n \"meta_description\": \"<string>\",\n \"featured_image_url\": \"<string>\",\n \"description\": \"<string>\",\n \"estimated_time_minutes\": 123,\n \"tools_required\": [\n \"<string>\"\n ],\n \"sections\": [\n {\n \"id\": \"<string>\",\n \"order\": 123,\n \"content\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"notes\": \"<string>\",\n \"warnings\": [\n \"<string>\"\n ],\n \"number\": 123\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.autoprintfarm.com/public/v1/wiki")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"slug\": \"<string>\",\n \"content\": \"<string>\",\n \"excerpt\": \"<string>\",\n \"category\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"product_id\": \"<string>\",\n \"sku_id\": \"<string>\",\n \"is_published\": false,\n \"meta_title\": \"<string>\",\n \"meta_description\": \"<string>\",\n \"featured_image_url\": \"<string>\",\n \"description\": \"<string>\",\n \"estimated_time_minutes\": 123,\n \"tools_required\": [\n \"<string>\"\n ],\n \"sections\": [\n {\n \"id\": \"<string>\",\n \"order\": 123,\n \"content\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"notes\": \"<string>\",\n \"warnings\": [\n \"<string>\"\n ],\n \"number\": 123\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.autoprintfarm.com/public/v1/wiki")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"slug\": \"<string>\",\n \"content\": \"<string>\",\n \"excerpt\": \"<string>\",\n \"category\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"product_id\": \"<string>\",\n \"sku_id\": \"<string>\",\n \"is_published\": false,\n \"meta_title\": \"<string>\",\n \"meta_description\": \"<string>\",\n \"featured_image_url\": \"<string>\",\n \"description\": \"<string>\",\n \"estimated_time_minutes\": 123,\n \"tools_required\": [\n \"<string>\"\n ],\n \"sections\": [\n {\n \"id\": \"<string>\",\n \"order\": 123,\n \"content\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"notes\": \"<string>\",\n \"warnings\": [\n \"<string>\"\n ],\n \"number\": 123\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "<string>",
"title": "<string>",
"slug": "<string>",
"excerpt": "<string>",
"category": "<string>",
"tags": [
"<string>"
],
"product_id": "<string>",
"sku_id": "<string>",
"is_published": true,
"published_at": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"featured_image_url": "<string>",
"description": "<string>",
"estimated_time_minutes": 123,
"difficulty": "<string>",
"tools_required": [
"<string>"
],
"created_at": "<string>",
"updated_at": "<string>",
"content": "<string>",
"sections": [
{}
]
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"details": "<unknown>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"details": "<unknown>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"details": "<unknown>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"details": "<unknown>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"details": "<unknown>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"details": "<unknown>"
}
}Authorizations
API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.
Body
application/json
Required string length:
1 - 200Maximum string length:
500Maximum string length:
100Maximum string length:
60Maximum string length:
160Maximum string length:
500Available options:
easy, medium, hard, null Show child attributes
Show child attributes
Was this page helpful?
⌘I