• Classified Listing Docs
    • Classified Listing Plugin
    • Classified Listing All Addons
    • Classified Listing Mobile App
    • Classima Mobile APP
    • Listygo Mobile App
    • Homlisti Mobile App
  • Woocommerce Plugins Docs
    • ShopBuilder Elementor Addon
    • Woo Variation Swatches
    • Woo Variation Gallery
    • Zilly Mobile App
  • General Plugins Docs
    • The Post Grid
    • Testimonial Slider
    • Team Members
    • Food Menu
    • Review & Schema
    • Portfolio
    • Business Review
  • Our Plugins
    • The Post Grid
    • Classified Listing
    • ShopBuilder
    • Food Menu
    • Team
    • Portfolio
    • Testimonial Slider
    • Review & Schema
    • See All Plugins
×
  • Classified Listing Docs
    • Classified Listing Plugin
    • Classified Listing All Addons
    • Classified Listing Mobile App
    • Classima Mobile APP
    • Listygo Mobile App
    • Homlisti Mobile App
  • Woocommerce Plugins Docs
    • ShopBuilder Elementor Addon
    • Woo Variation Swatches
    • Woo Variation Gallery
    • Zilly Mobile App
  • General Plugins Docs
    • The Post Grid
    • Testimonial Slider
    • Team Members
    • Food Menu
    • Review & Schema
    • Portfolio
    • Business Review
  • Our Plugins
    • The Post Grid
    • Classified Listing
    • ShopBuilder
    • Food Menu
    • Team
    • Portfolio
    • Testimonial Slider
    • Review & Schema
    • See All Plugins

Getting Started

4
  • System Requirements
  • Installation
  • Permalink Settings
  • How to use(video)

Main Settings

15
  • Overview
  • General Settings
  • All Listings Page
  • Listing Details Page
  • Payments
  • Tax
  • Email
  • Account & Policy
  • Style
  • MISC Settings
  • Chat Settings Pro
  • Page Setup & Permalink
  • Tools
  • App Settings
  • Membership [Store addon] Pro

Email Settings

3
  • General Settings
  • Email Template
  • Video (How to Use)

Developer Docs

1
  • Developer Docs

Listing Management [Admin]

9
  • Admin End Ads View
  • Category
  • Locations
  • Listing Type
  • Pricing
  • Payment History
  • Export & Import Settings
  • Default Import [XML]
  • Stores [store addon]

AI Integration

5
  • Create Form with AI
  • Frontend AI Integration
  • AI Integration Settings
  • AI Semantic Search
  • AI Image Enhancement

Radius Booking Integration

10
  • How to Use (Video)
  • Integration with Radius Booking
  • Radius Booking Field in Form Builder
  • Enable Radius Booking on Existing Listing
  • Payout Settings
  • Payout Request from Front End Dashboard
  • Payout Request on Admin Panel
  • Commission Overview — Admin Panel
  • My Account – Booking
  • Appointments – Admin Panel

Theming

4
  • Add theme support for plugin templates
  • Override Ad Submission Form
  • Override ad detail page
  • Theming

REST API

54
  • Form Builder Image Sort REST API
  • Form Builder Image Delete REST API
  • Form Builder File Delete REST API
  • Form Builder File Upload REST API
  • Create Listing via Form Builder REST API
  • Email Store Owner REST API
  • Get Single Store REST API
  • Get Store Listings REST API
  • Get Stores REST API
  • Upload My Store Banner REST API
  • Upload My Store Logo REST API
  • My Store REST API
  • My Store REST API
  • Report Listing REST API
  • Update Subscription Payment Method API
  • Cancel Subscription REST API
  • Get Pricing Plans REST API
  • Get Single Payment / Order Details REST API
  • Get Payment History REST API
  • Get Checkout Data REST API
  • Create New Tag REST API
  • Change Order Status REST API
  • Manage Orders REST API
  • Mark Message as Read REST API
  • Chat Message REST API
  • Check Conversation by Listing REST API
  • Start New Conversation API
  • Get Conversation Messages API
  • My Chat List REST API
  • Toggle a favourite listing REST API
  • Get My Favourite Listings REST API
  • Upload My Profile Image REST API
  • Update My Account REST API
  • Get My Account Info REST API
  • Mark Listing as Sold REST API
  • Change Listing Status REST API
  • Renew Listing REST API
  • Delete My Listings REST API
  • Get My Listings REST API
  • Get Single Listing API
  • Create a listing API
  • User Sign Up REST API
  • Login REST API
  • Logout REST API
  • Account Delete REST API
  • Reset Password REST API
  • Contact REST API
  • Configuration API
  • Locations API
  • Categories API
  • Listing Types API
  • Email Seller API
  • Listings API
  • General

