TelefonAIv1
SMS

The messages — yours and the ones the customer replied

The messages — yours and the ones the customer replied. ?direction= defaults to all, because what you want is a conversation; in and out cut it in half. ?phone= is normalised like every other number. Newest first. Inbound replies only exist on the clinic's OWN number: messages sent from here use a name as the sender, and you cannot reply to a name.

GET/v1/sms

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

limitintegerquery

Rows per page. 1–100, default 25.

offsetintegerquery

Rows to skip. Default 0.

directionstringquery

all (default), in or out.

phonestringquery

Only messages to or from this number.

handledbooleanquery

Only inbound replies that have (true) or have not (false) been dealt with. Requires direction=in. handled=false are the unanswered ones.

Request

curl --request GET \
  --url "https://api.telefonai.dk/v1/sms" \
  --header "Authorization: Bearer $API_NOEGLE"

Response

application/json

Success.

object

401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}