Add resolveId to the API, thanks to matthieu526.