Skip to content

API methods

All API methods. Base URL: https://panel.esmsy.pl/api/v1

Account

Account, balance and sender names.

Check the key

GET/ping

The simplest call: returns ok when the key works. Changes nothing.

Responses

200 OK
FieldTypeDescription
ok
required
booleanAlways true.
user_id
required
integerYour account id.
Response 200
{
  "ok": true,
  "user_id": 1042
}
401 Missing or wrong key, HTTP API disabled in the panel, IP outside the filter, or a blocked account.
Response 401
{
  "message": "Unauthenticated."
}
429 Rate limit exceeded. Wait the number of seconds in the Retry-After header.
Response 429
{
  "message": "Too Many Attempts."
}
curl "https://panel.esmsy.pl/api/v1/ping" \
  -H "X-Api-Key: $ESMSY_API_KEY" \
  -H "Accept: application/json"

Balance

GET/balance

The account's primary wallet.

Responses

200 OK
FieldTypeDescription
balance
required
numberFunds on the account.
credit
required
numberGranted credit limit.
viberCredit
required
numberNot used for SMS, you can ignore it.
realBalance
required
numberAmount available for sending: balance + credit.
currency
requirednullable
stringWallet currency, e.g. PLN.
isPrimary
required
booleanWhether this is the primary wallet that gets charged.
Response 200
{
  "balance": 250.4,
  "credit": 0,
  "viberCredit": 0,
  "realBalance": 250.4,
  "currency": "PLN",
  "isPrimary": true
}
401 Missing or wrong key, HTTP API disabled in the panel, IP outside the filter, or a blocked account.
Response 401
{
  "message": "Unauthenticated."
}
429 Rate limit exceeded. Wait the number of seconds in the Retry-After header.
Response 429
{
  "message": "Too Many Attempts."
}
curl "https://panel.esmsy.pl/api/v1/balance" \
  -H "X-Api-Key: $ESMSY_API_KEY" \
  -H "Accept: application/json"

Balance per channel

GET/balance/ext

The amount you can spend on SMS.

Responses

200 OK
FieldTypeDescription
balance
required
objectAvailable amount by channel.
balance.sms
required
numberAmount available for SMS.
currency
requirednullable
stringWallet currency.
Response 200
{
  "balance": {
    "sms": 250.4
  },
  "currency": "PLN"
}
401 Missing or wrong key, HTTP API disabled in the panel, IP outside the filter, or a blocked account.
Response 401
{
  "message": "Unauthenticated."
}
429 Rate limit exceeded. Wait the number of seconds in the Retry-After header.
Response 429
{
  "message": "Too Many Attempts."
}
curl "https://panel.esmsy.pl/api/v1/balance/ext" \
  -H "X-Api-Key: $ESMSY_API_KEY" \
  -H "Accept: application/json"

Sender names

GET/sources

Sender names that passed moderation and are active on the account. Only these are accepted as source.

Query parameters

FieldTypeDescription
channel
stringFilter by channel.
Example: sms

Responses

200 OK
FieldTypeDescription
data
required
Source[]The names.
data[].name
required
stringThe sender name the recipient sees.
data[].direction
required
stringRegistration scope: national or international.
Values: nationalinternational
data[].channel
required
stringChannel the name is active for.
data[].isDefault
required
booleanThe account default, used when source is omitted.
Response 200
{
  "data": [
    {
      "name": "MojaFirma",
      "direction": "national",
      "channel": "sms",
      "isDefault": true
    }
  ]
}
401 Missing or wrong key, HTTP API disabled in the panel, IP outside the filter, or a blocked account.
Response 401
{
  "message": "Unauthenticated."
}
429 Rate limit exceeded. Wait the number of seconds in the Retry-After header.
Response 429
{
  "message": "Too Many Attempts."
}
curl "https://panel.esmsy.pl/api/v1/sources?channel=sms" \
  -H "X-Api-Key: $ESMSY_API_KEY" \
  -H "Accept: application/json"

Pricing

Sending prices.

Price for a number

GET/price

Price of one SMS part to a number or a network. Pass phone, or the mcc + mnc pair.

Query parameters

FieldTypeDescription
phone
stringRecipient number. Required without mcc.
Example: 48500600700
mcc
stringMobile Country Code. Required without phone.
Example: 260
mnc
stringMobile Network Code. Required with mcc.
Example: 02
channel
stringChannel. Defaults to sms.
volume
integerPlanned number of messages when the price depends on volume. Defaults to 1.

Responses

200 OK
FieldTypeDescription
phone
requirednullable
stringThe normalized number; null when asked by mcc/mnc.
mcc
required
stringMobile Country Code.
mnc
required
stringMobile Network Code.
price
required
numberPrice of one SMS part.
currency
required
stringPrice currency.
Response 200
{
  "phone": "48500600700",
  "mcc": "260",
  "mnc": "02",
  "price": 0.11,
  "currency": "PLN"
}
404 No price is set for this network.
Response 404
{
  "error": "No price configured for this destination."
}
422 No phone and no mcc, an unknown mcc/mnc pair, or a number we found no network for.
Response 422
{
  "message": "Unable to resolve an operator for this phone number.",
  "errors": {
    "phone": [
      "Unable to resolve an operator for this phone number."
    ]
  }
}
401 Missing or wrong key, HTTP API disabled in the panel, IP outside the filter, or a blocked account.
Response 401
{
  "message": "Unauthenticated."
}
429 Rate limit exceeded. Wait the number of seconds in the Retry-After header.
Response 429
{
  "message": "Too Many Attempts."
}
curl "https://panel.esmsy.pl/api/v1/price?phone=48500600700" \
  -H "X-Api-Key: $ESMSY_API_KEY" \
  -H "Accept: application/json"

