Basic authentication
To log in to a specific Org context with basic authentication, specify the Org ID in the /tspublic/v1/session/login
API request.
Token-based authentication
For trusted authentication, use the /tspublic/v1/session/auth/token
API endpoint. If a user is mapped to a specific org, you can pass the orgid
in the API request to obtain an authentication token to log in the user to the relevant Org context.
You can also create a user just-in-time and assign Orgs, groups, and privileges in this API call.
For more information, see REST API v1 authentication.