Send username and password in GET or POST

we need to send user and password to access a file in the shared URL.
Is this possible?

The objective is, in addition to the password, those who want to see a shared file by URL, have to add a user.

Also, be able to send that information in the URL so they don’t have to use the password form.

Greetings.

Probably this is what you need. https://doc.owncloud.org/server/10.0/developer_manual/core/ocs-share-api.html