> For the complete documentation index, see [llms.txt](https://doc.paynet.com.tr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.paynet.com.tr/english/agent/auto-login.md).

# 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 %}   |                                                    |
