> 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-criacao-de-afiliado-e-anunciante.md).

# API de criação de afiliado e anunciante

### **Parâmetros Comuns**

<table data-header-hidden><thead><tr><th width="173.50289176535387">Consulta</th><th width="150"> </th><th width="426.2"> </th></tr></thead><tbody><tr><td><strong>Consulta</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>

### **Ação**

<table data-header-hidden><thead><tr><th width="207.16379474883627"></th><th width="194.99924751175493"></th><th></th></tr></thead><tbody><tr><td><strong>Consulta</strong></td><td><strong>Tipo</strong></td><td><strong>Descrição</strong></td></tr><tr><td>action</td><td>String</td><td><strong>Valores permitidos:</strong><br>create / update / delete</td></tr><tr><td>affiliate_id</td><td>Inteiro</td><td>Obrigatório na atualização e exclusão de afiliado</td></tr><tr><td>advertiser_id</td><td>Inteiro</td><td>Obrigatório na atualização e exclusão de anunciante</td></tr></tbody></table>

***

### Lista de Campos de Dados

<table data-header-hidden><thead><tr><th width="150"></th><th width="150"></th><th width="365.2"></th></tr></thead><tbody><tr><td><strong>Consulta</strong></td><td><strong>Tipo</strong></td><td><strong>Descrição</strong></td></tr><tr><td>first_name</td><td>String</td><td>Nome do afiliado / anunciante</td></tr><tr><td>last_name</td><td>String</td><td>Sobrenome do afiliado / anunciante</td></tr><tr><td>signup_ip</td><td>IPv4 / IPv6</td><td>Endereço IP do dispositivo no qual a API está sendo usada</td></tr><tr><td>email</td><td>String</td><td>E-mail do afiliado / anunciante</td></tr><tr><td>password</td><td>String</td><td>Senha para login futuro</td></tr><tr><td>mobile</td><td>int</td><td>Número de celular do afiliado / anunciante</td></tr><tr><td>company</td><td>String</td><td>Nome da empresa</td></tr><tr><td>address</td><td>String</td><td>Endereço do afiliado / anunciante</td></tr><tr><td>city</td><td>String</td><td>Cidade do afiliado / anunciante</td></tr><tr><td>state</td><td>String</td><td>Estado do afiliado / anunciante</td></tr><tr><td>state_code</td><td>String</td><td>Código do estado do afiliado / anunciante</td></tr><tr><td>zip</td><td>String</td><td>CEP do afiliado / anunciante</td></tr><tr><td>country</td><td>String</td><td>País do afiliado / anunciante</td></tr><tr><td>im_type</td><td>String</td><td>Mídia social para mensagens instantâneas</td></tr><tr><td>im_value</td><td>String</td><td>Perfil de mídia social </td></tr><tr><td>status</td><td>String</td><td><strong>Valores permitidos:</strong><br>Aprovado, Pendente, Rejeitado</td></tr></tbody></table>

***

## Criar Afiliado

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

:link: [<mark style="color:blue;">**Clique para testar a API de criação de afiliado**</mark>](https://offer18.readme.io/reference/affiliate-create-api)

#### Exemplo de Solicitação da API

<figure><img src="/files/8fa5f8ca5db11c67d7bac2107aed9469cb658fc2" alt=""><figcaption></figcaption></figure>

#### **Resposta da API**

```
{
    "status": "200",
    "affiliate_id": 0001,
    "email": "affiliate@affiliate_email.com",
    "password": "97b91464",
    "signup_ip": "000.000.00.00"
}
```

***

## Criar Anunciante&#x20;

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

:link: [<mark style="color:blue;">**Clique para testar a API de criação de anunciante**</mark>](https://offer18.readme.io/reference/advertiser-create-api)

#### Exemplo de Solicitação da API

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

#### **Resposta da API**

```
{
    "status": "200",
    "advertiser_id": 00002,
    "email": "advertiser@advertiser_email.com",
    "password": "97b91464",
    "signup_ip": "000.000.00.00"
}
```

{% hint style="info" %}
**Para interações seguras, sempre chame a API do lado do servidor.**
{% endhint %}


---

# 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:

```
GET https://knowledgebase.offer18.com/pt/rede/api-da-rede/api-de-criacao-de-afiliado-e-anunciante.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.
