# Authentication

Authentication endpoints

## Authenticate user

> Authenticates with username and password and returns a bearer token.

```json
{"openapi":"3.0.3","info":{"title":"Lineaje Fix Plan Workflow API","version":"1.0.0"},"tags":[{"name":"Authentication","description":"Authentication endpoints"}],"servers":[{"url":"https://lineaje-identity-service.v2.prod.veedna.com","description":"Default server for authentication requests"}],"paths":{"/lineajeidentity/api/v1/login":{"post":{"tags":["Authentication"],"summary":"Authenticate user","description":"Authenticates with username and password and returns a bearer token.","operationId":"authenticationLogin","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}}},"responses":{"200":{"description":"Authentication successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}}}}}},"components":{"schemas":{"LoginRequest":{"type":"object","required":["username","password"],"properties":{"username":{"type":"string","description":"Lineaje username"},"password":{"type":"string","format":"password","description":"Lineaje password"}}},"LoginResponse":{"type":"object","required":["accessToken","tokenType","expiresIn","scope"],"properties":{"accessToken":{"type":"string","description":"Access token to be used in Authorization header"},"tokenType":{"type":"string"},"expiresIn":{"type":"integer","description":"Token expiration time in seconds"},"scope":{"type":"string"}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.veedna.com/gold-open-source-gos/gold-catalog/oss-packages/ai-remediate/authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
