type @pid -> @api