> ## Documentation Index
> Fetch the complete documentation index at: https://developers.circularo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 1. User Logins (Session Tokens)

> [!WARNING]
>
> You are viewing the documentation of release 26.1, which is no longer the current one. [Go to the documentation of the current release 26.2](https://developers.circularo.com/).

## Session-based Authentication Overview

Session-based authentication is the primary method for authenticating users in the Circularo system. It provides a secure way to access the API.

### What are Session Tokens?

Session tokens are temporary authentication credentials that:

* Provide secure access to the Circularo API after successful authentication
* Are valid for 30 days by default
* Can be used across multiple API requests
* Eliminate the need to send credentials with each request

### Authentication Methods

Circularo supports multiple authentication methods to accommodate different security requirements:

* **Standard Authentication**: Simple username and password login
* **Multi-Factor Authentication (MFA)**: Additional verification step after password entry
* **Recovery Code Authentication**: Emergency access when standard MFA methods are unavailable

### Token Lifecycle

* **Creation**: Generated upon successful authentication
* **Validation**: Can be checked for validity
* **Usage**: Included as a query parameter in API requests
* **Termination**: Invalidated through explicit logout or expiration

### Security Considerations

* Store session tokens securely and never expose them in client-side code
* Implement proper token management including logout when sessions are no longer needed
* For server-to-server integrations, consider using API tokens instead
* Enable Multi-Factor Authentication for sensitive accounts

> [!WARNING]
>
> Session tokens provide full access to a user's account. Always handle them with appropriate security measures.

### Common Use Cases

* **Interactive web applications**: User sessions in browser-based interfaces
* **Mobile applications**: Authentication for native mobile clients
* **Short-lived integrations**: Temporary access for one-time operations

> [!NOTE]
>
> For long-lived server-to-server integrations, API tokens (covered in the next section) are recommended over session tokens.

### Authentication Flow

A typical authentication flow involves:

1. Authenticating with username and password
2. Completing any required MFA challenges (if enabled)
3. Using the resulting session token for API operations
4. Checking token validity when needed
5. Logging out to terminate the session when finished

The scenarios in this section demonstrate each step of this process in detail.

## In this section

> [card] [1. Authentication with username and password](https://developers.circularo.com/26.1/scenarios/1-authentication-and-security/1-user-logins-session-tokens/1-authentication-with-username-and-password.md)
>
> Session-based authentication is the standard method for authenticating users in the Circularo system.

> [card] [2. Session Token Status Check](https://developers.circularo.com/26.1/scenarios/1-authentication-and-security/1-user-logins-session-tokens/2-session-token-status-check.md)
>
> Before making API calls that require authentication, it's important to verify whether your existing session token is still valid.

> [card] [3. Login with MFA](https://developers.circularo.com/26.1/scenarios/1-authentication-and-security/1-user-logins-session-tokens/3-login-with-mfa.md)
>
> Multi-Factor Authentication (MFA) provides an additional layer of security for your Circularo account by requiring a second verification step after entering your password.

> [card] [4. Login with Recovery Code](https://developers.circularo.com/26.1/scenarios/1-authentication-and-security/1-user-logins-session-tokens/4-login-with-recovery-code.md)
>
> Recovery codes provide an emergency access method when you cannot use your standard Multi-Factor Authentication (MFA) methods.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.