NAV
bash javascript

Info

Welcome to the generated API reference. Get Postman Collection

1. Visão geral - API iPORTO

alt text

O objetivo desta documentação é orientar o desenvolvedor sobre como integrar sua aplicação com a API iPORTO, descrevendo as funcionalidades, os métodos a serem utilizados, listando informações a serem enviadas e recebidas, e provendo exemplos.

O mecanismo de integração com a API iPORTO é simples, de modo que apenas conhecimentos intermediários em linguagem de programação para Web, requisições HTTP/HTTPS e manipulação de arquivos JSON, são necessários para implantar a solução iPORTO com sucesso.

iPORTO

2. Início Rápido

Crie sua conta na iPORTO

  1. Acesse o site da iPORTO.
  2. Escolha o serviço e plano mais adequado.
  3. Faça seu cadastro.
  4. Ative sua conta.
  5. Crie uma Chave de API.
  6. Integre com sua aplicação.

A iPORTO oferece a sua infraestrutura por meio de uma API RESTful e todas as respostas são em JSON.

3. Autorização

Header de Autorização

Para autenticar suas requisições, adicione o header Authorization: Bearer Sua.CHAVE.de.API.Aqui, onde Sua.CHAVE.de.API.Aqui é sua chave gerada através de seu Painel de Controle ou "Login de Usuário" conforme descrito nesta documentação.

Exemplo de Requisição

GET api/endpoint HTTP/1.1 Authorization: Bearer Sua.CHAVE.de.API.Aqui

4. Instruções

Requests

Qualquer ferramenta que seja fluente em HTTP pode se comunicar com a API simplesmente solicitando o URI correto. As solicitações devem ser feitas usando o protocolo HTTPS para que o tráfego seja criptografado. A interface responde a diferentes métodos, dependendo da ação necessária.

Metodo Descrição
GET Para obter informações simples sobre sua conta, você deve usar o método GET. As informações solicitadas serão retornadas para você como um objeto JSON. Os atributos definidos pelo objeto JSON podem ser usados para formar solicitações adicionais. Qualquer solicitação usando o método GET é somente leitura e não afetará nenhum dos objetos que você está consultando.
DELETE Para destruir um recurso e removê-lo de sua conta e ambiente, o método DELETE deve ser usado. Isto irá remover o objeto especificado, se for encontrado. Se não for encontrado, a operação retornará uma resposta indicando que o objeto não foi encontrado. Não é feita verifição antes de completar a requisição.
PUT Para atualizar as informações sobre um recurso na sua conta, o método PUT está disponível. Como o método DELETE, o método PUT é idempotente. Define o estado do destino usando os valores fornecidos, independentemente de seus valores atuais. Solicitações usando o método PUT não precisam verificar os atributos atuais do objeto. Não é feita verifição antes de completar a requisição.
POST Para criar um novo objeto, sua solicitação deve especificar o método POST. A solicitação POST inclui todos os atributos necessários para criar um novo objeto. Quando você deseja criar um novo objeto, envie uma solicitação POST ao terminal de destino.

Status HTTP

Juntamente com os métodos HTTP aos quais a API responde, também retornará status HTTP padrão, incluindo códigos de erro.

No caso de um problema, o status conterá o código de erro, enquanto o corpo da resposta normalmente conterá informações adicionais sobre o problema encontrado.

Em geral, se o status retornado estiver no intervalo 200, isso indica que a solicitação foi atendida com êxito e que nenhum erro foi encontrado.

Códigos de retorno no intervalo 400 geralmente indicam que houve um problema com a solicitação enviada. Entre outras coisas, isso pode significar que você não autenticou corretamente, que está solicitando uma ação para a qual você não tem autorização, que o objeto que você está solicitando não existe ou que sua solicitação está incorreta.

Se você receber um status no intervalo 500, isso geralmente indica um problema no lado do servidor. Isso significa que estamos tendo um problema e não podemos atender sua solicitação no momento.

Responses

Quando uma solicitação é bem-sucedida, um corpo de resposta geralmente é enviado de volta na forma de um objeto JSON com a chave principal chamada data.

Meta

Além da raiz do recurso principal, a resposta também pode conter um meta objeto. Este objeto contém informações sobre a resposta em si.

O objeto meta contém uma chave total definida para o número total de objetos retornados pela solicitação. Isso tem implicações no objeto de links e na paginação.

O objeto meta só será exibido quando tiver um valor. Atualmente, o objeto meta terá um valor quando uma solicitação é feita em uma coleção (diversos ítens).

Links e Paginação

O objeto pagination é retornado como parte do corpo da resposta quando a paginação está ativada. Por padrão, 10 objetos são retornados por página. Se a resposta contiver 10 objetos ou menos, nenhum objeto de links será retornado. Se a resposta contiver mais de 10 objetos, os 10 primeiros serão retornados junto com o objeto links.

O objeto pagination contém um objeto de links. O objeto de links, por sua vez, contém chaves indicando o relacionamento de páginas adicionais. Os valores destes são os URLs das páginas associadas.

Rate Limit

Atualmente, o número de solicitações que podem ser feitas por meio da API é limitado a 3.600 por hora por token OAuth.

A informação de limitação de taxa está contida nos cabeçalhos de resposta de cada solicitação. Os cabeçalhos relevantes são:

RateLimit-Limit: o número de solicitações que podem ser feitas por hora. RateLimit-Remaining: o número de solicitações que permanecem antes de você atingir seu limite de solicitações. Veja as informações abaixo sobre como os limites de solicitações expiram.

A maneira como uma solicitação expira e é removida da contagem de limite atual é importante para entender. Em vez de contar todas as solicitações por uma hora e redefinir o valor de RateLimit-Remaining no final da hora, cada solicitação tem seu próprio timer.

Isso significa que cada solicitação contribui para a contagem de RateLimit-Remaining por uma hora completa após a solicitação ser feita. Quando o cronômetro da solicitação acabar, ele não será mais contado para o limite da solicitação.

Isso tem implicações sobre o significado do cabeçalho RateLimit-Reset também. Como o limite total da taxa não é redefinido ao mesmo tempo, o valor desse cabeçalho é definido para a hora em que a solicitação mais antiga expira.

Tenha isso em mente se você vir a alteração do valor de RateLimit-Reset, mas não se mover uma hora inteira para o futuro.

Se o RateLimit-Remaining atingir zero, as solicitações subseqüentes receberão um código de erro 429 até que a redefinição da solicitação seja atingida. Você pode ver o formato da resposta nos exemplos.

OAuth Authentication

Para interagir com a API iPORTO, você ou seu aplicativo devem autenticar.

A API da iPORTO lida com isso por meio do OAuth, um padrão aberto para autorização. OAuth permite delegar acesso à sua conta no modo completo ou somente leitura.

Você pode gerar um token OAuth visitando a seção Aplicativos e API do painel de controle iPORTO da sua conta.

Um token OAuth funciona como uma solicitação de autenticação completa. Na verdade, ele age como um substituto para um par de nome de usuário e senha.

Por isso, é absolutamente essencial que você mantenha seus tokens OAuth seguros. De fato, após a geração, a interface da Web exibirá cada token apenas uma única vez, a fim de evitar que o token seja comprometido.

Como autenticar com o OAuth

Existem duas formas separadas de autenticação usando o OAuth.

A primeira opção é enviar um cabeçalho de autorização ao portador com sua solicitação. Esse é o método preferencial de autenticação porque conclui a solicitação de autorização na parte do cabeçalho, longe da solicitação real.

Você também pode autenticar usando a autenticação básica. A maneira normal de fazer isso com uma ferramenta como curl é usar o sinalizador -u, que é usado para passar informações de autenticação.

Parâmetros

Existem duas maneiras diferentes de passar parâmetros em uma solicitação com a API.

Ao transmitir parâmetros para criar ou atualizar um objeto, os parâmetros devem ser passados ​​como um objeto JSON contendo os nomes e valores de atributos apropriados como pares de valor-chave. Ao usar esse formato, você deve especificar que está enviando um objeto JSON no cabeçalho. Isso é feito configurando o cabeçalho Content-Type como application / json. Isso garante que sua solicitação seja interpretada corretamente.

Ao passar parâmetros para filtrar uma resposta em solicitações GET, os parâmetros podem ser passados ​​usando atributos de consulta padrão. Nesse caso, os parâmetros seriam incorporados no próprio URI anexando um? para o final do URI e, em seguida, definindo cada atributo com um sinal de igual. Atributos podem ser separados por um &. Ferramentas como curl podem criar o URI apropriado quando dados parâmetros e valores; isso também pode ser feito usando o sinalizador -F e, em seguida, passando a chave e o valor como um argumento. O argumento deve ter a forma de uma string entre aspas, com o atributo sendo definido para um valor com um sinal de igual.

Cross Origin Resource Sharing (CORS)

Para fazer solicitações à API de outros domínios, a API implementa o suporte ao recurso de compartilhamento de recursos de origem cruzada (CORS).

O suporte a CORS geralmente é usado para criar solicitações AJAX fora do domínio do qual a solicitação foi originada. Isso é necessário para implementar projetos como painéis de controle utilizando a API. Isso informa ao navegador que ele pode enviar solicitações para um domínio externo.

O procedimento que o navegador inicia para executar essas ações (além das solicitações GET) começa enviando uma solicitação de "comprovação". Isso define o cabeçalho Origem e usa o método OPTIONS. O servidor responderá com os métodos que ele permite e alguns dos limites que ele impõe. O cliente envia a solicitação real se estiver dentro das restrições permitidas.

