---
updatedAt: 2026-09-23T20:15:18.000Z
agentTools:
  projectIndex: https://mediroutes-api.readme.io/llms.txt
---

# Create TripChange Webhook

Post a webhook to subscribe for trip Changes, Trip Guid is required

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/webhook/tripChange": {
      "post": {
        "tags": [
          "Webhook"
        ],
        "summary": "Create TripChange Webhook",
        "description": "Post a webhook to subscribe for trip Changes, Trip Guid is required",
        "operationId": "post-webhooktripchange",
        "parameters": [
          {
            "name": "api_key",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "access token",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookTripModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookTripModel"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/WebhookTripModel"
              }
            },
            "text/xml": {
              "schema": {
                "$ref": "#/components/schemas/WebhookTripModel"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/WebhookTripModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Webhooks Subscriber Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_WebhookResponseModel_"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_WebhookResponseModel_"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_WebhookResponseModel_"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_WebhookResponseModel_"
                }
              }
            }
          },
          "400": {
            "description": "Missing or unaligned data. Error message will be returned with response."
          },
          "403": {
            "description": "The api key used does not have access to this resource."
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "components": {
    "schemas": {
      "WebhookResponseModel": {
        "type": "object",
        "properties": {
          "Id": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "Key": {
            "type": "string"
          },
          "CallbackUrl": {
            "type": "string"
          },
          "SubscriptionAction": {
            "type": "string"
          },
          "Name": {
            "type": "string"
          },
          "Parameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "WebhookTripModel": {
        "type": "object",
        "properties": {
          "TripGuid": {
            "type": "string"
          },
          "CallBackUrl": {
            "type": "string"
          },
          "CallBackUrlHeaders": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "Name": {
            "type": "string"
          },
          "RunId": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "ApiResponse_WebhookResponseModel_": {
        "type": "object",
        "properties": {
          "Data": {
            "$ref": "#/components/schemas/WebhookResponseModel"
          },
          "StatusCode": {
            "format": "int32",
            "type": "integer"
          },
          "Message": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```