POST api/sms

Sends a SMS.

Request Information

URI Parameters

None.

Body Parameters

Recipient phone numbers and SMS body.

MessageData
NameDescriptionTypeAdditional information
PhoneNumbers

List of phone numbers.

Collection of string

None.

Body

Body of the message.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PhoneNumbers": [
    "sample string 1",
    "sample string 2"
  ],
  "Body": "sample string 1"
}

application/xml, text/xml

Sample:
<MessageData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/PuntoNeutro.Core.Messages">
  <Body>sample string 1</Body>
  <PhoneNumbers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </PhoneNumbers>
</MessageData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The created SMS with HTTP 201 and its resource URL in the Location header.

Message
NameDescriptionTypeAdditional information
Id

Message identifier.

integer

None.

IdParent

Parent message identifier.

integer

None.

IdUser

User identifier of the sender of the message.

integer

None.

IdUserRecipient

User identifier of the recipient of the message.

integer

None.

Recipient

Phone number of the recipient of the message.

string

None.

SentDate

Date and time the message was sent.

date

None.

IdSmsType

Type of message.

SmsCertificationType

None.

CertificatePN

Code of the sending request certificate.

string

None.

CertificateOperator

Code of the delivery certificate.

string

None.

SendingStatus

State of the message.

SmsStateId

None.

Text

Content of the message.

string

None.

IP

IP address from where the message was sent.

string

None.

SmsSenderId

SMS sender identifier used to send the message.

string

None.

Rsn

Error code.

integer

None.

IdTalk

Communication identifier.

integer

None.

ChildMessages

Child messages.

Collection of Message

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "IdParent": 1,
  "IdUser": 2,
  "IdUserRecipient": 1,
  "Recipient": "sample string 3",
  "SentDate": "2026-11-12T10:32:13.8407339+01:00",
  "IdSmsType": "None",
  "CertificatePN": "sample string 5",
  "CertificateOperator": "sample string 6",
  "SendingStatus": "Failed",
  "Text": "sample string 7",
  "IP": "sample string 8",
  "SmsSenderId": "sample string 9",
  "Rsn": 1,
  "IdTalk": 1,
  "ChildMessages": [
    {
      "$ref": "1"
    },
    {
      "$ref": "1"
    }
  ]
}

application/xml, text/xml

Sample:
<Message xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/PuntoNeutro.Core.WebApi">
  <CertificateOperator>sample string 6</CertificateOperator>
  <CertificatePN>sample string 5</CertificatePN>
  <ChildMessages>
    <Message z:Ref="i1" />
    <Message z:Ref="i1" />
  </ChildMessages>
  <IP>sample string 8</IP>
  <Id>1</Id>
  <IdParent>1</IdParent>
  <IdSmsType>None</IdSmsType>
  <IdTalk>1</IdTalk>
  <IdUser>2</IdUser>
  <IdUserRecipient>1</IdUserRecipient>
  <Recipient>sample string 3</Recipient>
  <Rsn>1</Rsn>
  <SendingStatus>Failed</SendingStatus>
  <SentDate>2026-11-12T10:32:13.8407339+01:00</SentDate>
  <SmsSenderId>sample string 9</SmsSenderId>
  <Text>sample string 7</Text>
</Message>