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

# Authentication

## Get the auth token.

> Endpoint for obtaining APP AUTH TOKEN with last\_login update.

```json
{"openapi":"3.0.3","info":{"title":"","version":"0.0.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}}},"paths":{"/ux/api-token/":{"post":{"operationId":"ux_api_token_create","description":"Endpoint for obtaining APP AUTH TOKEN with last_login update.","summary":"Get the auth token.","tags":["Authentication"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"description":""}}}}}}
```

## Get the auth token.

> Endpoint for obtaining APP AUTH TOKEN with last\_login update.

```json
{"openapi":"3.0.3","info":{"title":"","version":"0.0.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}}},"paths":{"/ux/api-token-auth/":{"post":{"operationId":"ux_api_token_auth_create","description":"Endpoint for obtaining APP AUTH TOKEN with last_login update.","summary":"Get the auth token.","tags":["Authentication"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"description":""}}}}}}
```

## Get encrypted data for the password string

> Endpoint for getting JS Encrypted Password.

```json
{"openapi":"3.0.3","info":{"title":"","version":"0.0.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}}},"paths":{"/ux/password_js_encrypt/":{"post":{"operationId":"ux_password_js_encrypt_create","description":"Endpoint for getting JS Encrypted Password.","summary":"Get encrypted data for the password string","tags":["Authentication"],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"description":""}}}}}}
```
