Cut the onions in half and then finely slice them. Mix the salt into them and set aside for an hour or up to four hours.
After an hour the onions will be limp and moist. Squeeze the onions to release the water into the bowl. Add the remaining ingredients to the onions, being careful not to add to much gram flour. You should easily be able to pick up a ball of the onion mixture.
Divide the mixture in to small bhajis.
Heat your air fryer to 176c/380f. Spray the basket with oil spray generously.
Place the bhajis in the basket. You will need to cook these in batches.
After 15 minutes, your first batch will be cooked to perfection.