Esse processo geralmente é feito em segundo plano pelo navegador, mas você pode usar o curl para emular esse processo usando o exemplo fornecido. Os cabeçalhos que serão definidos para mostrar as restrições são:

Auth\Api

Gestão de CHAVES de API.

Auth\Api\generate

Gera uma nova Chave de API para o Usuário logado.

alt text

REQUISIÇÃO NÃO AUTENTICADA.

Example request:

curl -X POST "http://api-smtp-por-credito.iporto.com.br/api/token/generate" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3" \
    -H "Content-Type: application/json" \
    -d '{"name":"6g29b7XmQiKXzBbt"}'
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/token/generate");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "name": "6g29b7XmQiKXzBbt"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": {
        "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImNjMmVjZDRhNzMzZjU5NDlhZDJlOTRjYjYwNmQyY2E2MDZkYzI3ODYwYzMxYjVlMWFhOTlmN2ViOWM2ZDhjMTMxOTk0MDc2MzRjMzg5OWVkIn0.eyJhdWQiOiIxIiwianRpIjoiY2MyZWNkNGE3MzNmNTk0OWFkMmU5NGNiNjA2ZDJjYTYwNmRjMjc4NjBjMzFiNWUxYWE5OWY3ZWI5YzZkOGMxMzE5OTQwNzYzNGMzODk5ZWQiLCJpYXQiOjE1NTk2NTczMzgsIm5iZiI6MTU1OTY1NzMzOCwiZXhwIjoxNTkxMjc5NzM3LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.Aqh7GT3oSE774VKTAztO8elPlKGqUnnffA2KDcdl1HNGPwq0Jw5d7KZkqr7h7_yWZAL6a_QAQEJ0YY7TYFBwcX1vxLbGrl3sOn0_Hv-tNrAb3XOv0mbAV6gNns8Ty_ZnuE2pxkVVKw37BM-XM8Vtj4XKb9I42hRjDiaw3Q4vVasdggs7SFVjY8TMRvVn_eSSPqRS1GzIMFVKMWfDzS3eEtn2gLhJ3GUvEZ74bZQiOw6GlvyVcCdlZ3HpcSJlQTgsnt7XNtmY75OEf273MRrb1HZuertw0_KhbD9fCQlS4pyr-dIpuWTaxrrN7bQbyEjGOsHzxEVFFNh2cC6ioSoJdCpmEv3467FwUPzqF4Xk2762UmME_M6owSYj8TZFRV02fRqv3yJY4KwTGLOod2opKU7AlqL5UNErJNIYtsnFzwnoCT9Tw4c5XZGt6hekZqqRexT7irqqGu-M_qmiOfLyF4txfKgJfPLH_Qm2GjQqHhDFZ7DFBuUPYhNbh3j6hpkU4tL1dllZMqQPR1aia7yOY-*0CEb7aU16xIFT_n53t9bNg2n92C6t1OeKg3sA_3XY5dcyQNVtsycazQ6yiEhfFpGFbkaRsC9wFJaEjMlzS54DjpSNLFsz-5LiOahYLHohlpERAbsISoWEASsIQAzeQsQoCckj8IdPVo0FuH_QmiYvk"
    },
    "data": {
        "id": 1,
        "client_id": 1,
        "name": "Frederico",
        "email": "dev@iporto.io",
        "is_active": 1,
        "scopes": "[]",
        "status": "cadastroAtivo",
        "last_action_at": {
            "date": "2019-06-04 11:08:56.168163",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "created_at": "2018-10-19 09:19:24",
        "updated_at": "2019-06-04 11:08:56",
        "deleted_at": null,
        "api_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImNjMmVjZDRhNzMzZjU5NDlhZDJlOTRjYjYwNmQyY2E2MDZkYzI3ODYwYzMxYjVlMWFhOTlmN2ViOWM2ZDhjMTMxOTk0MDc2MzRjMzg5OWVkIn0.eyJhdWQiOiIxIiwianRpIjoiY2MyZWNkNGE3MzNmNTk0OWFkMmU5NGNiNjA2ZDJjYTYwNmRjMjc4NjBjMzFiNWUxYWE5OWY3ZWI5YzZkOGMxMzE5OTQwNzYzNGMzODk5ZWQiLCJpYXQiOjE1NTk2NTczMzgsIm5iZiI6MTU1OTY1NzMzOCwiZXhwIjoxNTkxMjc5NzM3LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.Aqh7GT3oSE774VKTAztO8elPlKGqUnnffA2KDcdl1HNGPwq0Jw5d7KZkqr7h7_yWZAL6a_QAQEJ0YY7TYFBwcX1vxLbGrl3sOn0_Hv-tNrAb3XOv0mbAV6gNns8Ty_ZnuE2pxkVVKw37BM-XM8Vtj4XKb9I42hRjDiaw3Q4vVasdggs7SFVjY8TMRvVn_eSSPqRS1GzIMFVKMWfDzS3eEtn2gLhJ3GUvEZ74bZQiOw6GlvyVcCdlZ3HpcSJlQTgsnt7XNtmY75OEf273MRrb1HZuertw0_KhbD9fCQlS4pyr-dIpuWTaxrrN7bQbyEjGOsHzxEVFFNh2cC6ioSoJdCpmEv3467FwUPzqF4Xk2762UmME_M6owSYj8TZFRV02fRqv3yJY4KwTGLOod2opKU7AlqL5UNErJNIYtsnFzwnoCT9Tw4c5XZGt6hekZqqRexT7irqqGu-M_qmiOfLyF4txfKgJfPLH_Qm2GjQqHhDFZ7DFBuUPYhNbh3j6hpkU4tL1dllZMqQPR1aia7yOY-*0CEb7aU16xIFT_n53t9bNg2n92C6t1OeKg3sA_3XY5dcyQNVtsycazQ6yiEhfFpGFbkaRsC9wFJaEjMlzS54DjpSNLFsz-5LiOahYLHohlpERAbsISoWEASsIQAzeQsQoCckj8IdPVo0FuH_QmiYvk",
        "display_at": "2019-06-04 11:08:59",
        "credit": {
            "amount_general": 1,
            "amount_positive": "1",
            "amount_negative": "1",
            "amount_percent_usage": "79.49",
            "amount_basic": "1",
            "amount_professional": "1",
            "amount_advanced": "1",
            "amount_relay": 0
        },
        "limit": {
            "id": 1,
            "client_id": 1,
            "domains": 5,
            "domain_user_account": 25,
            "created_at": "2018-12-17 15:29:54",
            "updated_at": "2018-12-17 15:29:54",
            "display_at": "2019-06-04 11:09:02"
        },
        "application": {
            "APP_ALLOWS_RESELLER": true,
            "APP_USES_CREDITS": true,
            "APP_HAS_LIMITS": true
        }
    }
}

HTTP Request

POST api/token/generate

Body Parameters

Parameter Type Status Description
name string optional NOME DA CHAVE DE API. Ex: MinhaAPI

Auth\Api\tokens

Lista CHAVES de API de um Usuário logado.

alt text

REQUISIÇÃO NÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/token/tokens" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/token/tokens");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": [
        {
            "id": "e534e5389eb529116c5defe6e799efc362ci500216d53864df09b84aa5906e97c3185bb2b8902212",
            "name": "API-MinhaAPI",
            "expires_at": {
                "date": "2020-06-04 11:25:16.000000",
                "timezone_type": 3,
                "timezone": "America\/Sao_Paulo"
            }
        },
        {
            "id": "cc2ecd4a733f5949ad2e94cb606d2ca606ac27860c31b5e1aa99f7eb9c6d8c13199407634c3899a1",
            "name": "API-MinhaAPI (2)",
            "expires_at": {
                "date": "2020-06-04 11:08:57.000000",
                "timezone_type": 3,
                "timezone": "America\/Sao_Paulo"
            }
        }
    ]
}

HTTP Request

GET api/token/tokens

Auth\Api\revoke

Revoga uma CHAVE de API.

alt text

REQUISIÇÃO NÃO AUTENTICADA.

Example request:

curl -X DELETE "http://api-smtp-por-credito.iporto.com.br/api/token/revoke/{token_id}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/token/revoke/{token_id}");

    let params = {
            "token_id": "26iq2hDWrZLF4QZ4",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": "e534e5389eb529116c5defe6e799efc362ci500216d53864df09b84aa5906e97c3185bb2b8902212",
        "user_id": 1,
        "client_id": 1,
        "name": "API-MinhaAPI",
        "scopes": [],
        "revoked": true,
        "created_at": "2019-06-04 11:08:57",
        "updated_at": "2019-06-04 11:08:57",
        "expires_at": "2020-06-04 11:08:57"
    }
}

HTTP Request

DELETE api/token/revoke/{token_id}

Query Parameters

Parameter Status Description
token_id optional ID DO TOKEN. Ex: e534e5389eb529116c5defe6e799efc362ci500216d53864df09b84aa5906e97c3185bb2b8902212

Auth\Guest

Auth\Guest\login

Efetue login com dados de E-MAIL e SENHA para gerar um novo Token de autenticação para resgatar informações relativas ao Usuário.

alt text

REQUISIÇÃO NÃO AUTENTICADA.

Example request:

