> For the complete documentation index, see [llms.txt](https://knowledgebase.offer18.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.offer18.com/pt/rede/api-da-rede/api-de-login.md).

# API de login

### Parâmetros Comuns

<table data-header-hidden><thead><tr><th>Query</th><th width="256.3333333333333"> </th><th> </th></tr></thead><tbody><tr><td><strong>Query</strong></td><td><strong>Tipo</strong></td><td><strong>Descrição</strong></td></tr><tr><td>mid</td><td>Inteiro</td><td>ID da Conta da Rede</td></tr><tr><td>api-key</td><td>String</td><td>Chave de API da Rede</td></tr><tr><td>secret-key</td><td>String</td><td>Chave Secreta da Rede</td></tr></tbody></table>

***

### Campos

| **Corpo** | **Tipo** |
| --------- | -------- |
| email     | String   |
| senha     | String   |

***

## API de Login de Afiliado

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

:link: [<mark style="color:azul;">**Clique para Testar a API de Login de Afiliado**</mark>](https://offer18.readme.io/reference/affiliate-login-api)

#### **Exemplo de Requisição API**

![](/files/655109c16dcfa6fc476ddb2df5a5bdb1aef09ed4)

#### **Resposta da 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 Login de Anunciante

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

:link: [<mark style="color:azul;">**Clique para Testar a API de Login de Anunciante**</mark>](https://offer18.readme.io/reference/advertiser-login-api)

#### Exemplo de Requisição API

<figure><img src="/files/64db4182a80ff0f871ef4e00fd085b5d54c683a2" alt=""><figcaption></figcaption></figure>

#### Resposta da 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 Login de Funcionário

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

#### Exemplo de Requisição API

<figure><img src="/files/5f7548736ba8259080a52bc65eb0899c4e8d8e35" alt=""><figcaption></figcaption></figure>

#### Resposta da 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"
}
```

***

## Login de Funcionário de Afiliado

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

#### Exemplo de Requisição API

<figure><img src="/files/661e96226a260b538528d06c910a5c7ddb5219a6" alt=""><figcaption></figcaption></figure>

#### Resposta da 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 interações seguras, sempre chame a API a partir do lado do servidor.**
{% endhint %}
