🧭 TradeSocial API Documentation

Interactive API Documentation

Explore and test our API using interactive documentation:

Swagger UI ReDoc UI Developer Guide

Documentation Features:

The Swagger UI provides detailed information about each endpoint, including required parameters, response formats, and authentication requirements. You can also test endpoints directly from the UI.

For detailed instructions on using the API, please refer to our Developer Guide.

API Endpoints Overview

Authentication

POST /get-google-maps-key/ 🔗 get-google-maps-key
GET /get-captcha/ 🔗 get-captcha
POST /customer/signup/ 🔗 customer_signup
POST /customer/login/ 🔗 customer_login
POST /provider/signup/ 🔗 provider_signup
POST /provider/login/ 🔗 provider_login
POST /send-otp/ 🔗 send_otp
POST /verify-otp/ 🔗 verify_otp
POST /resend-otp/ 🔗 resend_otp
POST /forget-password/ 🔗 forget_password
POST /reset-password/ 🔗 reset_password
POST /verify-password/ 🔗 verify_password
POST /resend-otp-password/ 🔗 resend-otp
POST /admin-login/ 🔗 admin_login

Marketplace & Locations

GET /index/ 🔗 index
GET /marketplace/ 🔗 marketplace_api
GET /marketplace/search/ 🔗 marketplace-search
GET /category/ 🔗 categories_api
GET /categories/ 🔗 category-list
GET /countries/ 🔗 country-list
GET /states/ 🔗 state-list
GET /districts/ 🔗 district-list
GET /districts/<int:id>/ 🔗 district-detail
GET /district-suggestions/ 🔗 district_suggestions
GET /location-suggestions-posts/ 🔗 location_suggestions_posts
GET /get-state-and-country/<int:district_id>/ 🔗 get_state_and_country
GET /search-suggestions/ 🔗 search_suggestions
GET /post-search-suggestions/ 🔗 post_search_suggestions
GET /locations/ 🔗 location-list

Blogs & Comments

GET/POST /blogs/ 🔗 blog_list_create
GET /viewoldpost/ 🔗 view_old_posts
GET/PUT/DELETE /blogs/<int:blog_id>/ 🔗 blog_detail
GET /blogs/search/ 🔗 blog-search
POST /blogs/<int:blog_id>/comments/ 🔗 add_comment
POST /blogs/<int:blog_id>/comments/<int:comment_id>/reply/ 🔗 reply_to_comment
GET /blogs/<int:blog_id>/comments/view/ 🔗 view_comments
GET /view_comments/ 🔗 view_comments_provider

👤 Profiles

GET /provider-profile/<int:provider_id>/ 🔗 provider_profile
GET/PUT /manage-customer-profile/ 🔗 customer_profile
GET/PUT /manage-provider-profile/ 🔗 manage_provider_profile

🚨 Reports & Moderation

POST /reports/ 🔗 report_create
GET /reports/list/ 🔗 report_list
GET/POST/DELETE /blocks/ 🔗 block_list_create

📞 Contact & Messaging

POST /contact-tradesocial-admin/ 🔗 contact_api
GET /contacts/ 🔗 contact-list
POST /contacts/create/ 🔗 contact-create
GET/POST /chats/ 🔗 chat-list-create
GET/POST /chats/<int:chat_id>/messages/ 🔗 message-list-create