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://app.ileads.co.il/apihttps://app.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 token and username variables.
Authentication
Every request is sent with an API token in the Authorization header, using the Bearer scheme.
Creating your first token
- Log in to the web interface, open the “Settings” tab and choose “API Token Management”.
- Click “Create New Token”.
- The token is shown only once – store it securely. It cannot be retrieved later.
Rules
- Up to 5 active tokens per user, all working concurrently. Each token has a unique name.
- Each token is valid for 24 months from creation. The expiration date is returned in
expiration_dateand is not extended. - Additional tokens can also be created via the API using an existing valid token – see Generate an API token.
- Deleting a token in the interface deactivates it immediately.
Generate an API token
https://app.ileads.co.il/api<getApiToken>Create a new token, or retrieve the most recent one, using an existing valid token. A parent account can create a token for one of its sub-accounts.
Parameters
| Name | Type | Description |
|---|---|---|
getApiTokenrequired | object | Root element. Contains all other elements. |
user → usernamerequired | string | Admin (parent) account username – the account whose token is sent with the request. |
usernamerequired | string | The username of the account the token is requested for. |
actionrequired | string | "new" – create a new token. "current" – retrieve the most recent token. |
Verify a sender number
https://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
phonerequired | string | A valid mobile or landline number to verify. May contain multiple fields. |
Get verified phones
https://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
is_subs | int | 1 – include your sub-accounts’ verified numbers. Otherwise, omit the field. |
Send SMS
https://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
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://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
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://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
Send OTP code
https://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
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://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
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://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
typerequired | string | Push type: dlr, incoming_sms, blacklist, dlr_whatsapp, incoming_whatsapp. |
urlrequired | string | A public http/https URL. |
Delivery reports (DLR)
https://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
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://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
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://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
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://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
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://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
clrequired | object | Contains the IDs of the lists to remove. |
idrequired | string | List ID. |
Add numbers to a list
https://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
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://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
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://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
Get contact list by ID
https://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
clrequired | object | Contains the list ID. |
idrequired | int | List ID. |
Get blacklist
https://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
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://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
phonesrequired | object | Contains the phone numbers. |
phonerequired | string | A number to remove. |
reasonrequired | string | The reason for removal. |
Add to blacklist
https://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
phonesrequired | object | Contains the phone numbers. |
phonerequired | string | A number to add. |
Cancel campaign
https://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
campaign_idrequired | int | The campaign ID. |
Cancel campaigns by name
https://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
campaign_namerequired | string | The campaign name. |
Voice message (TTS)Requires activation
https://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
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://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
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 |
Add sub-accountRequires activation
https://app.ileads.co.il/api<addSub>Create a sub-account under your account, with a message balance.
Parameters
| Name | Type | Description |
|---|---|---|
addSubrequired | object | Root element. Contains all other elements. |
userrequired | object | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
userDetailsrequired | object | The new account details. |
userDetails → namerequired | string | Account name. |
userDetails → usernamerequired | string | Username for the account. |
userDetails → passwordrequired | string | Password for the account. |
userDetails → sourcerequired | string | Default source (sender). |
userDetails → amountrequired | int | Message credits to assign. Digits only. |
userDetails → otpPhone | string | Phone number for OTP authentication. |
Update sub-account balanceRequires activation
https://app.ileads.co.il/api<updateAmountSub>Update the message balance of a sub-account.
Parameters
| Name | Type | Description |
|---|---|---|
updateAmountSubrequired | object | Root element. Contains all other elements. |
userrequired | object | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
userDetailsrequired | object | The account to update. |
userDetails → usernamerequired | string | The sub-account username. |
userDetails → amountrequired | int | Message credits to assign. |
userDetails → amount_int | int | Update a monetary amount (international balance) instead of message credits. |
Get sub-account balancesRequires activation
https://app.ileads.co.il/api<getBlanceSubs>Get the balance of all sub-accounts.
Parameters
| Name | Type | Description |
|---|---|---|
getBlanceSubsrequired | object | Root element. Contains all other elements. |
userrequired | object | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
Get birthday campaignsRequires activation
https://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
Edit birthday campaignRequires activation
https://app.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 | Contains the user element. |
usernamerequired | string | The username of the account by which you are recognized in the system. |
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. |
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 |