Gitea REST API, LDAP

Hi everyone,
I need to use Gitea primarily via the REST API.
I have one question and the answer to it would mean if I can use Gitea or not.
Please, can someone tell me if I can create a user in Gitea with LDAP credentials (I know user already need to be present in LDAP) using the REST API.
If possible, please provide an example.
Thank you

Could you provide here what related research you’ve found in the forums or git repo and a little more information as to what you’ve tried already?