# Auto Login&#x20;

It allows you to automatically log in to odeme.paynet.com.tr system via API.

{% hint style="success" %}
<https://api.paynet.com.tr/v1/agent/autologin>
{% endhint %}

{% tabs %}
{% tab title="Request Parameters" %}

| Parameter Name | Type   | Required | Description       |
| -------------- | ------ | -------- | ----------------- |
| **user\_name** | string | Yes      | Paynet user name  |
| **agent\_id**  | string | Yes      | Paynet agent code |
| {% endtab %}   |        |          |                   |

{% tab title="Respone Parameters" %}

| Parameter Name   | Type   | Description                                                                                     |
| ---------------- | ------ | ----------------------------------------------------------------------------------------------- |
| **url**          | string | The URL address that will allow you to automatically log in to your odeme.paynet.com.tr account |
| **object\_name** | string | Object name of the returned API                                                                 |
| **code**         | string | The code of the return result. [See](/genel-bilgiler/hata-kodlari/doenues-kodlari.md)           |
| **message**      | string | Description of the return result code                                                           |
| {% endtab %}     |        |                                                                                                 |

{% tab title="Request" %}

```
{  
   "agent_id":"1001",
   "user_name":"paynet"
}
```

{% endtab %}

{% tab title="Response" %}

```
{
    "url": "https://pts.paynet.com.tr",
    "object_name": "auto_login",
    "code": 0,
    "message": "Başarılı İşlem"
}
```

{% endtab %}

{% tab title="Service Url" %}

| System          | URL                                                |
| --------------- | -------------------------------------------------- |
| **Live System** | <https://api.paynet.com.tr/v1/agent/autologin>     |
| **Test System** | <https://pts-api.paynet.com.tr/v1/agent/autologin> |
| {% 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://doc.paynet.com.tr/english/agent/auto-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.
