SSO (Single Sign On)

Login users to vcita using a Single Sign On method.
The SSO process consists of two simple steps:

1. Creating a one-time token

curl --location --request GET '{STAFF_UID}' \
--header 'Authorization: Token token="{DIRECTORY_TOKEN}"'


  "sso_token": "aaabbbcccddd111222333444",
  "expires_at": 1666169052


Token expiration time

The returned token will remain valid for 30 minutes (expires_at value is in microseconds).

→ Use the business_uid to log in users with admin access.
→ Alternately, use the staff_uid to log in users as specific staff members (Please refer to the staff API reference).

2. Build the SSO login URL

Simply copy-paste the below URL and replace {SSO_TOKEN} with the token you received in step 1.{SSO_TOKEN}

Deep links

If you want the user to land on a specific page on vcita right after the SSO (like a specific invoice page, etc,), you can append the "redirect_to" query param to the SSO URL, and specify the desired path.
The path should be the relative path to the main application domain, and should start from "/app/PATH", like so:{SSO_TOKEN}&redirect_to=/app/invoices/ru7q9qlt7cp4hfni

This will land the user here: