I forgot copytruncate option in my config file, now it's working :
/etc/logrotate.d/api :
/home/api/log/api_output.log {
#size 50k
daily
dateext
missingok
rotate 7
compress
delaycompress
notifempty
#create 644 root
copytruncate
}