Session Management

Login with Basic Authentication

Use this endpoint for authentication if your organization allows basic authentication. A successful authentication attempt will result in an access_token that can be used to make authenticated requests to other API endpoints. The access_token automatically expires after a fixed duration, but you can also call the /logout endpoint to invalidate the access token at the end of your session.

Nexla supports various methods of authentication, including Basic (email/password), Google SSO, and custom SAML- or OIDC-based SSO. One or more of these methods might be allowed in any organization, depending on the configuration chosen by the administrators. Instead of using this endpoint to start a session programmatically, we recommend performing authentication through the Nexla UI and using the Nexla Session Token (available in Tools >> Nexla Session Token) to connect to the API programmatically.

Note: A user might belong to multiple organizations. This method initiates an authenticated session in their default organization.

post/token

Request

Response

Success

access_tokenstring
token_type'Bearer'
expires_ininteger

Changes

No recorded changes to this operation across all 1 revision of this API.