Is the sandbox API same as the production API

The document states the payment link API: https://connect.squareup.com/v2/online-checkout/payment-links
Is it same for the production and sandbox?

The links will be different for each environment. For example here is sandbox:

This is production: