I remember you asking that question a few weeks ago, Im going to include my response from back then while you wait for a more detailed one, because I think its relevant, let me know if I should remove it to avoid repetition.
The Mexican Empire was in a good enough position that it negotiated a peace and defense treaty with the Comanche nation (Comancheria) in 1822: http://www.memoriapoliticademexico.org/Textos/2ImpDictadura/1822-Trat-ImpCom.html
Though obviously by 1830, Mexico was in no position to enforce these treaties due to succesive internal conflicts and both raids and unofficial commerce along the northern territories became common, though, relations with Comancheria were relatively stable.
I believe, in the case of the Apaches usually individual towns would sign individual treaties with individual warbands for both defense/raiding and commerce that wouldnt be recognized by other warbands so the towns would usually respond and viceversa.
I can find no such thing like a treaty with the Apaches, but in 1882 an informal deal was negotiated with the US in which Mexico would send 3,000 soldiers and help a force of 5,000 soldiers and 500 north american explorers to help to fight Geronimo (bear in mind the available forces the US would have been able to mobilize around this time probably wouldnt have surpased the 15,000 effectives total, so this wasnt a small force).
http://www.memoriapoliticademexico.org/Efemerides/7/29071882.html