Add id to api.

Signed-off-by: Maël Lavault <mael.lavault@mailz.org>