curl -X POST "http://api-smtp-por-credito.iporto.com.br/api/login" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3" \
    -H "Content-Type: application/json" \
    -d '{"email":"wZLpjaVTSu47CEX3","password":"qZlA2dqUPt3mouBg"}'
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/login");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "email": "wZLpjaVTSu47CEX3",
    "password": "qZlA2dqUPt3mouBg"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "success": {
        "token": "ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjQzN2RmZmZlM2YzYzE4ZDNlNjQ4YTM2NWYxNDFlZTJlNDc1Y2VjMmZkMDIwODAxMjU0NWMwZmFjZTI3OTZmYWE0NzcyZjdkZGZkOWFlMWRmIn0.eyJhdWQiOiIxIiwianRpIjoiNDM3ZGZmZmUzZjNjMThkM2U2NDhhMzY1ZjE0MWVlMmU0NzVjZWMyZmQwMjA4MDEyNTQ1YzBmYWNlMjc5NmZhYTQ3NzJmN2RkZmQ5YWUxZGYiLCJpYXQiOjE1NTE4OTU3MzUsIm5iZiI6MTU1MTg5NTczNSwiZXhwIjoxNTgzNTE4MTM0LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.Ko8rE5UW755ByKXHxbCUYR0MihfkZ0RzxqpoZUwhRBYR0VNecB2Az96PN_JDQzsygmrje7PsBrPKEfudkaps4yXM5zu2-3MpLzqxU9jUDyvAMPu2NJwoC1Yo9K7aGvXmW6Zz3vDI29LC3fdM5NXMdzLoXcDOfHY0dwvrrPco63qey7dHGLj8rCY9Uc8HzkNj1UDkjG78u3TmdkAGmOAb4Sw5KThDRQxnk_yoMl2o-SIf0QcVG2urXecqew2ygg2msgNgjJ1zlGcqUZM1Cej9ClbdqXKKGV7tkJkDiD65itbgAIse3KiCjsJ3EV4VkB8iWLIG_9Bto1m_bm9DIkfq6AekPiH47CaijxvdMjWNeHXtRJR7HslSMT4Tg-2ujY1klGssNIL4tYUVc_3yfS0AC4PFaGUaH-otihV8ckZyh8M7eQGAJ-LgiPnXR-a9BJuuxXfKVp7dE1IhAa4SK1kyKLsNdRnuwa_NxRfW2oyDUxodEFw7fz6ANnIXuN5dfwF6zc1EmfUFoI6jrDtIqNeWdWP8xiyLmzzfr35WT2beE4IT0vbwgd2UsqjAPCELAw3sM_bAqWR3B0IH81Mh6niUEri5LCbp_V1u3chE6fvHxyzripfRBASL-Yq20aQhHNjWX4ShlbwcsP7nEAKUJ1mtEUN0WRmOxZ2iMromx3xpeR4"
    },
    "data": {
        "id": 54810081060,
        "client_id": 98069863005,
        "name": "Victor Hugo Martins",
        "email": "dev@iporto.io",
        "is_active": 1,
        "scopes": "[]",
        "status": "cadastroAtivo",
        "last_action_at": {
            "date": "2019-03-06 15:08:53.239938",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "created_at": "2018-10-19 09:19:24",
        "updated_at": "2019-03-06 15:08:53",
        "deleted_at": null,
        "api_token": "ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjQzN2RmZmZlM2YzYzE4ZDNlNjQ4YTM2NWYxNDFlZTJlNDc1Y2VjMmZkMDIwODAxMjU0NWMwZmFjZTI3OTZmYWE0NzcyZjdkZGZkOWFlMWRmIn0.eyJhdWQiOiIxIiwianRpIjoiNDM3ZGZmZmUzZjNjMThkM2U2NDhhMzY1ZjE0MWVlMmU0NzVjZWMyZmQwMjA4MDEyNTQ1YzBmYWNlMjc5NmZhYTQ3NzJmN2RkZmQ5YWUxZGYiLCJpYXQiOjE1NTE4OTU3MzUsIm5iZiI6MTU1MTg5NTczNSwiZXhwIjoxNTgzNTE4MTM0LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.Ko8rE5UW755ByKXHxbCUYR0MihfkZ0RzxqpoZUwhRBYR0VNecB2Az96PN_JDQzsygmrje7PsBrPKEfudkaps4yXM5zu2-3MpLzqxU9jUDyvAMPu2NJwoC1Yo9K7aGvXmW6Zz3vDI29LC3fdM5NXMdzLoXcDOfHY0dwvrrPco63qey7dHGLj8rCY9Uc8HzkNj1UDkjG78u3TmdkAGmOAb4Sw5KThDRQxnk_yoMl2o-SIf0QcVG2urXecqew2ygg2msgNgjJ1zlGcqUZM1Cej9ClbdqXKKGV7tkJkDiD65itbgAIse3KiCjsJ3EV4VkB8iWLIG_9Bto1m_bm9DIkfq6AekPiH47CaijxvdMjWNeHXtRJR7HslSMT4Tg-2ujY1klGssNIL4tYUVc_3yfS0AC4PFaGUaH-otihV8ckZyh8M7eQGAJ-LgiPnXR-a9BJuuxXfKVp7dE1IhAa4SK1kyKLsNdRnuwa_NxRfW2oyDUxodEFw7fz6ANnIXuN5dfwF6zc1EmfUFoI6jrDtIqNeWdWP8xiyLmzzfr35WT2beE4IT0vbwgd2UsqjAPCELAw3sM_bAqWR3B0IH81Mh6niUEri5LCbp_V1u3chE6fvHxyzripfRBASL-Yq20aQhHNjWX4ShlbwcsP7nEAKUJ1mtEUN0WRmOxZ2iMromx3xpeR4",
        "display_at": "2019-03-06 15:08:56",
        "credit": {
            "amount_general": 10802859,
            "amount_positive": "33301000",
            "amount_negative": "-22498141",
            "amount_percent_usage": "67.56",
            "amount_basic": "2472686",
            "amount_professional": "4433966",
            "amount_advanced": "3896207",
            "amount_relay": 0
        },
        "limit": {
            "id": 1,
            "client_id": 98069863005,
            "domains": 5,
            "domain_user_account": 25,
            "created_at": "2018-12-17 15:29:54",
            "updated_at": "2018-12-17 15:29:54",
            "display_at": "2019-03-06 15:08:58"
        },
        "application": {
            "APP_ALLOWS_RESELLER": true,
            "APP_USES_CREDITS": true,
            "APP_HAS_LIMITS": true
        }
    }
}

HTTP Request

POST api/login

Body Parameters

Parameter Type Status Description
email string required E-mail de login. Ex: dev@iporto.io
password string required Senha de login.

Auth\Logout

Auth\Logout\logout

Revoga CHAVE ATUAL do usuário logado.

alt text

REQUISIÇÃO NÃO AUTENTICADA.

Example request:

curl -X POST "http://api-smtp-por-credito.iporto.com.br/api/logout" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/logout");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/logout

Auth\User

Gerenciamento de Usuário autenticado.

Auth\User\profile

Retorna informações completas da conta do Usuário que está autenticado.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/profile" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/profile");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "name": "Dev",
        "email": "dev@iporto.io",
        "is_active": 1,
        "status": "cadastroAtivo",
        "last_action_at": "2019-05-28 17:11:51",
        "created_at": "2018-05-29 19:54:26",
        "updated_at": "2019-05-28 17:11:51",
        "deleted_at": null,
        "returned_at": "2019-05-28 17:12:08"
    }
}

HTTP Request

GET api/profile

Panel\Credit\Credit

Gestão de Créditos do Serviço.

Panel\Credit\Credit\index

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/credit" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/credit");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": [
        {
            "id": 1,
            "client_id": 98069863005,
            "user_id": 54810081060,
            "contract_id": null,
            "amount": -24,
            "name": "Uso de Créditos - Contabilização agrupada por Data (advanced): 06\/03\/2019",
            "plan_type": "advanced",
            "used_at": "2019-03-06",
            "expires_at": null,
            "deleted_at": null,
            "created_at": "2019-03-06 00:51:02",
            "updated_at": "2019-03-06 08:33:02",
            "display_at": "2019-03-06 09:06:46"
        },
        {
            "id": 2,
            "client_id": 98069863005,
            "user_id": 54810081060,
            "contract_id": null,
            "amount": 100000000,
            "name": "Créditos referente a Fatura: #1",
            "plan_type": "advanced",
            "used_at": "2019-03-05",
            "expires_at": null,
            "deleted_at": null,
            "created_at": "2019-03-05 09:30:47",
            "updated_at": "2019-03-05 09:39:02",
            "display_at": "2019-03-06 09:06:46"
        }
    ],
    "meta": {
        "pagination": {
            "total": 2,
            "count": 2,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/credit

Panel\Credit\Credit\availability

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/credit/availability" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/credit/availability");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "amount": "10803029",
        "basic": "2472819",
        "professional": "4433966",
        "advanced": "3896244",
        "relay": 0
    }
}

HTTP Request

GET api/panel/credit/availability

