latestSwagger 2.02026-08-101561322.2 MB

3e4029d19684

Inbound Messages

Get a single inbound message

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Messages%3A%20Receive%0A/getInboundMessage" target="_blank">Try in sandbox</a><br>

get/api/v2/replies/{id}

Path parameters

idinteger required

The unique numeric ID for the inbound message.

Response

Returned when successful.

idinteger required

The ID of the inbound message.

senderstring required

The sender’s phone number.

receiverstring nullable required

The receiver’s phone number (i.e. your dedicated or shared reply number).

messageTimestring date-time required

The time when the message reached the Textmagic API endpoint.

textstring required

The text from the received message.

contactIdinteger nullable

Sender contact ID.

firstNamestring nullable

Sender contact first name.

lastNamestring nullable

Sender contact last name.

avatarstring nullable required
emailstring nullable

Sender email.

contactUserIdinteger nullable
userIdinteger nullable

Example response

{
  "id": 1782832,
  "sender": "447860021130",
  "receiver": "447624800500",
  "messageTime": "2012-11-28T18:38:28+0000",
  "text": "I Love Textmagic!",
  "contactId": 1,
  "firstName": "Charles",
  "lastName": "Conway",
  "avatar": "avatars/dummy_avatar.png",
  "email": "charles@example.com"
}