Code Examples

We have prepared a pack of code samples to illustrate how our Kerio API can be used.

Domains

Get all domains
Print all domains available on the server.

Get domains usage
Monitor how much space each domain uses.

Users

Get all users
Need to overview all users in each domain? No problem.

Get inactive users
Too many user accounts? How many of them are inactive? Cut your license expenses.

Get users with any administrator rights
One of frequent daily routine. Oh gosh! Are there really so many users with admin rights?

Get top 10 mailbox usage in each domain
Getting often out of space? Check this out how to easily get a quick overview of top 10 mailboxes.

Get users with quota exceeded 90%
If a user's mailbox exceeds its storage quota, he will not be able to receive emails. List these users.

Get user's membership
Sometimes you may need to know where a user belongs. You can see their group, mailing list or resource membership by running this script.

Check user availability
Do you want to create a new user and check whether the address is not in conflict with another entity?

Groups, Aliases, Mailing Lists

Copy group
Do you want to create a new group with the same users as in another local group? Run this script.

Get mailing list members
So many mailing lists, so many members in. Have you ever wondered how to make a summary?

This API is in development and not intended for stable use.

Example

Get admins
One of frequent daily routine. Oh gosh! Are there really so many users with admin rights? Who is allowed to see Kerio StaR or dial VPN?

This API is in development and not intended for stable use.

General

Get server info
Basic product info about license expiration and size, software version and connectivity (network).

System Health

Get CPU load info
See graph of CPU load history (last 24 hours).

Get memory usage
See graph of memory consumption history (last 24 hours).

Get storage usage
Here you can see how the used hard disk space is occupied by each data types.

Calls

Get active calls
Quick way to see who is calling who.

Get last 50 calls
Display the most recently dialed numbers.

Get dial plan
Simple address book with all the numbers of extensions, conferences, services. At a single spot.

Get recordings
Get recorded calls.

ariwillnotletyoupass