Panel\Credit\Credit\buy

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/credit/buy/{amount}/{type}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/credit/buy/{amount}/{type}");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": [
        {
            "id": 1,
            "created_at": "2018-12-17 15:29:54",
            "updated_at": "2018-12-17 15:29:54",
            "display_at": "2019-03-06 13:57:42"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/credit/buy/{amount}/{type}

Panel\Credit\Credit\price

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/credit/price/{amount}/{type}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/credit/price/{amount}/{type}");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": [
        {
            "id": 1,
            "created_at": "2018-12-17 15:29:54",
            "updated_at": "2018-12-17 15:29:54",
            "display_at": "2019-03-06 13:57:42"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/credit/price/{amount}/{type}

Panel\Limit\Limit

Limites de Uso e Criações de ítens no serviço.

Panel\Limit\index

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/limit" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/limit");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 98069863005,
        "user_id": 54810081060,
        "domain_user_account": 25,
        "created_at": "2018-12-17 15:29:54",
        "updated_at": "2018-12-17 15:29:54",
        "display_at": "2019-03-06 13:57:42"
    }
}

HTTP Request

GET api/panel/limit

Panel\Service\Addressbook\Addressbook

Gerenciamento de LISTAS DE CONTATOS.

Panel\Service\Addressbook\Addressbook\index

Lista todos as LISTAS DE CONTATOS criadas.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/addressbook" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/addressbook");

    let params = {
            "search": "iY6GySiTNboSeQYf",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": [
        {
            "id": 1,
            "client_id": 1,
            "name": "Primeira Lista de Contatos",
            "deleted_at": null,
            "created_at": "2019-06-07 09:14:05",
            "updated_at": "2019-06-07 09:14:05",
            "display_at": "2019-06-07 09:33:07"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/addressbook

Query Parameters

Parameter Status Description
search optional CAMPO DE BUSCA POR NOME OU ID.

Panel\Service\Addressbook\Addressbook\store

Faz o cadastro de uma nova LISTA DE CONTATOS.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "http://api-smtp-por-credito.iporto.com.br/api/panel/addressbook" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3" \
    -H "Content-Type: application/json" \
    -d '{"name":"ZuyuqlZuJunx7qeR"}'
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/addressbook");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "name": "ZuyuqlZuJunx7qeR"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": []
}

HTTP Request

POST api/panel/addressbook

Body Parameters

Parameter Type Status Description
name string required NOME DA LISTA DE CONTATOS. Ex: Lista de Cliente

Panel\Service\Addressbook\Addressbook\show

Mostra detalhes de uma LISTA DE CONTATOS.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/addressbook/{id}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/addressbook/{id}");

    let params = {
            "id": "ci9X71GLR9KLWNQV",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "user_id": 1,
        "addressbook_id": null,
        "email": "maikel@maiptrap.io",
        "domain": "maiptrap.io",
        "name": "maikel",
        "email_sending_status": "optin",
        "identifier": null,
        "phone1": null,
        "phone2": null,
        "address": null,
        "birthday": null,
        "cpf": null,
        "field1": null,
        "field2": null,
        "field3": null,
        "engagement": 0,
        "openings": 0,
        "registration": "panel",
        "is_valid": "yes",
        "validated_at": "2019-06-04",
        "deleted_at": null,
        "created_at": "2019-06-04 17:31:05",
        "updated_at": "2019-06-04 17:31:05",
        "display_at": "2019-06-04 17:54:16",
        "addressbook": null
    }
}

HTTP Request

GET api/panel/addressbook/{id}

Query Parameters

Parameter Status Description
id required ID DA LISTA DE CONTATOS. Ex: 1

Panel\Service\Addressbook\Addressbook\update

Atualiza detalhes de uma LISTA DE CONTATOS.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X PUT "http://api-smtp-por-credito.iporto.com.br/api/panel/addressbook/{id}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3" \
    -H "Content-Type: application/json" \
    -d '{"name":"Piiq5r4Dpg4PEvLc"}'
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/addressbook/{id}");

    let params = {
            "id": "QGamdcdB6FKSczTe",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "name": "Piiq5r4Dpg4PEvLc"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "user_id": 1,
        "addressbook_id": null,
        "email": "maikel@maiptrap.io",
        "domain": "maiptrap.io",
        "name": "maikel",
        "email_sending_status": "optin",
        "identifier": null,
        "phone1": null,
        "phone2": null,
        "address": null,
        "birthday": null,
        "cpf": null,
        "field1": null,
        "field2": null,
        "field3": null,
        "engagement": 0,
        "openings": 0,
        "registration": "panel",
        "is_valid": "yes",
        "validated_at": "2019-06-04",
        "deleted_at": null,
        "created_at": "2019-06-04 17:31:05",
        "updated_at": "2019-06-04 17:31:05",
        "display_at": "2019-06-04 17:54:16",
        "addressbook": null
    }
}

HTTP Request

PUT api/panel/addressbook/{id}

Body Parameters

Parameter Type Status Description
name string required NOME DA LISTA DE CONTATOS. Ex: Lista de Cliente

Query Parameters

Parameter Status Description
id required ID DO CLIENTE. Ex: 1

Panel\Service\Addressbook\Addressbook\destroy

Remove uma LISTA DE CONTATOS.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X DELETE "http://api-smtp-por-credito.iporto.com.br/api/panel/addressbook/{id}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/addressbook/{id}");

    let params = {
            "id": "oQHkMzms3WD0QXkS",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "name": "Minha Lista",
        "deleted_at": {
            "date": "2019-06-07 09:59:51.987497",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "created_at": "2019-06-07 09:39:22",
        "updated_at": "2019-06-07 09:59:51",
        "contacts_count": 0,
        "display_at": "2019-06-07 09:59:52"
    }
}

HTTP Request

DELETE api/panel/addressbook/{id}

Query Parameters

Parameter Status Description
id required ID DO CLIENTE. Ex: 1

Panel\Service\Addressbook\Contact

Gerenciamento de CONTATOS.

Panel\Service\Addressbook\Contact\index

Lista todos os CONTATOS criados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/contact" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/contact");

    let params = {
            "search": "GEVWKRBEKVuVleWt",
            "addressbook_id": "xBVBH3UO6LJNWj1H",
            "is_valid": "7zk71FgWhk82xfOX",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": [
        {
            "id": 1,
            "client_id": 1,
            "addressbook_id": null,
            "email": "maikel@maiptrap.io",
            "domain": "maiptrap.io",
            "name": "maikel",
            "email_sending_status": "optin",
            "identifier": null,
            "phone1": null,
            "phone2": null,
            "address": null,
            "birthday": null,
            "cpf": null,
            "field1": null,
            "field2": null,
            "field3": null,
            "engagement": 0,
            "openings": 0,
            "registration": "panel",
            "is_valid": "yes",
            "validated_at": "2019-06-04",
            "deleted_at": null,
            "created_at": "2019-06-04 17:31:05",
            "updated_at": "2019-06-04 17:31:05",
            "display_at": "2019-06-04 17:49:08",
            "addressbook": null
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/contact

Query Parameters

Parameter Status Description
search optional CAMPO DE BUSCA POR NOME OU ID.
addressbook_id optional BUSCAR POR CONTATOS DE UMA LISTA DE CONTATOS.
is_valid optional CAMPO DE BUSCA POR E-MAILS VÁLIDOS OU NÃO (yes,no).

Panel\Service\Addressbook\Contact\show

Mostra detalhes de um CONTATO.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/contact/{id}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/contact/{id}");

    let params = {
            "id": "bhaElvTeTxwQbPt1",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "addressbook_id": null,
        "email": "maikel@maiptrap.io",
        "domain": "maiptrap.io",
        "name": "maikel",
        "email_sending_status": "optin",
        "identifier": null,
        "phone1": null,
        "phone2": null,
        "address": null,
        "birthday": null,
        "cpf": null,
        "field1": null,
        "field2": null,
        "field3": null,
        "engagement": 0,
        "openings": 0,
        "registration": "panel",
        "is_valid": "yes",
        "validated_at": "2019-06-04",
        "deleted_at": null,
        "created_at": "2019-06-04 17:31:05",
        "updated_at": "2019-06-04 17:31:05",
        "display_at": "2019-06-04 17:54:16",
        "addressbook": null
    }
}

HTTP Request

GET api/panel/contact/{id}

Query Parameters

Parameter Status Description
id required ID DO CONTATO. Ex: 1

Panel\Service\Addressbook\Contact\update

Atualiza detalhes de um CONTATO.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X PUT "http://api-smtp-por-credito.iporto.com.br/api/panel/contact/{id}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3" \
    -H "Content-Type: application/json" \
    -d '{"name":"T3bCN99JKlpqXit1","addressbook_id":"1TOUs2ANIS06d8Uy","email":"CVw8gCxlX2bGFgSd","email_sending_status":"cOu8Mrx9qZmH25CW","identifier":"szb9X7by4l6M814p","phone1":"ZcV9dVjmHVecU0Y8","phone2":"67P3gzYlEY3m18xp","address":"KiDq10Fsv8jQBJUi","birthday":"PPmve7cYJ9EBZUOC","cpf":"mjqwOsJQobXQNJM3","field1":"QQKShUzGOQM5lBWs","field2":"rcMxsLblkEkjzpKD","field3":"cxNdoTd8umVSCkoo","registration":"uu5130Z84go3GTSf"}'
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/contact/{id}");

    let params = {
            "id": "rPFFxrzLLJY7nDWt",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "name": "T3bCN99JKlpqXit1",
    "addressbook_id": "1TOUs2ANIS06d8Uy",
    "email": "CVw8gCxlX2bGFgSd",
    "email_sending_status": "cOu8Mrx9qZmH25CW",
    "identifier": "szb9X7by4l6M814p",
    "phone1": "ZcV9dVjmHVecU0Y8",
    "phone2": "67P3gzYlEY3m18xp",
    "address": "KiDq10Fsv8jQBJUi",
    "birthday": "PPmve7cYJ9EBZUOC",
    "cpf": "mjqwOsJQobXQNJM3",
    "field1": "QQKShUzGOQM5lBWs",
    "field2": "rcMxsLblkEkjzpKD",
    "field3": "cxNdoTd8umVSCkoo",
    "registration": "uu5130Z84go3GTSf"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "addressbook_id": null,
        "email": "maikel@maiptrap.io",
        "domain": "maiptrap.io",
        "name": "maikel",
        "email_sending_status": "optin",
        "identifier": null,
        "phone1": null,
        "phone2": null,
        "address": null,
        "birthday": null,
        "cpf": null,
        "field1": null,
        "field2": null,
        "field3": null,
        "engagement": 0,
        "openings": 0,
        "registration": "panel",
        "is_valid": "yes",
        "validated_at": "2019-06-04",
        "deleted_at": null,
        "created_at": "2019-06-04 17:31:05",
        "updated_at": "2019-06-04 17:31:05",
        "display_at": "2019-06-04 17:54:16",
        "addressbook": null
    }
}

