DOCS → API REFERENCE

Gogetatrip API Documentation

Endpoints for holiday planning, packages, blog content, visas and booking confirmation — everything needed to wire a Gogetatrip front end to the backend.

BASE_URL:https://api.gogetatrip.com

Before you start

Every endpoint below requires an auth_token header carrying your API key. Requests without it return a common error response — see the block at the bottom of this page.

01Group

Forms

4 requests · all route through POST {{BASE_URL}}/api/form_submit with an auth_token: {{TOKEN}} header

POST
1Form

Plan Your Holiday Form

URL

POST {{BASE_URL}}/api/form_submit

Headers

auth_token : {{TOKEN}} Content-Type : application/json

Body fields

FieldRequiredDescription
form_typeYesFixed value "holiday"
nameYesFull name of the user
emailYesEmail address
phone_numberYesContact phone number
destinationYes"domestic" or "international"
holiday_idYesID of the holiday package
policyYes"1" = terms accepted
pageYesPage slug the form was submitted from
webnameNoHoneypot field allways pass " " (Blank))

Example request

{ "form_type": "holiday", "name": "Suman Das", "email": "suman@gmail.com", "phone_number": "9876543210", "destination": "domestic", "holiday_id": 5, "policy": "1", "page": "kerala-tour-package", "webname": "" }

Response — 201 Created

{ "status": true, "message": "Thank you! We have received your enquiry. Our travel expert will contact you shortly.", "data": { "created_at": "2026-07-06T07:40:22.546Z", "id": 49, "name": "Suman Das", "email": "dass.suman126@gmail.com", "phone": "9876543210", "destination": "domestic", "holiday_id": "31" } }

Response — 422 Unprocessable Entity

{ "status": false, "message": "Mobile number is required.", "errors": [ { "path": "phone_number", "msg": "Mobile number is required." }, { "path": "phone_number", "msg": "Invalid mobile number." }, { "path": "webname", "msg": "Spam detected." } ] }
POST
2Form

Enquiry Form Submit

URL

POST {{BASE_URL}}/api/form_submit

Headers

auth_token : {{TOKEN}} Content-Type : application/json

Body fields

FieldRequiredDescription
form_typeYesFixed value "enquiry"
nameYesFull name of the user
emailYesEmail address
phone_numberYesContact phone number
pageYesPage slug the form was submitted from
webnameNoHoneypot field allways pass " " (Blank))

Example request

{ "form_type": "enquiry", "name": "Suman Das", "email": "suman@gmail.com", "phone_number": "9876543210", "page": "home", "webname": "" }

Response — 200 OK

{ "status": true, "message": "Thank you! We have received your enquiry.", "data": null }
POST
3Form

Contact Form Submit

URL

POST {{BASE_URL}}/api/form_submit

Headers

auth_token : {{TOKEN}} Content-Type : application/json

Body fields

FieldRequiredDescription
form_typeYesFixed value "contact"
nameYesFull name of the user
emailYesEmail address
phone_numberYesContact phone number
messageYesThe user's message or query
pageYesPage slug the form was submitted from
webnameNoHoneypot field allways pass " " (Blank))

Example request

{ "form_type": "contact", "name": "Suman Das", "email": "suman@gmail.com", "phone_number": "9876543210", "message": "Need help with my booking.", "page": "contact-us", "webname": "" }

Response — 200 OK

{ "status": true, "message": "Thank you! We will contact you soon.", "data": null }
POST
4Form

Package Form Submit

URL

POST {{BASE_URL}}/api/form_submit

Headers

auth_token : {{TOKEN}} Content-Type : application/json

Body fields

FieldRequiredDescription
form_typeYesFixed value "package"
nameYesFull name of the user
emailYesEmail address
phone_numberYesContact phone number
package_nameYesName of the travel package
package_priceYesPrice shown to the user
messageYesAdditional message / preferences
pageYesPage slug the form was submitted from
webnameNoHoneypot field allways pass " " (Blank))

Example request

{ "form_type": "package", "name": "Suman Das", "email": "suman@gmail.com", "phone_number": "9876543210", "package_name": "Chardham Yatra", "package_price": "53499", "message": "Looking for travel in October with family.", "page": "chardham-yatra", "webname": "" }

Response — 200 OK

{ "status": true, "message": "Thank you! We have received your enquiry.", "data": null }

Common response shape

Every endpoint replies inside this envelope — check status before reading data.

{ "status": true, "message": "", "data": {} }