api: code draft