Docs

Get message info

https://api.apifonica.com/v2/accounts/{accountSID}/messages/{messageSID}

Overview

This function gets the details of the message by its identifier.

Request example

The following cURL example demonstrates getting information on the specified message.

curl –X GET ‘https://api.apifonica.com/v2/accounts/{accountSID}/messages/{messageSID}’\
-u {accountSID}:{authToken}

Response example

   {
     "account_sid": "accff3ba4f1-4bbf-3aef-8ad9-706495e74888",
     "number_sid": "nume91e692b-0efa-344f-9a00-7125ecd850c7",
     "text": "It’s my first SMS sent via Apifonica API!",
     "created": "Wed, 15 Feb 2017 11:20:32 +0000",
     "direction": "outbound",
     "from": "48732231452",
     "to": "48732231451",
     "price": 0.0277,
     "message_sid": "msg1fb19eed-1d51-3ee2-a720-ec87b1816a74",
     "status": "delivered"
     "segment_count": 2,
     "channel": "sms",
     "tag": "My_Client1"
}

Response parameters

Parameter

Description

account_sid

Account identifier.

number_sid

Number identifier.

text

Message text.

created

Message creation date.

direction

Message direction.

Either inbound or outbound.

from

Sender’s phone number.

to

Recipient’s phone number.

price

The cost of sending the message (in EUR).

message_sid

Unique message identifier.

status

The current message status.

One of the following: queued, sent, received, delivered, failed.

segment_count

Number of parts in the message. Read more about message limits

channel

Can be one of the following: smstelegram

tag

Custom optional string field; can be used for custom client message filtering

Description

Account identifier.

Description

Number identifier.

Description

Message text.

Description

Message creation date.

Description

Message direction.

Either inbound or outbound.

Description

Recipient’s phone number.

Description

Sender’s phone number.

Description

The cost of sending the message (in EUR).

Description

Unique message identifier.

Description

The current message status.

One of the following:

queuedsentreceived

deliveredfailed.

Description

Number of parts in the message. Read more about message limits

Description

Can be one of the following: sms, telegram

Description

Custom optional string field; can be used for custom client message filtering