SSO via link on personal website

I’m building a personel website and want users that login to that website be able to click on a link and SSO login to the invoiceNinja client portal. Is there a way to SSO from my personal website to the SelfHosted Invoice Client Portal

Hi,

One option may be to use the API to access the contact’s client portal link to redirect them.

Oeps, Then I need some help.

Can I call an url with example the username and then let the user enter a password or

I found the url :

http://ninja.test/api/v1/login
-H “Content-Type:application/json”
-d ‘{“email":"demo@invoiceninja.com”,“password”:“Password0”}’
-H “X-Requested-With: XMLHttpRequest”;

Please your advise

TIA

To use the API you’d want to create a token in the app on Settings > Account Management and then set the token in the header.

There are some sample client requests here:

https://invoiceninja.github.io/docs/api/clients/

Thanks. Gonna studie that page and see if I will be able to get this to work.