Skip to main content
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
    }
  ]
}
'
{
  "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": [
      {}
    ]
  }
}

Authorizations

Authorization
string
header
required

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
title
string
required
Required string length: 1 - 200
slug
string | null
content
string | null
excerpt
string | null
Maximum string length: 500
category
string | null
Maximum string length: 100
tags
string[] | null
product_id
string | null
sku_id
string | null
is_published
boolean
default:false
meta_title
string | null
Maximum string length: 60
meta_description
string | null
Maximum string length: 160
Maximum string length: 500
description
string | null
estimated_time_minutes
number | null
difficulty
enum<string> | null
Available options:
easy,
medium,
hard,
null
tools_required
string[] | null
sections
object[] | null

Response

Article created

success
enum<boolean>
required
Available options:
true
data
object
required