HTTP Request

PUT api/panel/contact/{id}

Body Parameters

Parameter Type Status Description
name string required NOME. Ex:
addressbook_id string required LISTA DE CONTATOS. Ex:
email string required EMAIL. Ex:
email_sending_status string required STATUS DE INSCRIÇÃO ('optin','optout','double_optin','lead'). Ex:
identifier string required ID. Ex:
phone1 string required TELEFONE. Ex:
phone2 string required TELEFONE. Ex:
address string required ENDEREÇO. Ex:
birthday string required DATA DE ANIVERSÁRIO. Ex:
cpf string required CPF. Ex:
field1 string required CAMPO ADICIONAL. Ex:
field2 string required CAMPO ADICIONAL. Ex:
field3 string required CAMPO ADICIONAL. Ex:
registration string required TIPO DE REGISTRO ('panel', 'form', 'upload'). Ex:

Query Parameters

Parameter Status Description
id required ID DO CONTATO. Ex: 1

Panel\Service\Addressbook\Contact\destroy

Remove um CONTATO.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X DELETE "http://api-smtp-por-credito.iporto.com.br/api/panel/contact/{id}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/contact/{id}");

    let params = {
            "id": "DNolFOhVMNs4ijIZ",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "addressbook_id": null,
        "email": "maikel@maiptrap.io",
        "domain": "maiptrap.io",
        "name": "maikel",
        "email_sending_status": "optin",
        "identifier": null,
        "phone1": null,
        "phone2": null,
        "address": null,
        "birthday": null,
        "cpf": null,
        "field1": null,
        "field2": null,
        "field3": null,
        "engagement": 0,
        "openings": 0,
        "registration": "panel",
        "is_valid": "yes",
        "validated_at": "2019-06-04",
        "deleted_at": "2019-07-04 17:31:05",
        "created_at": "2019-06-04 17:31:05",
        "updated_at": "2019-06-04 17:31:05",
        "display_at": "2019-06-04 17:54:16",
        "addressbook": null
    }
}

HTTP Request

DELETE api/panel/contact/{id}

Query Parameters

Parameter Status Description
id required ID DO CLIENTE. Ex: 1

Panel\Service\Send\Send

Gerenciamento dos ENVIOS feitos através do SMTP.

Panel\Service\Send\index

O histórico de ENVIO varia de cada plano. Verifique condições comerciais na página de planos do serviço.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/send" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/send");

    let params = {
            "search": "B4D50MhM2XtxVmuY",
            "search_status": "oMaorbY3N7Y0uv0W",
            "start_at": "TvvrywPVmu7xo4KV",
            "end_at": "5J5oQvs7Wcwfn2to",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": [
        {
            "id": "1",
            "client_id": 98069863005,
            "user_id": 54810081060,
            "node_id": "1",
            "smtp_id": "1",
            "account_id": "1",
            "message_id": "1gwtcZ-0002rO-6Y",
            "message_subject": "Pesquisa de Satisfação iPORTO",
            "message_size": "5229",
            "message_log": "2019-03-07 00:50:21 1h1k33-00084z-Cf => dev@iporto.io R=dnslookup T=remote_smtp H=aspmx.l.google.com [74.125.206.27] X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=yes K C=\"250 2.0.0 OK k7si2283622wrp.368 - gsmtp\"",
            "address_from": "no-reply@iporto.io",
            "address_from_user": "no-reply",
            "address_from_domain": "iporto.io",
            "address_to": "dev@iporto.io",
            "address_to_user": "dev",
            "address_to_domain": "iporto.io",
            "address_to_mx": "aspmx.l.google.com [74.125.206.27]",
            "status": "delivered",
            "plan_type": "advanced",
            "verify_queue_at": "",
            "retries": "0",
            "created_at": "2019-02-21 16:04:03",
            "updated_at": "2019-02-21 16:04:03",
            "display_at": "2019-03-07 09:00:40"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/send

Query Parameters

Parameter Status Description
search optional busca por e-mails no campo address_to
search_status optional busca por status de envio e recebimento. Ex: 'delivered','bounced','error','queued','spam'
start_at optional busca por data. Ex: 1984-02-17
end_at optional busca por data. Ex: 2019-05-02

Panel\Service\Validator\Email

Validação de EMAIL.

Panel\Service\Validator\Email\check

Verifica se um EMAIL é válido para recebimento de envios.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "http://api-smtp-por-credito.iporto.com.br/api/panel/validator/email/{email}/validate" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/validator/email/{email}/validate");

    let params = {
            "email": "dev@iporto.io",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "email": "dev@iporto.io",
        "is_valid": 1
    }
}

HTTP Request

POST api/panel/validator/email/{email}/validate

Query Parameters

Parameter Status Description
email required EMAIL QUE SERÁ VALIDADO/VERIFICADO.

Panel\Smtp\Account

Gerenciamento dos Hosts de SMTP, Usuários e Envios.

Panel\Smtp\Account\store

Cria uma nova conta de SMTP.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{smtp_id}/account" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3" \
    -H "Content-Type: application/json" \
    -d '{"username":"xFmyJR7ACcK92jHn"}'
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{smtp_id}/account");

    let params = {
            "smtp_id": "DkRYL7Ko1gFIOrJ3",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "username": "xFmyJR7ACcK92jHn"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 98069863005,
        "user_id": 54810081060,
        "node_id": 1,
        "smtp_id": 1,
        "account": "dev@iporto.io",
        "password": "sHBeL9Cy",
        "finished_at": null,
        "status": "waiting_creation",
        "deleted_at": null,
        "created_at": "2019-03-07 09:52:30",
        "updated_at": "2019-03-07 09:52:30",
        "display_at": "2019-03-07 09:52:31"
    }
}

HTTP Request

POST api/panel/smtp/{smtp_id}/account

Body Parameters

Parameter Type Status Description
username string required usuário que será criado. não informar o domínio completo ou @. Ex: dev

Query Parameters

Parameter Status Description
smtp_id required ID do SMTP que receberá a conta criada.

Panel\Smtp\Account\show

Visualiza detalhes de uma conta de SMTP por ID.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{smtp_id}/account/{id}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{smtp_id}/account/{id}");

    let params = {
            "smtp_id": "QbC7ExFMGeAjHgMR",
            "id": "875ZeTLQapCC437P",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 98069863005,
        "user_id": 54810081060,
        "node_id": 1,
        "smtp_id": 1,
        "account": "dev@iporto.io",
        "password": "sHBeL9Cy",
        "finished_at": "2019-03-07 09:53:12",
        "status": "created",
        "deleted_at": null,
        "created_at": "2019-03-07 09:52:30",
        "updated_at": "2019-03-07 09:53:12",
        "display_at": "2019-03-07 10:06:12"
    }
}

HTTP Request

GET api/panel/smtp/{smtp_id}/account/{id}

Query Parameters

Parameter Status Description
smtp_id required ID do SMTP.
id required ID da conta de SMTP.

Panel\Smtp\Account\showByAccount

Visualiza detalhes de uma conta de SMTP por e-mail.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{smtp_id}/account/{account}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{smtp_id}/account/{account}");

    let params = {
            "smtp_id": "SPX17JmJyVkVgPIV",
            "username": "CbfPCu3a0bgLQSJt",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 98069863005,
        "user_id": 54810081060,
        "node_id": 1,
        "smtp_id": 1,
        "account": "dev@iporto.io",
        "password": "sHBeL9Cy",
        "finished_at": "2019-03-07 09:53:12",
        "status": "created",
        "deleted_at": null,
        "created_at": "2019-03-07 09:52:30",
        "updated_at": "2019-03-07 09:53:12",
        "display_at": "2019-03-07 10:06:12"
    }
}

HTTP Request

GET api/panel/smtp/{smtp_id}/account/{account}

Query Parameters

Parameter Status Description
smtp_id required ID do SMTP.
username required USERNAME da conta de SMTP.

Panel\Smtp\Account\destroy

Remove uma conta de SMTP por ID.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X DELETE "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{smtp_id}/account/{id}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{smtp_id}/account/{id}");

    let params = {
            "smtp_id": "nuNkpTU0AgK6IbaS",
            "id": "27WOQjl1utdWRTF6",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 98069863005,
        "user_id": 54810081060,
        "node_id": 1,
        "smtp_id": 1,
        "account": "dev@iporto.io",
        "password": "sHBeL9Cy",
        "finished_at": "2019-03-07 09:53:12",
        "status": "created",
        "deleted_at": {
            "date": "2019-03-07 10:11:11.289340",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "created_at": "2019-03-07 09:52:30",
        "updated_at": "2019-03-07 10:11:11",
        "display_at": "2019-03-07 10:11:11"
    }
}

