Security through obscurity refers to relying upon keeping the details of the security mechanism secret. An API key itself is a secret, but the mechanism for how that key is generated and used is public knowledge.
In fact, the reason the best security mechanisms used today are so robust is specifically because they are made public in the first place.
In fact, the reason the best security mechanisms used today are so robust is specifically because they are made public in the first place.