Does the apsis of an orbit refer to its distance from center of mass, distance from surface, or distance from barycenter?

I’m assuming center of mass but some things I have seen online are vague in a way that makes me doubt. Some things imply barycenter, but others talk about the individual center of masses of each object. Can I have clarification on this?