> For the complete documentation index, see [llms.txt](https://docs.linkalock.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.linkalock.com/docs/api-docs/rest-api/authentication.md).

# Authentication

### a. Fetch Access Token

Returns the access token for a merchant.

Important: Access tokens expire every 90 days. Upon expiry, all API calls will return a 504 Error Code. A new access token must be obtained upon expiry. Ensure that fetch\_access\_token is properly implemented upon receipt of any 504 error.

### b. Test Access Token

Checks the validity of the access token
