decode api