api: use the correct config