HTTP Request

DELETE api/panel/smtp/{smtp_id}/account/{id}

Query Parameters

Parameter Status Description
smtp_id required ID do SMTP.
id optional string ID da conta de SMTP.

Panel\Smtp\Email\Send

Gerenciamento dos Hosts de SMTP, Usuários e Envios.

Panel\Smtp\Email\Send\send

Envio (E-mail): Envio de e-mail via API

alt text

Example request:

curl -X POST "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{domain}/account/{account}/email/send" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{domain}/account/{account}/email/send");

    let params = {
            "domain": "u5cfE2o3ZDhAAYfL",
            "account": "ezIOKza6SLQWcsXn",
            "email_subject": "STM2SMI632Ddt7I2",
            "email_from": "RIx8ZUaC99EqNVPi",
            "email_from_name": "Zm1oRRij9p56DLKi",
            "email_to": "QDp1sP7s7pWgIwV7",
            "email_to_name": "85Ul9WpLhZjVRWPV",
            "email_cc": "Meq2jyLYspKFs2m1",
            "email_bcc": "iW9m7wSIJblGkbW8",
            "email_html_body": "Gpc9fBwTnmf7njNA",
            "email_text_body": "IBPYeCSjigtj70wg",
            "email_headers": "pAY5kkrfWvPkFYLE",
            "email_attachaments": "krqPJtNLo4Pcg5mF",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "send_error_info": null,
        "account": {
            "id": 1,
            "client_id": 1,
            "user_id": 1,
            "node_id": 1,
            "smtp_id": 1,
            "account": "dev@iporto.io",
            "password": "12SL0tmOG9xOTIw",
            "finished_at": "2018-05-22 10:36:53",
            "status": "created",
            "deleted_at": null,
            "created_at": "2018-10-19 09:20:23",
            "updated_at": "2018-10-19 09:20:23",
            "display_at": "2019-06-10 15:43:09"
        },
        "params": {
            "email_from": "dev@iporto.io",
            "email_from_name": "Dev",
            "email_to": "test@iporto.io",
            "email_to_name": "Dev",
            "email_cc": null,
            "email_bcc": null,
            "email_subject": "Envio da API",
            "email_html_body": "Oi!",
            "email_text_body": null,
            "email_headers": null
        }
    }
}

HTTP Request

POST api/panel/smtp/{domain}/account/{account}/email/send

Query Parameters

Parameter Status Description
domain required Domínio do SMTP.
account required Usuário utilizado como FROM do envio.
email_subject required Assunto do e-mail.
email_from required E-mail utilizado como FROM (de).
email_from_name optional Nome utilizado como FROM (de).
email_to required E-mail do destinatário.
email_to_name optional Nome do destinatário.
email_cc optional E-mails para enviar em cópia. É possível separar e-mails com vírgulas.
email_bcc optional E-mails para enviar em cópia coulta. É possível separar e-mails com vírgulas.
email_html_body required Conteúdo do E-mail.
email_text_body optional Conteúdo do E-mail versão texto.
email_headers optional Array com headers com Chave e Valor.
email_attachaments optional Anexos.

Panel\Smtp\Email\Send\test

Envio (E-mail): Envio de teste.

Faz um envio, automático, de teste para verificar autenticação e recebimento/envio. O e-mail de teste é enviado para o e-mail de login da conta detentora do SMTP.

alt text

Example request:

curl -X POST "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{domain}/account/{account}/email/send/test" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{domain}/account/{account}/email/send/test");

    let params = {
            "domain": "qSh1CHUqJmGdZSC1",
            "account": "8oXpqeLcjdAf9ZdK",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "send_error_info": null,
        "account": {
            "id": 1,
            "client_id": 1,
            "user_id": 1,
            "node_id": 1,
            "smtp_id": 1,
            "account": "dev@iporto.io",
            "password": "12SL0tmOG9xOTIw",
            "finished_at": "2018-05-22 10:36:53",
            "status": "created",
            "deleted_at": null,
            "created_at": "2018-10-19 09:20:23",
            "updated_at": "2018-10-19 09:20:23",
            "display_at": "2019-06-10 15:44:46"
        },
        "params": []
    }
}

HTTP Request

POST api/panel/smtp/{domain}/account/{account}/email/send/test

Query Parameters

Parameter Status Description
domain required Domínio do SMTP.
account required Usuário utilizado como FROM do envio.

Panel\Smtp\Health\Score

Score/Pontuação de um DOMINIO.

Panel\Smtp\Health\Score\index

Lista histórico de SCORES aplicados ao DOMINIO.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{smtp_id}/health/score" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{smtp_id}/health/score");

    let params = {
            "smtp_id": "j5SPlhCsGQuJWwqi",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/panel/smtp/{smtp_id}/health/score

Query Parameters

Parameter Status Description
smtp_id required ID do SMTP.

Panel\Smtp\Report\Report

Gerenciamento dos Hosts de SMTP, Usuários e Envios.

Panel\Smtp\Report\Report\graph

Dados quantitativos por Tag.

Limite máximo de 90 registros.

alt text

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{smtp_id}/report/graph/{graph_type}/start_at/{start_at}/end_at/{end_at}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{smtp_id}/report/graph/{graph_type}/start_at/{start_at}/end_at/{end_at}");

    let params = {
            "smtp_id": "D9mmaRIZ1g2GjnZv",
            "graph": "yDlLgYrtP0Ugqax0",
            "start_at": "BQPaeF7YN0LPhNLl",
            "end_at": "DrP07J5bH0Py0mRM",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "chartType": "LineChart",
        "dataTable": [
            [
                "Gráfico",
                "E-mail enviado"
            ],
            [
                "07\/Mar\/19",
                106
            ],
            [
                "06\/Mar\/19",
                109
            ],
            [
                "05\/Mar\/19",
                71
            ],
            [
                "04\/Mar\/19",
                22
            ],
            [
                "03\/Mar\/19",
                34
            ],
            [
                "02\/Mar\/19",
                38
            ],
            [
                "01\/Mar\/19",
                103
            ]
        ],
        "dataNames": [
            "Gráfico",
            "E-mail enviado"
        ],
        "graphTile": ""
    }
}

HTTP Request

GET api/panel/smtp/{smtp_id}/report/graph/{graph_type}/start_at/{start_at}/end_at/{end_at}

Query Parameters

Parameter Status Description
smtp_id required ID do SMTP.
graph required tipo de dado que será retornado. Ex: _delivered
start_at optional data de início.
end_at optional data de fim.

Panel\Smtp\Send

Gerenciamento dos Hosts de SMTP, Usuários e Envios.

Panel\Smtp\Send\index

Envios (Histórico): Lista com todos os envios.

O histórico de envio varia de cada plano. Verifique condições comerciais na página de planos do serviço.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{smtp_id}/send" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{smtp_id}/send");

    let params = {
            "smtp_id": "u4nzBxeQGWVeKGEG",
            "search": "M7wfJYBB3AApzguQ",
            "search_status": "xyeFRYByfZtk5zlf",
            "start_at": "lC5z4jhD2QRRf2Fp",
            "end_at": "mHY5SQkQ2cuLDOEb",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": [
        {
            "id": "1",
            "client_id": 98069863005,
            "user_id": 54810081060,
            "node_id": "1",
            "smtp_id": "1",
            "account_id": "1",
            "message_id": "1gwtcZ-0002rO-6Y",
            "message_subject": "Pesquisa de Satisfação iPORTO",
            "message_size": "5229",
            "message_log": "2019-03-07 00:50:21 1h1k33-00084z-Cf => dev@iporto.io R=dnslookup T=remote_smtp H=aspmx.l.google.com [74.125.206.27] X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=yes K C=\"250 2.0.0 OK k7si2283622wrp.368 - gsmtp\"",
            "address_from": "no-reply@iporto.io",
            "address_from_user": "no-reply",
            "address_from_domain": "iporto.io",
            "address_to": "dev@iporto.io",
            "address_to_user": "dev",
            "address_to_domain": "iporto.io",
            "address_to_mx": "aspmx.l.google.com [74.125.206.27]",
            "status": "delivered",
            "plan_type": "advanced",
            "verify_queue_at": "",
            "retries": "0",
            "created_at": "2019-02-21 16:04:03",
            "updated_at": "2019-02-21 16:04:03",
            "display_at": "2019-03-07 09:00:40"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/smtp/{smtp_id}/send

Query Parameters

Parameter Status Description
smtp_id optional ID do SMTP que efetuou o envio.
search optional busca por e-mails no campo address_to
search_status optional busca por status de envio e recebimento. Ex: 'delivered','bounced','error','queued','spam'
start_at optional busca por data. Ex: 1984-02-17
end_at optional busca por data. Ex: 2019-05-02

Panel\Smtp\Smtp

Gerenciamento dos Hosts de SMTP, Usuários e Envios.

Panel\Smtp\Smtp\tlds

Lista todas as TLD possíveis.

Lista com todas as TLDs disponíveis para a criação de novas contas de SMTP.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/tlds" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/tlds");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/panel/smtp/tlds

Panel\Smtp\Smtp\blockedDomains

Lista todas as Domínios bloqueados para criação.

Lista com todas os domínios que não podem ser utilizados para novas criações.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/blocked-domains" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/blocked-domains");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/panel/smtp/blocked-domains

Panel\Smtp\Smtp\index

