Skip to main content
POST
/
v1
/
messages
curl --request POST \
  --url https://api.iletiniz.com/v1/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "+905551234567",
  "body": "Doğrulama kodunuz: 482931",
  "sender": "FIRMA"
}
'
{
  "job_id": "k7m4n2p9q8r5s1t6",
  "status": "queued",
  "to": "+905551234567",
  "provider": "netgsm",
  "created_at": "2023-11-07T05:31:56Z",
  "template": "<string>",
  "template_key": "<string>",
  "error": {
    "code": "INVALID_RECIPIENT",
    "message": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.iletiniz.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
to
string
required

SMS için TR cep numarası (+90..., 0..., 5...). Telegram için chat_id (123456789) veya @kullanici_adi.

Required string length: 1 - 64
body
string

Mesaj gövdesi. template ile birlikte kullanılamaz.

Required string length: 1 - 1600
template
string

Şablon key'i. Verilirse body boş olmalı.

Pattern: ^[a-z0-9_]{1,64}$
variables
object

Şablon değişkenleri. Yalnızca template ile birlikte.

sender
string

SMS için onaylı msgheader. Telegram'da yok sayılır.

Maximum string length: 32
provider
string

Belirli bir sağlayıcı kodu (netgsm, verimor, iletimerkezi, mutlucell, vatansms, telegram, whatsapp).

Maximum string length: 64
Pattern: ^[a-z0-9_-]+$

Response

Mesaj alındı

job_id
string
required
Example:

"k7m4n2p9q8r5s1t6"

status
enum<string>
required
Available options:
queued,
sent,
failed
to
string
required
Example:

"+905551234567"

provider
string
required
Example:

"netgsm"

created_at
string<date-time>
required
template
string
template_key
string
error
object