# API de inicio de sesión

### Parámetros comunes

<table data-header-hidden><thead><tr><th>Consulta</th><th width="256.3333333333333"> </th><th> </th></tr></thead><tbody><tr><td><strong>Consulta</strong></td><td><strong>Tipo</strong></td><td><strong>Descripción</strong></td></tr><tr><td>mid</td><td>Entero</td><td>ID de cuenta de la red</td></tr><tr><td>api-key</td><td>Cadena</td><td>Clave API de la red</td></tr><tr><td>secret-key</td><td>Cadena</td><td>Clave secreta de la red</td></tr></tbody></table>

***

### Campos

| **Cuerpo** | **Tipo** |
| ---------- | -------- |
| correo     | Cadena   |
| contraseña | Cadena   |

***

## API de Inicio de Sesión de Afiliado

```
POST https://api.offer18.com/api/m/affiliate_login
```

:link: [<mark style="color:azul;">**Haz clic para probar la API de Inicio de Sesión de Afiliado**</mark>](https://offer18.readme.io/reference/affiliate-login-api)

#### **Ejemplo de solicitud API**

![](/files/488a37aa632141b0a8f112c5c0f55273e935fd22)

#### **Respuesta de la API**

```
{
    "status": "200",
    "response": "affiliate_login_validated",
    "redirect_path": "https://example000.offer18.com/af/redirect?s=0000000000&net_api_log_session=00000000000000000000000000000000000000000000000000000000000==",
    "affiliate_id": "000000"
}
```

***

## API de Inicio de Sesión de Anunciante

```
POST https://api.offer18.com/api/m/advertiser_login
```

:link: [<mark style="color:azul;">**Haz clic para probar la API de Inicio de Sesión de Anunciante**</mark>](https://offer18.readme.io/reference/advertiser-login-api)

#### Ejemplo de solicitud API

<figure><img src="/files/2a98f3d4f4420e819b6d7d530c7d0444510e757e" alt=""><figcaption></figcaption></figure>

#### Respuesta de la API

```
{
    "status": "200",
    "response": "advertiser_login_validated",
    "redirect_path": "https://example000.offer18.com/ad/redirect?s=0000000000&net_api_log_session=00000000000000000000000000000000000000000000000000000000000=",
    "advertiser_id": "000000"
}
```

***

## API de Inicio de Sesión de Empleado

```
POST https://api.offer18.com/api/m/employee_login
```

#### Ejemplo de solicitud API

<figure><img src="/files/49d853b919b18845ff633075f354bfb386839282" alt=""><figcaption></figcaption></figure>

#### Respuesta de la API

```
{
    "status": "200",
    "response": "employee_login_validated",
    "redirect_path": "https://example000.offer18.com/employee/redirect?s=0000000000&net_api_log_session=00000000000000000000000000000000000000000000000000000000000=",
    "employee_id": "0011"
}
```

***

## Inicio de Sesión de Empleado Afiliado

```
POST https://api.offer18.com/api/m/affiliate_employee_login
```

#### Ejemplo de solicitud API

<figure><img src="/files/b2f327bb6bc2dea2091213e94496fa4067b8a710" alt=""><figcaption></figcaption></figure>

#### Respuesta de la API

```
{
    "status": "200",
    "response": "affiliate_employee_login_validated",
    "redirect_path": "https://example000.offer18.com/afe/redirect?s=0000000000&net_api_log_session=00000000000000000000000000000000000000000000000000000000000=",
    "affiliate_id": "00000",
    "login_affiliate_employee_id": "011"
}
```

{% hint style="info" %}
**Para interacciones seguras, siempre llame a la API desde el lado del servidor.**
{% endhint %}


---

# 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://knowledgebase.offer18.com/es/red/api-de-la-red/api-de-inicio-de-sesion.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.