Price list

GET/price-list

The account's full current price list: your own negotiated one, or the standard one if you have none.

Responses

200 OK
FieldTypeDescription
currency
requirednullable
stringPrice list currency; null when there is none.
data
required
PriceListEntry[]The entries.
data[].mcc
required
stringMobile Country Code.
data[].mnc
required
stringMobile Network Code.
data[].country
required
integerInternal country id.
data[].channel
required
stringChannel.
data[].volumeFrom
required
integerThe price applies from this many messages.
data[].price
required
numberPrice of one SMS part.
Response 200
{
  "currency": "PLN",
  "data": [
    {
      "mcc": "260",
      "mnc": "02",
      "country": 37,
      "channel": "sms",
      "volumeFrom": 1,
      "price": 0.11
    }
  ]
}
401 Missing or wrong key, HTTP API disabled in the panel, IP outside the filter, or a blocked account.
Response 401
{
  "message": "Unauthenticated."
}
429 Rate limit exceeded. Wait the number of seconds in the Retry-After header.
Response 429
{
  "message": "Too Many Attempts."
}
curl "https://panel.esmsy.pl/api/v1/price-list" \
  -H "X-Api-Key: $ESMSY_API_KEY" \
  -H "Accept: application/json"

Messages

Sending SMS and delivery statuses.

Send an SMS

POST/messages

Sends one message to one recipient right away. The charge is taken on acceptance. Keep messageId to check the status.

Supports the Idempotency-Key header.

Request body (JSON)

FieldTypeDescription
phone
required
stringRecipient number: 48XXXXXXXXX, +48 XXX XXX XXX or 9 digits without the prefix (we add 48).
text
required
stringText. Up to 160 GSM-7 characters is one part; longer text is split by 153. Polish letters and other non-GSM-7 characters: 70 / 67.
channel
stringSending channel. Defaults to sms.
source
string ≤ 30Sender name active on your account (see GET /sources). Without it, the account's default sender is used.
ttl
integer 1–1440Message validity in minutes (1–1440). After that an undelivered message becomes expired.
flash
booleanFlash SMS: shown on screen at once and not saved to the inbox.

Responses

201 Message accepted.
FieldTypeDescription
messageId
requirednullable
integerMessage id for GET /messages/{id}.
campaignId
required
integerId of the send the message belongs to.
status
requirednullable
stringMessage status at acceptance.
Values: newpendingin_progresssentdeliveredviewedexpiredundeliveredstoppederrordeletedreserveduser_stoppedstop_flaginsufficient_fundsalpha_name_limitedmoderation
cost
required
numberAmount charged, for all parts.
Response 201
{
  "messageId": 918273,
  "campaignId": 55120,
  "status": "pending",
  "cost": 0.11
}
402 Not enough funds on the account.
Response 402
{
  "error": "insufficient_funds",
  "message": "Insufficient wallet balance to cover this request."
}
422 Invalid data (ValidationError), or the send cannot be launched (Error: no_chargeable_recipients when no number is valid; no_route when there is no route to the network).
Response 422
{
  "message": "The phone field is required.",
  "errors": {
    "phone": [
      "The phone field is required."
    ]
  }
}
401 Missing or wrong key, HTTP API disabled in the panel, IP outside the filter, or a blocked account.
Response 401
{
  "message": "Unauthenticated."
}
429 Rate limit exceeded. Wait the number of seconds in the Retry-After header.
Response 429
{
  "message": "Too Many Attempts."
}
curl -X POST "https://panel.esmsy.pl/api/v1/messages" \
  -H "X-Api-Key: $ESMSY_API_KEY" \
  -H "Idempotency-Key: order-2026-000123" \
  -H "Content-Type: application/json" \
  -d '{"phone":"48500600700","text":"Twój kod: 4821","source":"MojaFirma"}'
Request
{
  "phone": "48500600700",
  "text": "Twój kod: 4821",
  "source": "MojaFirma"
}

Message status

GET/messages/{id}

Current delivery status of a message sent from your account.

Path parameters

FieldTypeDescription
id
required
integermessageId from the POST /messages response.
Example: 918273

Responses

