api: add creation of links