Lista todos os SMTPs criados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": [
        {
            "id": 1,
            "client_id": 98069863005,
            "user_id": 54810081060,
            "node_id": 1,
            "plan_type": "advanced",
            "domain": " iporto.io",
            "dkim": "{\"_domainkey\":{\"TTL\":\"3600\",\"TXT\":\"'t=y; o=~;'\"},\"mail._domainkey\":{\"TTL\":\"3600\",\"TXT\":\"\\\"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC6ulTIyKmoNpAPLYk9SupNk8jn\\nXGjzx55pboZ1LM+YLvzRp8oZHA13fY3w8nURH0ipe\\\/Q6B4cZxQT9jBu7ZxrMxLS9\\nv6a14HJ6KkrNU4iiURyYK6o+yERK2wFsIIaNvxSTnuMRgarTvZfXx3QMH\\\/5463wT\\nS7uyFvOa4eYyLwSkBQIDAQAB\\\"\"}}",
            "record_mx": "mx.iporto.io",
            "record_web": "127.0.0.1",
            "configured_spf": "yes",
            "configured_dkim": "yes",
            "finished_at": "2018-08-07 13:56:26",
            "status": "created",
            "deleted_at": null,
            "created_at": "2018-10-19 09:20:03",
            "updated_at": "2019-02-14 13:31:17",
            "display_at": "2019-03-06 15:46:28",
            "dkim_txt": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC6ulTIyKmoNpAPLYk9SupNk8jnXGjzx55pboZ1LM+YLvzRp8oZHA13fY3w8nURH0ipe\/Q6B4cZxQT9jBu7ZxrMxLS9v6a14HJ6KkrNU4iiURyYK6o+yERK2wFsIIaNvxSTnuMRgarTvZfXx3QMH\/5463wTS7uyFvOa4eYyLwSkBQIDAQAB",
            "accounts": [
                {
                    "id": 1,
                    "client_id": 98069863005,
                    "user_id": 54810081060,
                    "node_id": 1,
                    "smtp_id": 1,
                    "account": "no-reply@iporto.io",
                    "password": "P7bVyMs1",
                    "finished_at": "2019-01-22 18:12:10",
                    "status": "created",
                    "deleted_at": null,
                    "created_at": "2019-01-22 18:11:51",
                    "updated_at": "2019-01-22 18:12:10",
                    "display_at": "2019-03-06 15:46:28"
                }
            ],
            "node": {
                "id": 1,
                "client_id": null,
                "user_id": null,
                "plan_type": "advanced",
                "ip": "104.236.229.156",
                "domain": "smtp-avancado.com",
                "spf": "v=spf1 include:spf.smtp-avancado.com -all",
                "max_mail_size": 20480,
                "max_cco": 50,
                "deleted_at": null,
                "created_at": "2018-10-09 18:23:47",
                "updated_at": "2018-10-09 18:23:54",
                "display_at": "2019-03-06 15:46:29"
            },
            "credits": "3896205"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/smtp

Panel\Smtp\Smtp\store

Criar um novo domínio de SMTP.

O processo para criação de um novo domínio de SMTP leva em torno de 1 a 5 minutos para ser finalizado.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3" \
    -H "Content-Type: application/json" \
    -d '{"domain":"qaFinPhhzB7Age5p","plan_type":"zGOChGfD4YWR19DV"}'
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "domain": "qaFinPhhzB7Age5p",
    "plan_type": "zGOChGfD4YWR19DV"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 98069863005,
        "user_id": 54810081060,
        "node_id": null,
        "plan_type": "advanced",
        "domain": "iporto.io",
        "dkim": "",
        "record_mx": "mx.iporto.net.br",
        "record_web": "127.0.0.1",
        "configured_spf": "no",
        "configured_dkim": "no",
        "finished_at": null,
        "status": "waiting_creation",
        "deleted_at": null,
        "created_at": "2019-03-07 08:37:10",
        "updated_at": "2019-03-07 08:37:10",
        "display_at": "2019-03-07 08:37:10",
        "dkim_txt": "",
        "accounts": [],
        "node": null,
        "credits": "3895077"
    }
}

HTTP Request

POST api/panel/smtp

Body Parameters

Parameter Type Status Description
domain string required Domínio para ser criado.
plan_type string required Tipo de plano para ser utilizado na criação. Ex: 'basic','professional','advanced','relay'

Panel\Smtp\Smtp\show

Visualiza detalhes de um SMTP por ID.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{id}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{id}");

    let params = {
            "id": "B0foHF6iaOKlL4FJ",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 98069863005,
        "user_id": 54810081060,
        "node_id": 1,
        "plan_type": "advanced",
        "domain": "iporto.io",
        "dkim": "{\"_domainkey\":{\"TTL\":\"3600\",\"TXT\":\"'t=y; o=~;'\"},\"mail._domainkey\":{\"TTL\":\"3600\",\"TXT\":\"\\\"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyisWSNpq439bsDhtR2r6VqJxa\\ntgO5AaJ0x7BXG8nCOwOZ0Fyc77tT10UwRfWoOXznjVnm+J6iEU1owAVqK4RpWeq7\\nhUpW9kehxKtoE04Q+XLa3QOT4iF043ocn31DkCRIvxk+Z3zsAD8yUpXavtuTh1dJ\\n0T6LNbP7MIEr9y6Q8wIDAQAB\\\"\"}}",
        "record_mx": "mx.iporto.net.br",
        "record_web": "127.0.0.1",
        "configured_spf": "no",
        "configured_dkim": "no",
        "finished_at": "2019-03-07 08:38:09",
        "status": "created",
        "deleted_at": null,
        "created_at": "2019-03-07 08:37:10",
        "updated_at": "2019-03-07 08:38:11",
        "display_at": "2019-03-07 08:38:21",
        "dkim_txt": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyisWSNpq439bsDhtR2r6VqJxatgO5AaJ0x7BXG8nCOwOZ0Fyc77tT10UwRfWoOXznjVnm+J6iEU1owAVqK4RpWeq7hUpW9kehxKtoE04Q+XLa3QOT4iF043ocn31DkCRIvxk+Z3zsAD8yUpXavtuTh1dJ0T6LNbP7MIEr9y6Q8wIDAQAB",
        "accounts": [],
        "node": {
            "id": 1,
            "client_id": null,
            "user_id": null,
            "plan_type": "advanced",
            "ip": "104.236.229.156",
            "domain": "smtp-avancado.com",
            "spf": "v=spf1 include:spf.smtp-avancado.com -all",
            "max_mail_size": 20480,
            "max_cco": 50,
            "deleted_at": null,
            "created_at": "2018-10-09 18:23:47",
            "updated_at": "2018-10-09 18:23:54",
            "display_at": "2019-03-07 08:38:22"
        },
        "credits": "3895077"
    }
}

HTTP Request

GET api/panel/smtp/{id}

Query Parameters

Parameter Status Description
id required ID do SMTP criado.

Panel\Smtp\Smtp\showByDomain

Visualiza detalhes de um SMTP por Domínio.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{domain}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{domain}");

    let params = {
            "domain": "IcV7DThV5917rS8s",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 98069863005,
        "user_id": 54810081060,
        "node_id": 1,
        "plan_type": "advanced",
        "domain": "iporto.io",
        "dkim": "{\"_domainkey\":{\"TTL\":\"3600\",\"TXT\":\"'t=y; o=~;'\"},\"mail._domainkey\":{\"TTL\":\"3600\",\"TXT\":\"\\\"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyisWSNpq439bsDhtR2r6VqJxa\\ntgO5AaJ0x7BXG8nCOwOZ0Fyc77tT10UwRfWoOXznjVnm+J6iEU1owAVqK4RpWeq7\\nhUpW9kehxKtoE04Q+XLa3QOT4iF043ocn31DkCRIvxk+Z3zsAD8yUpXavtuTh1dJ\\n0T6LNbP7MIEr9y6Q8wIDAQAB\\\"\"}}",
        "record_mx": "mx.iporto.net.br",
        "record_web": "127.0.0.1",
        "configured_spf": "no",
        "configured_dkim": "no",
        "finished_at": "2019-03-07 08:38:09",
        "status": "created",
        "deleted_at": null,
        "created_at": "2019-03-07 08:37:10",
        "updated_at": "2019-03-07 08:38:11",
        "display_at": "2019-03-07 08:38:21",
        "dkim_txt": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyisWSNpq439bsDhtR2r6VqJxatgO5AaJ0x7BXG8nCOwOZ0Fyc77tT10UwRfWoOXznjVnm+J6iEU1owAVqK4RpWeq7hUpW9kehxKtoE04Q+XLa3QOT4iF043ocn31DkCRIvxk+Z3zsAD8yUpXavtuTh1dJ0T6LNbP7MIEr9y6Q8wIDAQAB",
        "accounts": [],
        "node": {
            "id": 1,
            "client_id": null,
            "user_id": null,
            "plan_type": "advanced",
            "ip": "104.236.229.156",
            "domain": "smtp-avancado.com",
            "spf": "v=spf1 include:spf.smtp-avancado.com -all",
            "max_mail_size": 20480,
            "max_cco": 50,
            "deleted_at": null,
            "created_at": "2018-10-09 18:23:47",
            "updated_at": "2018-10-09 18:23:54",
            "display_at": "2019-03-07 08:38:22"
        },
        "credits": "3895077"
    }
}

HTTP Request

GET api/panel/smtp/{domain}

Query Parameters

Parameter Status Description
domain required Domínio do SMTP criado.

Panel\Smtp\Smtp\destroy

