Configure a webhook URL to receive mapping export files automatically when a job completes, manage multiple endpoints, and set your preferred export format.
Mapping.Travel can deliver export files to your server automatically when a mapping job finishes. You register one or more webhook URLs, and the API sends an HTTP POST to each active endpoint once the export is ready. You can also trigger an export manually for any completed job and configure the file format you want to receive.
When a mapping job completes, Mapping.Travel sends a POST request to each active webhook URL. The payload is a JSON object describing the completed export file, including a download URL, the associated mapping job ID, file format, and metadata such as file size and row count.Your endpoint must return a 2xx status code within a reasonable timeout. If delivery fails, Mapping.Travel will retry with exponential backoff.
Make sure your webhook endpoint is publicly reachable from the internet. Endpoints behind a firewall or on localhost will not receive deliveries.
To verify that incoming requests come from Mapping.Travel and not a third party:
Check the source IP — Mapping.Travel sends deliveries from a fixed set of IP addresses. Contact support to get the current IP allowlist.
Use a secret token in the URL — Add a hard-to-guess token as a query parameter or path segment when registering your webhook URL (e.g. https://your-server.example.com/webhooks/mapping-export?secret=abc123). Validate it on every incoming request.
Verify the payload shape — Reject any delivery that doesn’t match the expected export payload structure.
Do not put your Mapping.Travel API token in the webhook URL. Use a separate secret known only to your server.
You can request an export for any completed mapping job without waiting for a new job to finish. This is useful for re-delivering results to a webhook or generating a fresh download.
curl -X POST \ https://api.mapping.travel/api/v1/mapping/f9e8d7c6-b5a4-3210-fedc-ba9876543210/export \ -H "Authorization: Bearer <your-token>"
The export is delivered to all active webhooks once it is ready. If you have no active webhooks, the export file is still generated and can be downloaded separately.
Use manual export when you add a new webhook and want to re-deliver results from a job that already completed.