# /login

## login form inputs.

<mark style="color:green;">`POST`</mark> `geolytix.xyz/login`

This endpoint checks user credentials and will either redirect to the client interface with a temporary access token or redirect to the login view.

#### Query Parameters

| Name     | Type   | Description                                        |
| -------- | ------ | -------------------------------------------------- |
| email    | string | The email address associated with an user account. |
| password | string | The user account password.                         |

{% tabs %}
{% tab title="301 A /login post will always return a redirect." %}

```
If valid credentials were provided the redirect will access the client interface with a temporary access token.

If invalid credentials were provided the redirect will open the login view with a message in regard to the login failure.
```

{% endtab %}
{% endtabs %}


---

# 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://geolytix.gitbook.io/xyz-developer-guide/routes/auth/login.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.