Code Snippets

18
  • Mask more digits
  • Change Business Hour Start and End Time
  • Add Price Unit
  • Trim zero from payment price
  • Show mark as sold listing in the search
  • Remove required attribute for phone field
  • Remove Price Type
  • Modify listing submission success message
  • Modify checkout form fields
  • Display listing image in media library
  • Change radius unit and distance
  • Change Price Type
  • Change Favourites to Favorites
  • Change Excerpt Limit
  • Change Currency Symbol
  • Change archive page listing column
  • Add New Price Type
  • Code Snippets

Filter Hooks

15
  • rtcl_countries_all_countries
  • rtcl_checkout_fields
  • Checkout
  • rtcl_my_account_endpoint
  • rtcl_account_menu_items
  • My Account
  • rtcl_listing_pricing_types
  • Listing Form
  • rtcl_social_profiles_list
  • rtcl_registration_redirect
  • rtcl_listing_seller_contact_form_data
  • rtcl_listing_query_meta_query
  • rtcl_get_base_location
  • General
  • Filter Hooks

Action Hooks

14
  • Email
  • rtcl_payment_receipt
  • rtcl_checkout_process_success
  • Checkout
  • rtcl_account_{$menu_key}_endpoint
  • My Account
  • rtcl_listing_form_before_category_retrieve
  • rtcl_listing_form_after_save_or_update
  • Listing Form
  • rtcl_new_user_created
  • rtcl_listing_loop_item
  • rtcl_after_author_meta
  • General
  • Action Hooks

Payment

8
  • Checkout Option
  • Offline Payment
  • Paypal
  • Authorize.net [PRO]
  • Stripe [PRO]
  • WooCommerce [PRO]
  • Payfast [Addon]
  • Paystack [Addon]

Elementor Addons

11
  • Elementor Addons
  • Listing Category
  • Listing Category Slider
  • All Location
  • Single Location
  • Listings
  • Listing Slider
  • Listing Store
  • Pricing Table
  • Search Form
  • Header Button

WPML Addon

3
  • System Requirements
  • Location Translations
  • WPML Settings

AJAX Filter Builder

2
  • Add Filter Items
  • Filter Widget

Frequently Asked Questions (Faq’s)

29
  • Frequently Asked Questions(Faq’s)
  • Fix taxonomy page listing sorting issue
  • Disallow query string and specific URL [SEO]
  • Enable New Dashboard [Canvas]
  • Custom Fields for Listview
  • Custom Fields for Filter
  • Pay Per Ad
  • Admin Menu Access
  • How to change listing archive category description position
  • Category & Location Menu Link
  • Add Re-Captcha
  • Add Google Map
  • Rank Math SEO Settings
  • Enable Chat
  • Renew listing process
  • How to set Local Time for Business Hour
  • Enable WooCommerce Payment
  • Fix Custom Field Save Issue
  • Enable Mark as Sold
  • How to add Compare
  • How to clear plugin cache?
  • Change Archive Page Title
  • User don’t get Registration & Verification Email?
  • How to change custom fields order?
  • How to add Watermark
  • How to separate login and registration page?
  • How to hide contact information for non logged in users?
  • Enable Social Login
  • Enable User Registration

Listing Management [Front End]

3
  • Front End View
  • Front End Submission
  • My Account Menu

Shortcodes

9
  • Shortcodes
  • Categories Display
  • Checkout Page
  • Listing Submission Form
  • My Account Page
  • Store List
  • Location Wise Display
  • Category Wise Display
  • Listing Filter

Drag & Drop Form Builder (New)

14
  • How to add your own icon in the builder
  • Multi-Category Selection
  • Enable Form Builder
  • Form List
  • Add New Form
  • Preset Fields
  • Custom Fields
  • Single Listing Layout Builder New
  • Enable Multiple Forms
  • Enable Conditional Logic
  • Add Bulk Options Pro
  • Smart Dependency Pro
  • SEO-Friendly Slug Builder
  • Image Crop Feature

Gutenberg Block

10
  • Gutenberg Block
  • Listing Category
  • Listing Category Slider
  • All Location
  • Single Location
  • Listings
  • Listing Slider
  • Listing Search
  • Pricing Table
  • Stores
  • Home
  • Docs
  • Developer Docs
  • REST API
  • Create Listing via Form Builder REST API
View Categories

Create Listing via Form Builder REST API

3 min read

0:00 / 4:57
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

