Made API id and key optional.