Basic authentication
To log in to a specific Org context with basic authentication, specify the Org ID in the /api/rest/2.0/auth/session/login API request.
Token-based authentication
Use the following API endpoints:
These above endpoints also support just-in-time provisioning of users to Orgs and groups. For more information, see REST API v2 authentication.