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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://doc.paynet.com.tr/english/agent/auto-login.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
