Instant messaging API