Endpoint #

POST /wp-json/rtcl/v1/listing/fb

Description #

Creates a new listing or updates an existing listing using the Form Builder system. This endpoint handles form data validation, user registration for unregistered users (if enabled), taxonomy assignments, meta data storage, and all related listing operations.

Required Headers #

HeaderRequiredDescription
Content-Type✅multipart/form-data
X-API-KEY✅REST API key
Authorization✅Bearer <access_token>

Request Example #

bash

curl -X POST "https://example.com/wp-json/rtcl/v1/listing/fb" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_AUTH_TOKEN" \
  -d '{
    "listing_id": 0,
    "form_id": 5,
    "form_data": "title=My+Listing&description=This+is+a+description&category[0][term_id]=10&price=500"
  }'

Form Data Structure #

The form_data parameter should be a URL-encoded string containing form field values. Field names correspond to the Form Builder field configurations.

Preset Fields #

These are core listing fields handled specially by the system:

Field ElementForm Data KeyValue FormatStored As
titletitlestringpost_title
descriptiondescriptionstringpost_content
excerptexcerptstringpost_excerpt
listing_typelisting_typestringad_type meta
categorycategoryarray of {term_id: int}rtcl_category taxonomy
locationlocationarray of {term_id: int}rtcl_location taxonomy
tagtagarray of {term_id: int}rtcl_tag taxonomy
zipcodezipcodestringzipcode meta
addressaddressstringaddress meta
geo_locationgeo_locationstring_rtcl_geo_address meta
phonephonestringphone meta
whatsappwhatsappstring_rtcl_whatsapp_number meta
emailemailstring (email)email meta
websitewebsitestring (URL)website meta
view_countview_countinteger_views meta
social_profilessocial_profilesobject_rtcl_social_profiles meta
terms_and_conditionterms_and_conditionboolean/intrtcl_agree meta
business_hoursbusiness_hoursobject_rtcl_bhs meta
video_urlsvideo_urlsarray_rtcl_video_urls meta

Pricing Field Structure #

pricing[pricing_type]=price|range
pricing[price]=100.00
pricing[max_price]=200.00       // Only for range type
pricing[price_type]=fixed|negotiable|on_call|free
pricing[price_unit]=per_day|per_week|etc

Stored Meta Keys:

  • _rtcl_listing_pricing – Pricing type
  • price – Main price value
  • _rtcl_max_price – Maximum price (for range)
  • price_type – Price type
  • _rtcl_price_unit – Price unit

Map Field Structure #

map[latitude]=40.7128
map[longitude]=-74.0060
map[hide_map]=1

Stored Meta Keys:

  • latitude
  • longitude
  • hide_map

Category/Location/Tag Field Structure #

category[0][term_id]=5
category[1][term_id]=12
location[0][term_id]=3
tag[0][term_id]=8
tag[1][term_id]=15

Field Type Sanitization Rules #

Element TypeSanitization MethodNotes
titlesanitize_text_field()Shortcodes stripped for non-admin/editor. Truncated to max length if set.
description, excerptwp_kses_post()Shortcodes stripped for non-admin/editor. Truncated with wp_filter_nohtml_kses() if exceeds max length.
textareawp_kses_post() or sanitize_textarea_field()Depends on editor_type setting.
addresssanitize_textarea_field()
htmlwp_kses_post()
checkboxesc_attr() on each valueReturns array of escaped values.
view_countabsint()
website, urlesc_url_raw()
social_profilesesc_url_raw() on each URLOnly valid social profile keys accepted.
dateDateTime formattingSupports single and range types. Converts to save format.
video_urlsesc_url_raw()Only YouTube and Vimeo URLs accepted (including shorts).
business_hoursComplex object sanitizationTimes converted to H:i format. Special dates validated.
switchReturns 'yes' or 'no'
repeaterRecursive sanitizationEach nested field sanitized according to its type. File fields preserve existing values.
defaultsanitize_text_field()Arrays/objects use map_deep().

Response #

Success Response (200 OK) #

Returns the complete listing data object via Api::get_single_listing_data():

json

