[Fix bug 977683] Set API key on subscribe

Set API key on subscribe call if sync=='Y'