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

# Get Access Token

> Exchanges user credentials for an OAuth token. Send grant_type=password with a URL-encoded username and password, or grant_type=refresh_token with a refresh token from an earlier response. Tokens last 15 days and refresh tokens last 365 days. If the user has two-factor authentication enabled, the first request returns 202 (Accepted) and you resend it with the verification code in an OTP header. API keys do not use this endpoint.



## API Specification

The full API specification for this endpoint is available in the [documentation index](https://docs.virtuous.org/llms.txt).
