Use API for resources.