{
  "id": 123,
  "title": "My Listing",
  "slug": "my-listing",
  "status": "pending",
  "description": "This is a description (HTML tags and shortcodes stripped)",
  "url": "https://example.com/listing/my-listing/",
  "excerpt": "",
  "author_id": 1,
  "date_created": "2025-01-30T10:00:00",
  "date_modified": "2025-01-30T10:00:00",
  "categories": [
    {
      "term_id": 10,
      "name": "Category Name",
      "slug": "category-name"
    }
  ],
  "locations": [
    {
      "term_id": 3,
      "name": "Location Name",
      "slug": "location-name"
    }
  ],
  "tags": [],
  "images": [],
  "video_urls": ["https://www.youtube.com/watch?v=xxxxx"],
  "social_profiles": {
    "facebook": "https://facebook.com/example",
    "twitter": "https://twitter.com/example"
  },
  "bh": {
    "bhs": {
      "active": true,
      "type": "selective",
      "days": {}
    },
    "special_bhs": []
  },
  "author": {
    "id": 1,
    "name": "John Doe",
    "email": "john@example.com",
    "avatar_url": "https://example.com/avatar.jpg"
  },
  "is_favourite": false,
  "form_data": {
    "title": "My Listing",
    "description": "This is a description",
    "category": [{"term_id": 10, "name": "Category Name"}],
    "pricing": {
      "pricing_type": "price",
      "price": "500.00",
      "price_type": "fixed"
    }
  },
  "fb_custom_fields": [],
  "related": [],
  "review": {
    "rating": {
      "average": 4.5,
      "count": 10
    },
    "item": null
  },
  "form_id": 5
}

Response Field Details #

FieldTypeDescription
idintegerListing post ID
titlestringListing title
slugstringURL slug
statusstringPost status (publish, pending, draft, rtcl-temp)
descriptionstringPost content with HTML tags and shortcodes stripped
urlstringFull permalink to the listing
video_urlsarrayArray of YouTube/Vimeo video URLs (if enabled)
social_profilesobjectSocial profile URLs keyed by platform (if enabled)
bhobjectBusiness hours data including regular and special hours (if enabled)
authorobjectAuthor user data
is_favouritebooleanWhether current authenticated user has favorited this listing
form_dataobjectComplete form field values retrieved via FBHelper::getFormData()
fb_custom_fieldsarrayCustom field definitions and values for Form Builder
relatedarrayRelated listings
reviewobjectReview/rating data including user’s own review if authenticated

Error Responses #

403 Forbidden – Permission Denied #

json

{
  "code": "rtcl_rest_fb_permission",
  "message": "You do not have sufficient permissions to access.",
  "data": {
    "status": 403
  }
}

403 Forbidden – Form Not Found #

json

{
  "code": "rtcl_rest_fb_not_found",
  "message": "Form not found !!",
  "data": {
    "status": 403
  }
}

403 Forbidden – Missing Form Fields #

json

{
  "code": "rtcl_rest_fb_error_update_listing",
  "message": "Missing form field",
  "data": {
    "status": 403
  }
}

403 Forbidden – Validation Errors #

json

{
  "code": "rtcl_rest_fb_error_validation",
  "message": "Form validation errors",
  "data": {
    "errors": {
      "title": "Title is required",
      "price": "Price must be a valid number",
      "email": "Please enter a valid email address"
    },
    "status": 403
  }
}

403 Forbidden – Registration Error (Unregistered User) #

json

{
  "code": "rtcl_rest_fb_error_registration",
  "message": "Registration error message",
  "data": {
    "status": 403
  }
}

403 Forbidden – Missing Email for Unregistered User #

json

{
  "code": "rtcl_rest_fb_error",
  "message": "Missing required email to register user",
  "data": {
    "status": 403
  }
}

403 Forbidden – WordPress Insert/Update Error #

json

{
  "code": "rtcl_rest_fb_error_wp_insert_post_error",
  "message": "WordPress error message",
  "data": {
    "status": 403
  }
}

json

{
  "code": "rtcl_rest_fb_error_wp_update_post_error",
  "message": "WordPress error message",
  "data": {
    "status": 403
  }
}

What are your Feelings

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on January 30, 2026
Form Builder File Upload REST APIEmail Store Owner REST API
Table of Contents
  • Endpoint
  • Description
  • Required Headers
  • Request Example
  • Form Data Structure
  • Preset Fields
  • Pricing Field Structure
  • Map Field Structure
  • Category/Location/Tag Field Structure
  • Field Type Sanitization Rules
  • Response
  • Success Response (200 OK)
    • Response Field Details
  • Error Responses
    • 403 Forbidden - Permission Denied
    • 403 Forbidden - Form Not Found
    • 403 Forbidden - Missing Form Fields
    • 403 Forbidden - Validation Errors
    • 403 Forbidden - Registration Error (Unregistered User)
    • 403 Forbidden - Missing Email for Unregistered User
    • 403 Forbidden - WordPress Insert/Update Error
Copyright© 2026 RadiusDocs by RadiusTheme