Public API for managing trips and catalogs in the MOGU platform
MOGU Public API (1.0.0)
Request
Create a new trip from a document using AI. Supports URLs to documents (PDF, TXT, images) or plain text descriptions.
The job runs asynchronously. Use the returned status URL to poll for completion.
Supported source types:
url: URL to a document (PDF, TXT, JPG, PNG)text: Plain text description or JSON object (will be stringified)inline: Base64-encoded document with filename
- Mock serverhttps://api-docs.moguplatform.com/_mock/openapi/ai/trips/from-document
- Production serverhttps://trips.api.moguplatform.com/ai/trips/from-document
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-docs.moguplatform.com/_mock/openapi/ai/trips/from-document \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"source": {
"type": "url",
"url": "https://storage.example.com/itinerary.pdf"
},
"isTemplate": false
}'Job created and processing started
Unique public identifier for the job
URL to the trip public page
URL to the trip builder (requires authentication)
API endpoint to check job status
{ "jobId": "1c2c38f3-e596-463e-9f62-75c7c3602770", "status": "processing", "links": { "publicUrl": "https://v2.app.moguplatform.com/ai/trip/public/1c2c38f3-e596-463e-9f62-75c7c3602770", "builderUrl": "https://v2.app.moguplatform.com/ai/trip/1c2c38f3-e596-463e-9f62-75c7c3602770", "status": "https://trips.api.moguplatform.com/ai/trips/1c2c38f3-e596-463e-9f62-75c7c3602770/status", "cancel": "https://trips.api.moguplatform.com/ai/trips/1c2c38f3-e596-463e-9f62-75c7c3602770/actions/cancel" } }
Request
Get the current status of a trip creation job. This endpoint is public and does not require authentication.
Status values:
processing: Job is still runningcompleted: Trip has been created successfullyerror: Job failed with an errorcanceled: Job was canceled
Stage values (during processing):
initializing: Starting the jobextractingText: Extracting text from the documentgeneratingBlocks: Generating trip structure with AIenrichingBlocks: Enriching blocks with real-world data (flights, places, images)completed: Processing finished
When status is completed, the publicUrl and builderUrl will point to the actual trip pages.
- Mock serverhttps://api-docs.moguplatform.com/_mock/openapi/ai/trips/{publicId}/status
- Production serverhttps://trips.api.moguplatform.com/ai/trips/{publicId}/status
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api-docs.moguplatform.com/_mock/openapi/ai/trips/1c2c38f3-e596-463e-9f62-75c7c3602770/statusJob status retrieved successfully
Unique public identifier for the job
Current status of the job
Current processing stage
URL to the trip public page
URL to the trip builder (requires authentication)
Error message if status is error
{ "jobId": "1c2c38f3-e596-463e-9f62-75c7c3602770", "status": "processing", "stage": "enrichingBlocks", "publicUrl": "https://v2.app.moguplatform.com/ai/trip/public/1c2c38f3-e596-463e-9f62-75c7c3602770", "builderUrl": "https://v2.app.moguplatform.com/ai/trip/1c2c38f3-e596-463e-9f62-75c7c3602770", "tripId": null, "tripSlug": null, "updatedAt": "2026-01-27T15:30:28Z" }
- Mock serverhttps://api-docs.moguplatform.com/_mock/openapi/ai/trips/{publicId}/actions/cancel
- Production serverhttps://trips.api.moguplatform.com/ai/trips/{publicId}/actions/cancel
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-docs.moguplatform.com/_mock/openapi/ai/trips/1c2c38f3-e596-463e-9f62-75c7c3602770/actions/cancel \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Job canceled successfully
Unique public identifier for the job
Current status of the job
Current processing stage
URL to the trip public page
URL to the trip builder (requires authentication)
Error message if status is error
{ "jobId": "1c2c38f3-e596-463e-9f62-75c7c3602770", "status": "canceled", "stage": "extractingText", "publicUrl": "https://v2.app.moguplatform.com/ai/trip/public/1c2c38f3-e596-463e-9f62-75c7c3602770", "builderUrl": "https://v2.app.moguplatform.com/ai/trip/1c2c38f3-e596-463e-9f62-75c7c3602770", "tripId": null, "tripSlug": null, "updatedAt": "2026-01-27T15:30:20Z" }