diff --git a/spec/transactional.json b/spec/transactional.json index 7e2cf3c..68517ba 100644 --- a/spec/transactional.json +++ b/spec/transactional.json @@ -2835,7 +2835,7 @@ "properties": { "sms": { "type": "object", - "required": ["text", "to", "consent", "track_clicks", "from"], + "required": ["text", "to", "consent", "from"], "properties": { "text": { "type": "string", @@ -2857,10 +2857,6 @@ "track_clicks": { "type": "boolean", "description": "whether or not to turn on click tracking for the message" - }, - "from_number": { - "type": "string", - "description": "optional phone number to send the SMS from. If not provided, uses the default SMS program's messaging number" } } } @@ -2885,6 +2881,11 @@ "description": "the phone number of the recipient", "example": "+10000000000" }, + "from": { + "type": "string", + "description": "the phone number of the sender", + "example": "+10000000000" + }, "status": { "type": "string", "description": "the sending status of the message", diff --git a/spec/transactional.openapi.json b/spec/transactional.openapi.json index 04a51d1..fd82086 100644 --- a/spec/transactional.openapi.json +++ b/spec/transactional.openapi.json @@ -10891,6 +10891,7 @@ "required": [ "text", "to", + "from", "consent" ], "properties": { @@ -10905,10 +10906,9 @@ "pattern": "^\\+[1-9]\\d{1,14}$", "example": "+10000000000" }, - "from_number": { + "from": { "description": "The phone number to send the SMS from.", "type": "string", - "pattern": "^\\+[1-9]\\d{1,14}$", "example": "+10000000000" }, "consent": { @@ -11134,6 +11134,7 @@ "description": "The sending results for a single SMS recipient", "required": [ "to", + "from", "status", "_id" ], @@ -11144,6 +11145,11 @@ "pattern": "^\\+[1-9]\\d{1,14}$", "example": "+10000000000" }, + "from": { + "description": "The phone number of the sender", + "type": "string", + "example": "+10000000000" + }, "status": { "description": "The sending status of the recipient", "enum": [