Can AMI create pjsip endpoint?

I want to automate the process of creating pjsip extensions.
Does ami know how to create endpoints ?
Is there another / better solution to programmatically create endpoints ?

No. You can use the FreePBX GraphQL API to create extensions.

after hours of … pain … I managed to get create an extension using GraphQL api then realized that I can not configure the extension password and there is no method to configure the call recording options

any other suggestions on how to create extensions and have access to full configuration for password, call recording, max contacts, call forwarding … ?