24. ACF Import API | Field Forge - Custom Fields, Built for Speed
Download Log in

24. ACF Import API

Developer Guide

Import ACF field groups into Field Forge via REST.

POST /fieldforge/v1/import/acf

Detects groups from ACF database posts, PHP-registered local groups, ACF Local JSON files, or postmeta references.

bash
curl -s -X POST -u "$AUTH" 
  "https://example.com/wp-json/fieldforge/v1/import/acf"
Response:
json
{
  "migrated": 3,
  "errors": 0,
  "log": [
    "+ "Hero Section" -> Field Group #1 (6 fields)",
    "+ "Product Fields" -> Field Group #2 (8 fields)",
    "+ "SEO Settings" -> Field Group #3 (4 fields)"
  ]
}

POST /fieldforge/v1/generate

Generate field groups using AI (PRO). Accepts a natural language description.

bash
curl -s -X POST -u "$AUTH" 
  -H "Content-Type: application/json" 
  "https://example.com/wp-json/fieldforge/v1/generate" 
  -d '{ "prompt": "landing page with hero, features, and FAQ" }'
Response:
json
{
  "groups": [
    {
      "title": "Hero Section",
      "fields": [
        { "label": "Heading", "name": "hero_heading", "type": "text" },
        { "label": "Background Image", "name": "hero_image", "type": "image" }
      ]
    }
  ],
  "message": "Generated 3 section(s) with 15 fields total.",
  "source": "local"
}

Forge AI Assistant Online

Hi! I'm the Field Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs