Introduction
The iLeads API lets you send SMS, receive delivery reports, manage contact lists and send verification codes – directly from your own systems. Every action is a POST request to a single URL; the request’s root element determines the action.
Base URLs
https://api.ileads.co.il/apihttps://api.ileads.co.il/api/testThe test URL returns the same response as a real request but doesn’t perform the action – useful for validating requests during development.
Format
Send XML or JSON; the response is returned in the same format. Set the header accordingly: Content-Type: application/xml or Content-Type: application/json.
Response structure
Every response includes a status field – 0 means success and any other value is an error code (see Error codes). The message field explains the result. The response root element varies by action.
Conventions
- Phone numbers: formatted as
5xxxxxxxxor05xxxxxxxx. - Dates: formatted as
dd/mm/yy hh:mm. - Attributes in JSON: an XML attribute (e.g. the
idofphone) is written in JSON under"$", and the value itself under"_". See the example in Send SMS.
Security
Postman
All actions are ready to try in Postman: download the collection. After importing, set the apiKey and username variables.
Authentication
Every request is sent with an API key in the Authorization header, using the Bearer scheme.
Creating a key
- Log in to the iLeads dashboard and open the API page.
- Click New key and name it – for example after the site or system that will use it.
- The key is shown only once – store it securely. It cannot be retrieved later.
Rules
- API keys start with
ilsk_. - Up to 5 active keys per account, all working concurrently – use a separate key per system, and rotate keys without downtime.
- Each key is valid for 24 months from creation. A reminder e-mail is sent 60 and 14 days before it expires.
- Revoking a key in the dashboard deactivates it immediately.
- Every request also carries the account username, in
user.username(XML:<user><username>). You’ll find it in the dashboard on the API page. A request without a username, or with another account’s username, is refused with code 409. - You can lock a key to your servers’ IP addresses (optional, up to 10 IPv4 or IPv6 addresses): in the dashboard, API page → IP addresses next to the key. A locked key works only from those addresses; a request from any other address is refused with code 411. The reply names the address the request came from.
user. We recommend replacing it with an API key.Access and limits
A regular API key is meant for websites: lead alerts, a message to the customer who left details or ordered, and verification codes (OTP). Bulk sending needs full API access, given only with iLeads approval.
Regular key (default)
- Available actions: send SMS, send and validate OTP codes, balance, delivery and incoming reports, and sender verification.
- Up to 5 recipients per message. A request with more recipients, or a send to a contact list, is refused with code 408.
- Bulk actions –
bulk, contact lists, campaigns and push URLs – are refused with code 407. - The exact same text sent to 50 different numbers within an hour looks like a campaign: sending pauses (code 410) until the iLeads team reviews and releases it. Lead alerts, order confirmations and OTP codes differ from each other, so they are never paused.
Full API access
Need bulk sending, or your own system for wide sending? Contact iLeads. After approval, every action is available to the account, with no recipient limit.
Verify a sender number
https://api.ileads.co.il/api<verify_phone>Verify a phone number for use as a message source (sender). A mobile receives a verification link; a landline gets call-verification instructions.
Parameters
| Name | Type | Description |
|---|---|---|
verify_phonerequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
phonerequired | string | A valid mobile or landline number to verify. May contain multiple fields. |
Get verified phones
https://api.ileads.co.il/api<getVerifiedPhones>Get all verified numbers in the account.
Parameters
| Name | Type | Description |
|---|---|---|
getVerifiedPhonesrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
is_subs | int | 1 – include your sub-accounts’ verified numbers. Otherwise, omit the field. |
Send SMS
https://api.ileads.co.il/api<sms>Send one message to one or many recipients – individual numbers, contact lists, or both.
Parameters
| Name | Type | Description |
|---|---|---|
smsrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
sourcerequired | string | Sender name or number. Up to 11 characters – digits (no + sign) and English letters. The source must be verified. |
destinationsrequired | object | Contains the recipients. May contain multiple phone and cl_id fields. |
phonerequired | string | Recipient phone number. Formatted as 5xxxxxxxx or 05xxxxxxxx. |
phone@id | string | Attribute of phone – your own external ID, used to query the delivery report (DLR) later. Leave empty if not needed. |
cl_id | string | ID of a contact list to send to. |
messagerequired | string | The message content. Up to 1005 characters. |
timing | string | Scheduled send time. If omitted, the message is sent immediately. Format: dd/mm/yy hh:mm |
tag | string | For Google’s automatic SMS verification – adds a tag to the beginning of the message. For example, tag=# with message=Hello world is sent as "<#>Hello world". |
add_dynamic | string | 1 – send using the contact list’s dynamic fields. Only one cl_id and no single phone tags are allowed. In the message use [DYNAMIC_FIELD1], [DYNAMIC_FIELD2], etc. |
add_unsubscribe | int | Opt-out option: 3 – remove by link, 2 – remove by reply SMS. Any other value – none. |
temp_bl | string | Filter out recipients who received a message in the last X days (1–14). |
includes_international | int | 1 – recipients include international numbers, 0 – they don’t. |
campaign_name | string | Campaign name shown in system reports. Up to 50 characters. |
links | object | Contains links to shorten inside the message. May contain multiple link fields. |
link | string | A link to shorten. Must have an id attribute. In the message, write [link-id] where the short link should appear. |
Send bulk SMS
https://api.ileads.co.il/api<bulk>Send different messages to different recipients in a single request – for example, a personal message per customer.
Parameters
| Name | Type | Description |
|---|---|---|
bulkrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
messagesrequired | array | Array of sms objects. Up to 2500 messages per request. |
sms → sourcerequired | string | Sender name or number. Up to 11 characters – digits and English letters. |
sms → destinationsrequired | object | The recipients of this message. |
sms → phonerequired | string | Recipient phone number. Formatted as 5xxxxxxxx or 05xxxxxxxx. Optional id attribute for delivery reports. |
sms → messagerequired | string | The message content. Up to 1005 characters. |
sms → links | object | Links to shorten in this message (link with an id attribute; use [link-id] in the message). |
cl_id | string | Contact list ID. |
timing | string | Scheduled send time. Format: dd/mm/yy hh:mm |
add_unsubscribe | int | 3 – remove by link, 2 – remove by reply SMS. |
temp_bl | string | Filter out recipients who received a message in the last X days (1–14). |
includes_international | int | 1 – includes international numbers. |
campaign_name | string | Campaign name in reports. Up to 50 characters. |
Get balance
https://api.ileads.co.il/api<balance>Check the remaining message balance of the account.
Parameters
| Name | Type | Description |
|---|---|---|
balancerequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
Send OTP code
https://api.ileads.co.il/api<send_otp>Send a 6-digit one-time code by SMS. The code is generated and stored by the system for later validation.
Parameters
| Name | Type | Description |
|---|---|---|
send_otprequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
phonerequired | string | Formatted as 5xxxxxxxx or 05xxxxxxxx. |
sourcerequired | string | The sender name or number shown to the recipient. |
app_id | int | Distinguishes between several applications using the service. Default: 1. |
max_tries | int | Number of attempts to enter the code, 3–5. Default: 3. |
valid_time | int | Code validity in minutes, 1–15. Default: 5. |
text | string | Custom text – must include [code]. Default: "the code is [code]". |
Validate OTP code
https://api.ileads.co.il/api<validate_otp>Check whether the code entered by the user is valid for the number.
Parameters
| Name | Type | Description |
|---|---|---|
validate_otprequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
phonerequired | string | Formatted as 5xxxxxxxx or 05xxxxxxxx. |
coderequired | int | The 6-digit code to validate. |
app_id | int | The same app_id used when sending the code. Default: 1. |
service_type | string | sms or whatsapp. Default: sms. |
Receiving updates (Push)
Instead of pulling reports, you can receive them automatically at your URL as soon as they arrive.
- Updates are sent as a
POSTrequest inapplication/x-www-form-urlencodedformat, using the same field names as the API responses. - Respond with
200 OK. Any other response delays the pushes, and after several failures pushing stops. - Set the URL in the web interface, or via Add push URL.
Delivery report (dlr)
Fields: external_id, status (see DLR statuses), he_message, en_message, date, phone, operaor (the field is spelled this way), shipment_id.
POST https://your-site.com/ileads/dlr
Content-Type: application/x-www-form-urlencoded
external_id=1234&status=102&he_message=הגיע+ליעד&en_message=Delivered
&date=01/04/26 16:05:05&phone=9725xxxxxxxx&operaor=Cellcom&shipment_id=12345678Incoming SMS (incoming_sms)
Fields: message, date, phone (sender), dest (your number).
message=This+is+a+sample+message&date=01/04/26 16:05:05
&phone=9725xxxxxxxx&dest=9725xxxxxxxxBlacklist (blacklist)
Fields: message, date, dest.
message=נחסם+מנוי&date=01/04/26 16:05:05&dest=9725xxxxxxxxAdd push URL
https://api.ileads.co.il/api<push_url>Set the URL updates are pushed to. It can also be set from the web interface.
Parameters
| Name | Type | Description |
|---|---|---|
push_urlrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
typerequired | string | Push type: dlr, incoming_sms, blacklist, dlr_whatsapp, incoming_whatsapp. |
urlrequired | string | A public http/https URL. |
Delivery reports (DLR)
https://api.ileads.co.il/api<dlr>Retrieve the delivery status of messages by the external id you attached when sending.
Parameters
| Name | Type | Description |
|---|---|---|
dlrrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
transactionsrequired | object | Contains the IDs to check. May contain multiple external_id fields. |
external_idrequired | string | The id you sent as the phone attribute when submitting the SMS. |
fromrequired | string | Start of the range. Format: dd/mm/yy hh:mm |
torequired | string | End of the range. Format: dd/mm/yy hh:mm |
Delivery reports by date
https://api.ileads.co.il/api<dlrByDate>Retrieve delivery reports by date range, without an external id.
Parameters
| Name | Type | Description |
|---|---|---|
dlrByDaterequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
transactionsrequired | object | Contains external_id. |
external_idrequired | string | May contain the value null. |
fromrequired | string | Start of the range. Format: dd/mm/yy hh:mm |
torequired | string | End of the range. Format: dd/mm/yy hh:mm |
Incoming SMS
https://api.ileads.co.il/api<incoming>Retrieve received SMS messages (recipient replies).
Parameters
| Name | Type | Description |
|---|---|---|
incomingrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
fromrequired | string | Start of the range. Format: dd/mm/yy hh:mm |
torequired | string | End of the range. Format: dd/mm/yy hh:mm |
Create contact list
https://api.ileads.co.il/api<newCL>Create one or more lists, including numbers and dynamic fields.
Parameters
| Name | Type | Description |
|---|---|---|
newCLrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
clrequired | object | Details of the list to create. May contain multiple cl elements. |
cl → namerequired | string | List name. |
destinationsrequired | object | The numbers to add to the list. |
destinationrequired | object | Details of a single number. |
phonerequired | string | Formatted as 5xxxxxxxx or 05xxxxxxxx. |
df1 … df6 | string | Dynamic fields for the number (e.g. first name, last name, city). |
Remove contact list
https://api.ileads.co.il/api<removeCL>Remove one or more lists by ID.
Parameters
| Name | Type | Description |
|---|---|---|
removeCLrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
clrequired | object | Contains the IDs of the lists to remove. |
idrequired | string | List ID. |
Add numbers to a list
https://api.ileads.co.il/api<addNumCL>Add numbers to an existing list.
Parameters
| Name | Type | Description |
|---|---|---|
addNumCLrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
clrequired | object | Details of the list to update. May contain multiple cl elements. |
idrequired | int | List ID. |
destinationsrequired | object | The numbers to add. |
destinationrequired | object | Details of a single number. |
phonerequired | string | Formatted as 5xxxxxxxx or 05xxxxxxxx. |
df1 … df6 | string | Dynamic fields for this number in this list. |
Remove numbers from a list
https://api.ileads.co.il/api<rmNumCL>Remove numbers from an existing list.
Parameters
| Name | Type | Description |
|---|---|---|
rmNumCLrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
clrequired | object | Details of the list to update. |
idrequired | int | List ID. |
destinationsrequired | object | The numbers to remove. |
phonerequired | string | Formatted as 5xxxxxxxx or 05xxxxxxxx. |
Get all contact lists
https://api.ileads.co.il/api<getCL>Get all lists in the account, including empty ones.
Parameters
| Name | Type | Description |
|---|---|---|
getCLrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
Get contact list by ID
https://api.ileads.co.il/api<getCLbyID>Get the numbers of a specific list.
Parameters
| Name | Type | Description |
|---|---|---|
getCLbyIDrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
clrequired | object | Contains the list ID. |
idrequired | int | List ID. |
Get blacklist
https://api.ileads.co.il/api<blacklist>Get blocked numbers by date range.
Parameters
| Name | Type | Description |
|---|---|---|
blacklistrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
fromrequired | string | Start of the range. Format: dd/mm/yy hh:mm |
torequired | string | End of the range. Format: dd/mm/yy hh:mm |
Remove from blacklist
https://api.ileads.co.il/api<rmNumBL>Remove numbers from the blacklist, with a reason.
Parameters
| Name | Type | Description |
|---|---|---|
rmNumBLrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
phonesrequired | object | Contains the phone numbers. |
phonerequired | string | A number to remove. |
reasonrequired | string | The reason for removal. |
Add to blacklist
https://api.ileads.co.il/api<addNumBL>Add numbers to the blacklist – messages will not be sent to them.
Parameters
| Name | Type | Description |
|---|---|---|
addNumBLrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
phonesrequired | object | Contains the phone numbers. |
phonerequired | string | A number to add. |
Cancel campaign
https://api.ileads.co.il/api<cancel>Cancel a scheduled send by campaign ID.
Parameters
| Name | Type | Description |
|---|---|---|
cancelrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
campaign_idrequired | int | The campaign ID. |
Cancel campaigns by name
https://api.ileads.co.il/api<cancel>Cancel all scheduled campaigns with a given name.
Parameters
| Name | Type | Description |
|---|---|---|
cancelrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
campaign_namerequired | string | The campaign name. |
Voice message (TTS)Requires activation
https://api.ileads.co.il/api<sms>The text is converted into a recorded voice call to the recipient. Identical to Send SMS, with an additional tts object. The call source is a system number.
Parameters
| Name | Type | Description |
|---|---|---|
smsrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
sourcerequired | string | Sender name or number (for SMS). Calls come from a system number. |
destinationsrequired | object | The recipients. |
phonerequired | string | Formatted as 5xxxxxxxx or 05xxxxxxxx. |
messagerequired | string | The text to read out. Up to 1005 characters. |
ttsrequired | object | Call settings. |
tts → typerequired | int | 2 – SMS to regular phones and a voice call to Kosher phones. 3 – both SMS and a call to everyone. 4 – voice call only to everyone. |
tts → rate | int | Speech rate, -10 to 10 (0 is normal). |
tts → repeat | int | Times the message plays in a call. Default: 2. |
tts → voice | string | ymMale – male voice (default), ymFemale – female voice. |
Voice delivery reportsRequires activation
https://api.ileads.co.il/api<ttsDlr>Delivery reports of voice (TTS) campaigns.
Parameters
| Name | Type | Description |
|---|---|---|
ttsDlrrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
shipment_id | string | The campaign ID. Digits only. |
fromrequired | string | Start of the range (required). Format: dd/mm/yy hh:mm |
torequired | string | End of the range (required). Format: dd/mm/yy hh:mm |
Get birthday campaignsRequires activation
https://api.ileads.co.il/api<get_birthday_campaigns>Get the birthday campaigns (automatic messages sent on the recipient’s birthday).
Parameters
| Name | Type | Description |
|---|---|---|
get_birthday_campaignsrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
Edit birthday campaignRequires activation
https://api.ileads.co.il/api<edit_birthday_campaign>Update the message of a birthday campaign.
Parameters
| Name | Type | Description |
|---|---|---|
edit_birthday_campaignrequired | object | Root element. Contains all other elements. |
userrequired | object | Account details. Contains username. |
usernamerequired | string | The account username, as shown in the dashboard on the API page. Must belong to the key’s account (otherwise code 409). |
campaign_idrequired | string | The campaign ID to edit. |
messagerequired | string | The new message. |
Error codes
The value returned in the status field of every response.
| Code | Meaning |
|---|---|
0 | Success. The message field varies by action, e.g. "SMS will be sent". |
1 | There was a problem parsing your XML. |
2 | A required field is missing. The message field names the missing field. |
3 | Username or password is incorrect and the API token is invalid. |
4 | Not enough credit. |
5 | No permission to send SMS at this time. |
6 | Process failure. |
7 | You cannot send in this format – send a group using bulk. Contact support for details. |
8 | All numbers are on a blocked list. |
9 | At least one of the destinations is too short or too long. |
10 | Username or password is incorrect and the API token has expired. |
11 | The API token is valid but doesn’t match the username, or a newer token exists and should be used instead. |
12 | When sending SMS: not enough money. When validating an OTP code: unverified code. |
401 | The API key is invalid or was revoked. |
402 | The API key has expired. Create a new key in the dashboard. |
403 | This action is not available with an API key (or a contact-list send with a key that has a message quota). With status 406, 407, 408, 410 or 411 – see that code. |
406 | The account is inactive because the balance ran out. Only balance and reports work until a package is bought. |
407 | This action needs full API access (bulk sending). Contact iLeads. |
408 | More than 5 recipients in one message, or a contact-list send, with a regular key. |
409 | The request has no username, or the username does not match the API key. |
410 | Sending is paused: the same text went to many numbers, like a campaign. Contact iLeads support. |
411 | The request came from an IP address that is not allowed for this key. Add the address in the dashboard (API page → IP addresses), or remove the lock. |
429 | The API key's message quota is used up. |
502 | Action type not valid. |
503 | Username does not exist in your account. |
504 | Current token not found. |
510 | Invalid verify_phone request – no phones to verify. |
511 | You don’t have permission for this function. |
515 | Unverified source. See “Verify a sender number”. |
517 | A push URL already exists for this type. |
714 | Invalid content in parameter temp_bl. |
715 | All numbers have been temporarily blocked. |
933 | Phone or reason not valid. |
944 | Some of the numbers are not in the blacklist. |
955 | Campaign already cancelled. |
966 | Campaign already sent. |
970 | Campaigns were not cancelled. Contact support. |
977 | Campaign does not belong to the customer or does not exist. |
980 | Invalid link. |
981 | Error creating hash. |
986 | Add unsubscribe error – invalid value. |
988 | The contact list entered does not exist. |
989 | The message is too long or too short, or the campaign name is too long. |
990 | Amount must be smaller than your credits. |
991 | The amount must contain only digits. |
992 | The source is too long or too short. |
993 | The password is too long or too short. |
994 | Username already exists. |
995 | The username is too long or too short. |
996 | The name is too long or too short. |
997 | Not a valid command sent. |
998 | There was an unknown error in the request. |
999 | Contact support. |
DLR statuses
The value returned in the status field of each transaction in delivery reports and pushes.
| Status | Meaning |
|---|---|
-1 | Sent – no delivery confirmation |
0 | Delivered |
1 | Failed |
2 | Timeout |
3 | Failed |
4 | Failed – cellular |
5 | Failed |
6 | Failed |
7 | No balance |
14 | Failed – cellular, after store & forward |
15 | Kosher number |
16 | No permission for this sending time |
17 | Blocked for advertising messages |
18 | Invalid message |
101 | Not delivered |
102 | Delivered |
103 | Expired |
104 | Deleted |
105 | Not delivered |
106 | Not delivered |
107 | Not delivered |
108 | Rejected |
109–132 | Not delivered |
201 | Blocked by request |
747 | Subscriber is outside local network coverage |
998 | No permission |
999 | Unknown error |