Remove um domínio de SMTP por ID.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X DELETE "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{id}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{id}");

    let params = {
            "id": "rD9OBn3nHbfsUqW6",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 98069863005,
        "user_id": 54810081060,
        "node_id": 1,
        "plan_type": "advanced",
        "domain": "iporto.io",
        "dkim": "{\"_domainkey\":{\"TTL\":\"3600\",\"TXT\":\"'t=y; o=~;'\"},\"mail._domainkey\":{\"TTL\":\"3600\",\"TXT\":\"\\\"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyisWSNpq439bsDhtR2r6VqJxa\\ntgO5AaJ0x7BXG8nCOwOZ0Fyc77tT10UwRfWoOXznjVnm+J6iEU1owAVqK4RpWeq7\\nhUpW9kehxKtoE04Q+XLa3QOT4iF043ocn31DkCRIvxk+Z3zsAD8yUpXavtuTh1dJ\\n0T6LNbP7MIEr9y6Q8wIDAQAB\\\"\"}}",
        "record_mx": "mx.iporto.net.br",
        "record_web": "127.0.0.1",
        "configured_spf": "no",
        "configured_dkim": "no",
        "finished_at": "2019-03-07 08:38:09",
        "status": "created",
        "deleted_at": {
            "date": "2019-03-07 08:41:51.468040",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "created_at": "2019-03-07 08:37:10",
        "updated_at": "2019-03-07 08:41:51",
        "display_at": "2019-03-07 08:41:52",
        "dkim_txt": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyisWSNpq439bsDhtR2r6VqJxatgO5AaJ0x7BXG8nCOwOZ0Fyc77tT10UwRfWoOXznjVnm+J6iEU1owAVqK4RpWeq7hUpW9kehxKtoE04Q+XLa3QOT4iF043ocn31DkCRIvxk+Z3zsAD8yUpXavtuTh1dJ0T6LNbP7MIEr9y6Q8wIDAQAB",
        "accounts": [],
        "node": {
            "id": 1,
            "client_id": null,
            "user_id": null,
            "plan_type": "advanced",
            "ip": "104.236.229.156",
            "domain": "smtp-avancado.com",
            "spf": "v=spf1 include:spf.smtp-avancado.com -all",
            "max_mail_size": 20480,
            "max_cco": 50,
            "deleted_at": null,
            "created_at": "2018-10-09 18:23:47",
            "updated_at": "2018-10-09 18:23:54",
            "display_at": "2019-03-07 08:41:52"
        },
        "credits": "3895077"
    }
}

HTTP Request

DELETE api/panel/smtp/{id}

Query Parameters

Parameter Status Description
id required ID do SMTP criado.

Panel\Smtp\Smtp\destroyByDomain

Remove um domínio de SMTP por Domínio.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X DELETE "http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{domain}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/smtp/{domain}");

    let params = {
            "domain": "YFYdExuUCdYhmV2r",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 98069863005,
        "user_id": 54810081060,
        "node_id": 1,
        "plan_type": "advanced",
        "domain": "iporto.io",
        "dkim": "{\"_domainkey\":{\"TTL\":\"3600\",\"TXT\":\"'t=y; o=~;'\"},\"mail._domainkey\":{\"TTL\":\"3600\",\"TXT\":\"\\\"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyisWSNpq439bsDhtR2r6VqJxa\\ntgO5AaJ0x7BXG8nCOwOZ0Fyc77tT10UwRfWoOXznjVnm+J6iEU1owAVqK4RpWeq7\\nhUpW9kehxKtoE04Q+XLa3QOT4iF043ocn31DkCRIvxk+Z3zsAD8yUpXavtuTh1dJ\\n0T6LNbP7MIEr9y6Q8wIDAQAB\\\"\"}}",
        "record_mx": "mx.iporto.net.br",
        "record_web": "127.0.0.1",
        "configured_spf": "no",
        "configured_dkim": "no",
        "finished_at": "2019-03-07 08:38:09",
        "status": "created",
        "deleted_at": {
            "date": "2019-03-07 08:41:51.468040",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "created_at": "2019-03-07 08:37:10",
        "updated_at": "2019-03-07 08:41:51",
        "display_at": "2019-03-07 08:41:52",
        "dkim_txt": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyisWSNpq439bsDhtR2r6VqJxatgO5AaJ0x7BXG8nCOwOZ0Fyc77tT10UwRfWoOXznjVnm+J6iEU1owAVqK4RpWeq7hUpW9kehxKtoE04Q+XLa3QOT4iF043ocn31DkCRIvxk+Z3zsAD8yUpXavtuTh1dJ0T6LNbP7MIEr9y6Q8wIDAQAB",
        "accounts": [],
        "node": {
            "id": 1,
            "client_id": null,
            "user_id": null,
            "plan_type": "advanced",
            "ip": "104.236.229.156",
            "domain": "smtp-avancado.com",
            "spf": "v=spf1 include:spf.smtp-avancado.com -all",
            "max_mail_size": 20480,
            "max_cco": 50,
            "deleted_at": null,
            "created_at": "2018-10-09 18:23:47",
            "updated_at": "2018-10-09 18:23:54",
            "display_at": "2019-03-07 08:41:52"
        },
        "credits": "3895077"
    }
}

HTTP Request

DELETE api/panel/smtp/{domain}

Query Parameters

Parameter Status Description
domain required DOMINIO do SMTP criado.

Panel\Task\Task

Gerenciamento de TAREFAS. TAREFAS são iniciadas quando ações precisam rodar em "segundo plano".

Panel\Task\Task\show

Mostra detalhes de uma TAREFA.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "http://api-smtp-por-credito.iporto.com.br/api/panel/task/{id}" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3"
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/task/{id}");

    let params = {
            "id": "ttX7qal95jGvwI9J",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "object_id": 1,
        "raw": "{\"name\":\"Listsa de Contatos - Primeira Lista de Contatos\",\"object_id\":14}",
        "retries": 0,
        "status": "awaiting",
        "created_at": "2019-06-07 17:39:55",
        "updated_at": "2019-06-07 17:39:55",
        "display_at": "2019-06-07 17:44:29"
    }
}

HTTP Request

GET api/panel/task/{id}

Query Parameters

Parameter Status Description
id required ID DA TAREFA. Ex: 1

Panel\Task\Task\store

Cria uma nova TAREFA;

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "http://api-smtp-por-credito.iporto.com.br/api/panel/task" \
    -H "Authorization: Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I" \
    -H "Api-Version: v3" \
    -H "Content-Type: application/json" \
    -d '{"name":"fcAZecRAku3seYjc","object_id":"cgryHO0mCCstl3uz"}'
const url = new URL("http://api-smtp-por-credito.iporto.com.br/api/panel/task");

let headers = {
    "Authorization": "Bearer ayJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjY2ZGNlODlkMWFlOTYxODg4Y2EwMmViYzg2YWYxMWMxMGZjMTljYmQ1YTc0OGUyNWU5NjgwYjY5YzNhOTFmNzkxNjViNzk1ZDVmZGM5YTg0In0.eyJhdWQiOiIxIiwianRpIjoiNjZkY2U4OWQxYWU5NjE4ODhjYTAyZWJjODZhZjExYzEwZmMxOWNiZDVhNzQ4ZTI1ZTk2ODBiNjljM2E5MWY3OTE2NWI3OTVkNWZkYzlhODQiLCJpYXQiOjE1NDkzOTc0MjUsIm5iZiI6MTU0OTM5NzQyNSwiZXhwIjoxNTgwOTMzNDI1LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.AVIPt98C-Pm9Zd44Gi5qJyteF0lQbvR5Qfhgdqu82XZaReaRunItI_daBSeWE6fugzlHQ9xeCQEC55PTF5Q_Ffp8ApuQYaPL3At6aiJFXtP5d8hl0rgKKucaCZ1b8xrz47Fum3qycaS7wy8rZK8tI2gSsw6CkkavfF0Q2RooOfZD2nIgIXtkm-_pytYjRHodYKr-wdQ1SpY7T5WoxXNYvbNiJKl1-Li2Sj14CIAY_0NB3igc9lHsqFjd5NUCS5pMtyX0MthezD9UC5UMeUMBqbltZUd66EIkBFk-a_wbwKkCTv_aXe-nbzGFd74uEGxkJRgzp0AF7vMQmadHimTs10d-yGMD-hk0Mcbam2-msoHAd6cM04Cxzt545krcuTdbsGu5nEUghfwU37A6R-sSXjpHNHf-gLFyNIP_fmyAF0WCBoyvgpsfdUmsZ1D07WwoXYfkpHE7FpK_SlKCrCj3TrACqNzn8qcHpnpfLiBpAE-nWGS1MXQ81xTW6Ne3v8tfeaCMraMkAJfhUc-VBZOEMbcLwivrYhqdvrzr07zSHIoNDB3qjA7OXgYroFQMcdVy2igYqSMAcyH_9JpfDuRxl28i1l1OlYM-TU9s4GmKGetuCArX9yDEq2OOtVGOwm9-tFEYzlfW1oNUvHpsOy2Nf1COVAHOiVHmnCvIpNVdW7I",
    "Api-Version": "v3",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "name": "fcAZecRAku3seYjc",
    "object_id": "cgryHO0mCCstl3uz"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": []
}

HTTP Request

POST api/panel/task

Body Parameters

Parameter Type Status Description
name string required NOME DA TAREFA. Ex: Dados do Cliente
object_id string required ID DO OBJETO PRINCIPAL. Ex: 1