200 OK
FieldTypeDescription
id
required
integerMessage id.
phone
required
stringRecipient number.
channel
required
stringChannel.
status
required
stringDelivery status, see Statuses.
Values: newpendingin_progresssentdeliveredviewedexpiredundeliveredstoppederrordeletedreserveduser_stoppedstop_flaginsufficient_fundsalpha_name_limitedmoderation
cost
required
numberCost, for all parts.
part
required
integerAlways 1: a long SMS is one message.
parts
required
integerHow many parts the SMS was split into.
alphaName
requirednullable
stringSender name.
text
required
stringText.
scheduledAt
requirednullable
string (date-time)Scheduled send time.
sentAt
requirednullable
string (date-time)Time handed to the operator.
createdAt
requirednullable
string (date-time)Creation time.
failureReason
requirednullable
stringWhy it was not delivered; null when fine.
Values: sender_not_registeredinvalid_numberexpirednot_deliveredrejectedgateway_unavailable
Response 200
{
  "id": 918273,
  "phone": "48500600700",
  "channel": "sms",
  "status": "delivered",
  "cost": 0.11,
  "part": 1,
  "parts": 1,
  "alphaName": "MojaFirma",
  "text": "Twój kod: 4821",
  "scheduledAt": null,
  "sentAt": "2026-12-02T10:15:04+00:00",
  "createdAt": "2026-12-02T10:15:02+00:00",
  "failureReason": null
}
404 No such message on your account.
Response 404
{
  "error": "Message not found."
}
401 Missing or wrong key, HTTP API disabled in the panel, IP outside the filter, or a blocked account.
Response 401
{
  "message": "Unauthenticated."
}
429 Rate limit exceeded. Wait the number of seconds in the Retry-After header.
Response 429
{
  "message": "Too Many Attempts."
}
curl "https://panel.esmsy.pl/api/v1/messages/918273" \
  -H "X-Api-Key: $ESMSY_API_KEY" \
  -H "Accept: application/json"

Send to many recipients

POST/campaigns

The same text to a list of numbers, launched right away. Invalid numbers are skipped; if none is left you get 422 no_chargeable_recipients.

Supports the Idempotency-Key header.

Request body (JSON)

FieldTypeDescription
text
required
stringText, same rules as POST /messages.
recipients
required
string[]Recipient numbers, at least one. Same format as phone.
channel
stringSending channel. Defaults to sms.
source
string ≤ 30Sender name active on your account (see GET /sources). Without it, the account's default sender is used.
ttl
integer 1–1440Message validity in minutes (1–1440). After that an undelivered message becomes expired.
flash
booleanFlash SMS: shown on screen at once and not saved to the inbox.

Responses

201 Send launched.
FieldTypeDescription
id
required
integerSend id.
name
requirednullable
stringSend name.
channel
required
stringChannel.
type
required
stringsingle: one recipient, group: a list.
Values: singlegroup
status
required
stringSend status.
Values: newpendingin_progresssentsystem_stoppeduser_stoppederrordeletedcompleteresumestop_flaglockedtempsuspendedfrozen
moderationReason
requirednullable
stringModeration hold reason, if any.
text
required
stringText.
billingBasis
required
stringBilled per sent or per delivered.
Values: sentdelivered
deliveriesTotal
required
integerNumber of messages in the send.
totalCost
required
numberTotal cost.
alphaNameId
requirednullable
integerSender name id.
alphaName
requirednullable
stringSender name.
startedAt
requirednullable
string (date-time)Send start.
completedAt
requirednullable
string (date-time)Send completion.
createdAt
requirednullable
string (date-time)Creation time.
Response 201
{
  "id": 55121,
  "name": null,
  "channel": "sms",
  "type": "group",
  "status": "pending",
  "moderationReason": null,
  "text": "Promocja -20% do niedzieli. Sklep MojaFirma",
  "billingBasis": "sent",
  "deliveriesTotal": 2,
  "totalCost": 0.22,
  "alphaNameId": 311,
  "alphaName": "MojaFirma",
  "startedAt": "2026-12-02T10:20:00+00:00",
  "completedAt": null,
  "createdAt": "2026-12-02T10:20:00+00:00"
}
402 Not enough funds on the account.
Response 402
{
  "error": "insufficient_funds",
  "message": "Insufficient wallet balance to cover this request."
}
422 Invalid data (ValidationError), or the send cannot be launched (Error: no_chargeable_recipients when no number is valid; no_route when there is no route to the network).
Response 422
{
  "message": "The recipients field is required.",
  "errors": {
    "recipients": [
      "The recipients field is required."
    ]
  }
}
401 Missing or wrong key, HTTP API disabled in the panel, IP outside the filter, or a blocked account.
Response 401
{
  "message": "Unauthenticated."
}
429 Rate limit exceeded. Wait the number of seconds in the Retry-After header.
Response 429
{
  "message": "Too Many Attempts."
}
curl -X POST "https://panel.esmsy.pl/api/v1/campaigns" \
  -H "X-Api-Key: $ESMSY_API_KEY" \
  -H "Idempotency-Key: order-2026-000123" \
  -H "Content-Type: application/json" \
  -d '{"text":"Promocja -20% do niedzieli. Sklep MojaFirma","recipients":["48500600700","501234567"],"source":"MojaFirma"}'
Request
{
  "text": "Promocja -20% do niedzieli. Sklep MojaFirma",
  "recipients": [
    "48500600700",
    "501234567"
  ],
  "source": "MojaFirma"
}