Receive inbound SMS

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://smsapi.doc.barritel.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Barritel SMS API MCP server": {
    "url": "https://smsapi.doc.barritel.com/mcp"
  }
}

Close
POST https://webhook.example.com
application/json

Body

  • messageID integer

    The ID of the message

  • from string

    The msisdn the message was sent from

  • to string

    The msisdn the message was sent to

  • body string

    The message body

  • ref string

    Reference of the msisdn the message was sent to

  • tstamp string(date-time)

    The time at which the message was received

  • callback_type string

    The type of the callback/webhook

  • message_type string

    The type of the message

Responses

  • 200

    Successful operation

POST Inbound SMS
Request examples
{
  "messageID": 7,
  "from": "+447700900000",
  "to": "+447700900999",
  "body": "Test inbound message",
  "ref": "Oxford main office",
  "tstamp": "2024-06-03T10:05:22Z",
  "callback_type": "inbound_message",
  "message_type": "sms"
}