{
  "openapi": "3.1.0",
  "info": {
    "title": "Twilio SMS for TRAK Asset Pre-Start",
    "description": "Outbound provider request for configured Asset Pre-Start notification routes.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.twilio.com"
    }
  ],
  "paths": {
    "/2010-04-01/Accounts/{AccountSid}/Messages.json": {
      "post": {
        "operationId": "sendAssetPreStartSMS",
        "summary": "Submit one SMS to the selected recipient",
        "security": [
          {
            "account": []
          }
        ],
        "parameters": [
          {
            "name": "AccountSid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "To": {
                    "type": "string"
                  },
                  "Body": {
                    "type": "string"
                  },
                  "From": {
                    "type": "string"
                  },
                  "MessagingServiceSid": {
                    "type": "string"
                  }
                },
                "required": [
                  "To",
                  "Body"
                ],
                "oneOf": [
                  {
                    "required": [
                      "From"
                    ]
                  },
                  {
                    "required": [
                      "MessagingServiceSid"
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Message accepted by Twilio. TRAK saves the message SID when returned.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sid": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": []
                }
              }
            }
          },
          "2XX": {
            "description": "Accepted submission; delivery to a handset is separate."
          },
          "default": {
            "description": "Provider rejection; TRAK records the failure and available provider message."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "account": {
        "type": "http",
        "scheme": "basic",
        "description": "The configured Account SID and authentication token."
      }
    }
  }
}
