Preheat the air fryer to 390°F for 3 minutes if the appliance manual recommends it.
Scrub and dry the sweet potatoes, prick each several times with a fork, and rub with optional oil and salt.
Place whole potatoes in the basket with space around them and no foil wrapping.
Cook at 390°F for 35 to 45 minutes, turning at 20 minutes. Begin checking an 8-ounce potato at 32 to 35 minutes.
A thin knife or skewer should slide through the center with little resistance; the center is commonly around 205°F to 212°F when very soft.
Rest 5 minutes before splitting, keeping hands clear of hot steam. Season after opening.