NAV
bash javascript

Info

Welcome to the generated API reference. Get Postman Collection

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 "https://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":"et"}'
const url = new URL("https://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": "et"
}

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 "https://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("https://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 "https://api-smtp-por-credito.iporto.com.br/api/token/revoke/1?token_id=dolor" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/token/revoke/1");

    let params = {
            "token_id": "dolor",
        };
    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 "https://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":"tenetur","password":"illum"}'
const url = new URL("https://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": "tenetur",
    "password": "illum"
}

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/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 "https://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("https://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 "https://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("https://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 "https://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("https://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": {}
}

HTTP Request

GET api/panel/credit

Panel\Credit\Credit\availability

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://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("https://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": {}
}

HTTP Request

GET api/panel/credit/availability

Panel\Credit\Credit\usage

Mostra os dados para report na Credit.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/credit/usage" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/credit/usage");

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": {}
}

HTTP Request

GET api/panel/credit/usage

Panel\Credit\Credit\buy

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/credit/buy/1/1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/credit/buy/1/1");

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": {}
}

HTTP Request

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

Panel\Credit\Credit\price

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/credit/price/1/1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/credit/price/1/1");

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": {}
}

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 "https://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("https://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": {}
}

HTTP Request

GET api/panel/limit

Panel\Pkg\Automation\Event\Event

Gerenciamento de Pkg: AUTOMAÇÕES.

Panel\Pkg\Automation\Event\Event\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/event?search=corrupti&status=maiores" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/event");

    let params = {
            "search": "corrupti",
            "status": "maiores",
        };
    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": [],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/pkg/automation/event

Query Parameters

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

Panel\Pkg\Automation\Event\Event\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/event/1?id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/event/1");

    let params = {
            "id": "1",
        };
    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": {}
}

HTTP Request

GET api/panel/pkg/automation/event/{id}

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Automation\Template\Template

Gerenciamento de Pkg: AUTOMAÇÕES.

Panel\Pkg\Automation\Template\Template\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/template?search=nobis&status=quidem" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/template");

    let params = {
            "search": "nobis",
            "status": "quidem",
        };
    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": [],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/pkg/automation/template

Query Parameters

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

Panel\Pkg\Automation\Template\Template\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/template/1?id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/template/1");

    let params = {
            "id": "1",
        };
    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": {}
}

HTTP Request

GET api/panel/pkg/automation/template/{id}

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Automation\Workflow\Flow

Gerenciamento de Pkg: AUTOMAÇÕES. Workflow

Panel\Pkg\Automation\Workflow\Flow\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow/1/flow?workflow_id=1" \
    -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 '{"event_slug":"AddressbookContactSubscription","event_data":"\"{}\"","flow_type":"neutral","parent_id":"1"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow/1/flow");

    let params = {
            "workflow_id": "1",
        };
    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 = {
    "event_slug": "AddressbookContactSubscription",
    "event_data": "\"{}\"",
    "flow_type": "neutral",
    "parent_id": "1"
}

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

Example response (200):

null

HTTP Request

POST api/panel/pkg/automation/workflow/{workflow_id}/flow

Body Parameters

Parameter Type Status Description
event_slug string required NOME.
event_data string required CONTEÚDO, JSON, DO FLUXO.
flow_type string required TIPO DE FLUXO (positive,negative,neutral).
parent_id string required ID DO FLUXO PAI.

Query Parameters

Parameter Status Description
workflow_id required ID DO DA AUTOMAÇÃO.

Panel\Pkg\Automation\Workflow\Flow\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow/1/flow?workflow_id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow/1/flow");

    let params = {
            "workflow_id": "1",
        };
    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": "Automação de Compra",
        "description": "-",
        "from_email": "dev@iporto.io",
        "from_name": "Frederido",
        "perform_run": "once_time",
        "status": "active",
        "created_at": "2019-06-18 19:56:10",
        "updated_at": "2019-06-18 19:56:10",
        "deleted_at": null,
        "display_at": "2019-06-19 17:21:12",
        "trigger": {
            "id": 1,
            "client_id": 1,
            "event_id": 1,
            "workflow_id": 1,
            "addressbook_id": null,
            "object_id": null,
            "object_type": "",
            "event_slug": "AddressbookContactSubscription",
            "name": "Gatilho por Nova Inscrição",
            "created_at": "2019-06-19 17:20:49",
            "updated_at": "2019-06-19 17:20:49",
            "display_at": "2019-06-19 17:21:12"
        }
    }
}

HTTP Request

GET api/panel/pkg/automation/workflow/{workflow_id}/flow

Query Parameters

Parameter Status Description
workflow_id required ID DO DA AUTOMAÇÃO.

Panel\Pkg\Automation\Workflow\Flow\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X PUT "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow/1/flow/1?workflow_id=1" \
    -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 '{"addressbook_id":"1","object_id":"NULL","object_type":"Panel\\Service\\Addressbook\\Contact","name":"Gatilho por Nova Inscri\u00e7\u00e3o"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow/1/flow/1");

    let params = {
            "workflow_id": "1",
        };
    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 = {
    "addressbook_id": "1",
    "object_id": "NULL",
    "object_type": "Panel\\Service\\Addressbook\\Contact",
    "name": "Gatilho por Nova Inscri\u00e7\u00e3o"
}

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,
        "name": "Automação de Compra",
        "description": "-",
        "from_email": "dev@iporto.io",
        "from_name": "Frederido",
        "perform_run": "once_time",
        "status": "active",
        "created_at": "2019-06-18 18:51:45",
        "updated_at": "2019-06-18 18:51:45",
        "deleted_at": null,
        "display_at": "2019-06-18 18:51:45"
    }
}

HTTP Request

PUT api/panel/pkg/automation/workflow/{workflow_id}/flow/{id}

Body Parameters

Parameter Type Status Description
addressbook_id string optional ID DA LISTA DE CONTATOS.
object_id string optional ID DO OBJETO RELACIONADO.
object_type string optional TIPO DO OBJETO RELACIONADO.
name string required NOME DA TRIGGER.

Query Parameters

Parameter Status Description
workflow_id required ID DO DA AUTOMAÇÃO.

Panel\Pkg\Automation\Workflow\Flow\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X DELETE "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow/1/flow/1?id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow/1/flow/1");

    let params = {
            "id": "1",
        };
    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": "Automação de Compra",
        "description": "-",
        "from_email": "dev@iporto.io",
        "from_name": "Frederido",
        "perform_run": "once_time",
        "status": "active",
        "created_at": "2019-06-18 18:51:45",
        "updated_at": "2019-06-18 18:52:43",
        "deleted_at": {
            "date": "2019-06-18 18:52:43.511439",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "display_at": "2019-06-18 18:52:43"
    }
}

HTTP Request

DELETE api/panel/pkg/automation/workflow/{workflow_id}/flow/{id}

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Automation\Workflow\Workflow

Gerenciamento de Pkg: AUTOMAÇÕES. Workflow

Panel\Pkg\Automation\Workflow\Workflow\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow?search=dolorum&status=aperiam" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow");

    let params = {
            "search": "dolorum",
            "status": "aperiam",
        };
    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,
            "smtp_account_id": 1,
            "name": "Automação de Compra",
            "description": "-",
            "perform_run": "once_time",
            "status": "active",
            "created_at": "2019-06-18 18:49:28",
            "updated_at": "2019-06-18 18:49:28",
            "deleted_at": null,
            "display_at": "2019-06-18 18:49:44"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/pkg/automation/workflow

Query Parameters

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

Panel\Pkg\Automation\Workflow\Workflow\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow" \
    -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 '{"smtp_account_id":"1","name":"Automa\u00e7\u00e3o de Compra","description":"-","perform_run":"once_time","status":"active"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow");

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 = {
    "smtp_account_id": "1",
    "name": "Automa\u00e7\u00e3o de Compra",
    "description": "-",
    "perform_run": "once_time",
    "status": "active"
}

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": 1,
        "smtp_account_id": 1,
        "name": "Automação de Compra",
        "description": "-",
        "perform_run": "once_time",
        "status": "active",
        "created_at": "2019-06-18 18:51:45",
        "updated_at": "2019-06-18 18:51:45",
        "deleted_at": null,
        "display_at": "2019-06-18 18:51:45"
    }
}

HTTP Request

POST api/panel/pkg/automation/workflow

Body Parameters

Parameter Type Status Description
smtp_account_id string required ID DA CONTA DE SMTP QUE SERÁ UTILIZADO PARA AUTENTICAR OS ENVIOS.
name string required NOME.
description string required DESCRIÇÃO.
perform_run string required QUANDO SERÁ EXECUTADA AUTOMAÇÃO, POR CONTATO (once_time,multiple_times).
status string required STATUS (draft,active,inactive).

Panel\Pkg\Automation\Workflow\Workflow\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow/1?id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow/1");

    let params = {
            "id": "1",
        };
    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,
        "smtp_account_id": 1,
        "name": "Automação de Compra",
        "description": "-",
        "perform_run": "once_time",
        "status": "active",
        "created_at": "2019-06-18 18:51:45",
        "updated_at": "2019-06-18 18:51:45",
        "deleted_at": null,
        "display_at": "2019-06-18 18:51:45"
    }
}

HTTP Request

GET api/panel/pkg/automation/workflow/{id}

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Automation\Workflow\Workflow\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X PUT "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow/1?id=1" \
    -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 '{"smtp_account_id":"1","name":"Automa\u00e7\u00e3o de Compra","description":"-","perform_run":"once_time","status":"active"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow/1");

    let params = {
            "id": "1",
        };
    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 = {
    "smtp_account_id": "1",
    "name": "Automa\u00e7\u00e3o de Compra",
    "description": "-",
    "perform_run": "once_time",
    "status": "active"
}

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,
        "smtp_account_id": 1,
        "name": "Automação de Compra",
        "description": "-",
        "perform_run": "once_time",
        "status": "active",
        "created_at": "2019-06-18 18:51:45",
        "updated_at": "2019-06-18 18:51:45",
        "deleted_at": null,
        "display_at": "2019-06-18 18:51:45"
    }
}

HTTP Request

PUT api/panel/pkg/automation/workflow/{id}

Body Parameters

Parameter Type Status Description
smtp_account_id string required ID DA CONTA DE SMTP QUE SERÁ UTILIZADO PARA AUTENTICAR OS ENVIOS.
name string required NOME.
description string required DESCRIÇÃO.
perform_run string required QUANDO SERÁ EXECUTADA AUTOMAÇÃO, POR CONTATO (once_time,multiple_times).
status string required STATUS (draft,active,inactive).

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Automation\Workflow\Workflow\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X DELETE "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow/1?id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/automation/workflow/1");

    let params = {
            "id": "1",
        };
    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,
        "smtp_account_id": 1,
        "name": "Automação de Compra",
        "description": "-",
        "perform_run": "once_time",
        "status": "active",
        "created_at": "2019-06-18 18:51:45",
        "updated_at": "2019-06-18 18:52:43",
        "deleted_at": {
            "date": "2019-06-18 18:52:43.511439",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "display_at": "2019-06-18 18:52:43"
    }
}

HTTP Request

DELETE api/panel/pkg/automation/workflow/{id}

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Form\Content\Field

Gerenciamento de Pkg: FORMULÁRIOS. Fields

Panel\Pkg\Form\Content\Field\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1?form_id=1" \
    -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 '{"label":"Qual seu nome?","required":"no","field_type":"text"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1");

    let params = {
            "form_id": "1",
        };
    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 = {
    "label": "Qual seu nome?",
    "required": "no",
    "field_type": "text"
}

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/pkg/form/form/{form_id}

Body Parameters

Parameter Type Status Description
label string required LABEL/DESCRIÇÃO DO FIELD.
required string required SE O FIELD É REQUERIDO OU NÃO.
field_type string required TIPO DE FIELD (text,textarea,dropdown,email,phone,date,number,upload,payment,website,optionscale,rating).

Query Parameters

Parameter Status Description
form_id required ID DO FORMULÁRIO QUE RECEBERÁ O FIELD.

Panel\Pkg\Form\Content\Field\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1/field/1?form_id=1&id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1/field/1");

    let params = {
            "form_id": "1",
            "id": "1",
        };
    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": {}
}

HTTP Request

GET api/panel/pkg/form/form/{form_id}/field/{id}

Query Parameters

Parameter Status Description
form_id required ID DO FORMULÁRIO QUE RECEBERÁ O FIELD.
id required ID DO ITEM.

Panel\Pkg\Form\Content\Field\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X PUT "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1/field/1?form_id=1&id=1" \
    -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 '{"label":"Qual seu nome?","required":"no"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1/field/1");

    let params = {
            "form_id": "1",
            "id": "1",
        };
    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 = {
    "label": "Qual seu nome?",
    "required": "no"
}

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

Example response (200):

{
    "data": {}
}

HTTP Request

PUT api/panel/pkg/form/form/{form_id}/field/{id}

Body Parameters

Parameter Type Status Description
label string required LABEL/DESCRIÇÃO DO FIELD.
required string required SE O FIELD É REQUERIDO OU NÃO.

Query Parameters

Parameter Status Description
form_id required ID DO FORMULÁRIO QUE RECEBERÁ O FIELD.
id required ID DO ITEM.

Panel\Pkg\Form\Content\Field\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X DELETE "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1/field/1?form_id=1&id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1/field/1");

    let params = {
            "form_id": "1",
            "id": "1",
        };
    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": {}
}

HTTP Request

DELETE api/panel/pkg/form/form/{form_id}/field/{id}

Query Parameters

Parameter Status Description
form_id required ID DO FORMULÁRIO QUE RECEBERÁ O FIELD.
id required ID DO ITEM.

Panel\Pkg\Form\Form

Gerenciamento de Pkg: FORMULÁRIOS. Form

Panel\Pkg\Form\Form\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form?search=non&status=iure" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form");

    let params = {
            "search": "non",
            "status": "iure",
        };
    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": 1,
            "name": "Formulário do E-book",
            "configurations": "{}",
            "style": "EKdU8OxA3Bt26z0S",
            "status": "active",
            "form_type": "inline",
            "created_at": "2019-07-17 15:35:57",
            "updated_at": "2019-07-17 15:35:57",
            "deleted_at": null,
            "display_at": "2019-07-17 15:35:58"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/pkg/form/form

Query Parameters

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

Panel\Pkg\Form\Form\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form" \
    -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 '{"addressbook_id":"1","name":"Formul\u00e1rio do E-book","configurations":"{\"pkg_form_content_property_title\":\"Receba nossas Ofertas\",\"pkg_form_content_property_description\":\"Fique por dentro das novidades. Assine nossa lista de transmiss\u00e3o e fique sabendo antes de todos.\",\"pkg_form_content_property_submit\":\"Inscrever-se\"}","style":"quasi","status":"active","form_type":"inline"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form");

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 = {
    "addressbook_id": "1",
    "name": "Formul\u00e1rio do E-book",
    "configurations": "{\"pkg_form_content_property_title\":\"Receba nossas Ofertas\",\"pkg_form_content_property_description\":\"Fique por dentro das novidades. Assine nossa lista de transmiss\u00e3o e fique sabendo antes de todos.\",\"pkg_form_content_property_submit\":\"Inscrever-se\"}",
    "style": "quasi",
    "status": "active",
    "form_type": "inline"
}

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": 1,
        "addressbook_id": 1,
        "name": "Formulário do E-book",
        "configurations": "{}",
        "style": "EKdU8OxA3Bt26z0S",
        "status": "active",
        "form_type": "inline",
        "created_at": "2019-07-17 15:35:57",
        "updated_at": "2019-07-17 15:35:57",
        "deleted_at": null,
        "display_at": "2019-07-17 15:35:58"
    }
}

HTTP Request

POST api/panel/pkg/form/form

Body Parameters

Parameter Type Status Description
addressbook_id string required ID DA CONTA LISTA DE CONTATOS QUE RECEBERÁ OS CONTATOS.
name string required NOME.
configurations string optional JSON COM CONFIGURAÇÕES DO FORMULÁRIO.
style string optional CSS/FOLHA DE ESTILO PARA APLICAR AO FORMULÁRIO.
status string required STATUS (draft,active,inactive).
form_type string required TIPO DE FORMULÁRIO (inline,popup).

Panel\Pkg\Form\Form\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1?id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1");

    let params = {
            "id": "1",
        };
    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": 1,
        "name": "Formulário do E-book",
        "configurations": "{}",
        "style": "EKdU8OxA3Bt26z0S",
        "status": "active",
        "form_type": "inline",
        "created_at": "2019-07-17 15:35:57",
        "updated_at": "2019-07-17 15:35:57",
        "deleted_at": null,
        "display_at": "2019-07-17 15:35:58"
    }
}

HTTP Request

GET api/panel/pkg/form/form/{id}

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Form\Form\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X PUT "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1?id=1" \
    -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 '{"addressbook_id":"1","name":"Formul\u00e1rio do E-book","configurations":"{\"pkg_form_content_property_title\":\"Receba nossas Ofertas\",\"pkg_form_content_property_description\":\"Fique por dentro das novidades. Assine nossa lista de transmiss\u00e3o e fique sabendo antes de todos.\",\"pkg_form_content_property_submit\":\"Inscrever-se\"}","style":"iste","status":"active"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1");

    let params = {
            "id": "1",
        };
    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 = {
    "addressbook_id": "1",
    "name": "Formul\u00e1rio do E-book",
    "configurations": "{\"pkg_form_content_property_title\":\"Receba nossas Ofertas\",\"pkg_form_content_property_description\":\"Fique por dentro das novidades. Assine nossa lista de transmiss\u00e3o e fique sabendo antes de todos.\",\"pkg_form_content_property_submit\":\"Inscrever-se\"}",
    "style": "iste",
    "status": "active"
}

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": 1,
        "name": "Formulário do E-book",
        "configurations": "{}",
        "style": "EKdU8OxA3Bt26z0S",
        "status": "active",
        "form_type": "inline",
        "created_at": "2019-07-17 15:35:57",
        "updated_at": "2019-07-17 15:35:57",
        "deleted_at": null,
        "display_at": "2019-07-17 15:35:58"
    }
}

HTTP Request

PUT api/panel/pkg/form/form/{id}

Body Parameters

Parameter Type Status Description
addressbook_id string required ID DA CONTA LISTA DE CONTATOS QUE RECEBERÁ OS CONTATOS.
name string required NOME.
configurations string optional JSON COM CONFIGURAÇÕES DO FORMULÁRIO.
style string optional CSS/FOLHA DE ESTILO PARA APLICAR AO FORMULÁRIO.
status string required STATUS (draft,active,inactive).

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Form\Form\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X DELETE "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1?id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1");

    let params = {
            "id": "1",
        };
    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": 1,
        "name": "Formulário do E-book",
        "configurations": "{}",
        "style": "EKdU8OxA3Bt26z0S",
        "status": "active",
        "form_type": "inline",
        "created_at": "2019-07-17 15:42:51",
        "updated_at": "2019-07-17 15:43:13",
        "deleted_at": {
            "date": "2019-07-17 15:43:13.396007",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "display_at": "2019-07-17 15:43:14"
    }
}

HTTP Request

DELETE api/panel/pkg/form/form/{id}

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Form\Form\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1/contact?id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1/contact");

    let params = {
            "id": "1",
        };
    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": [
        {}
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/pkg/form/form/{id}/contact

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Form\Page\Thankyou

Gerenciamento de Pkg: FORMULÁRIOS. Page Thankyou

api/panel/pkg/form/form/{form_id}/page/thankyou/{id}

Example request:

curl -X PUT "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1/page/thankyou/1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/form/form/1/page/thankyou/1");

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: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

PUT api/panel/pkg/form/form/{form_id}/page/thankyou/{id}

Panel\Pkg\Marketing\Email\Campaign\Campaign

Gerenciamento de Pkg: MARKETING. Email

Panel\Pkg\Marketing\Email\Campaign\Campaign\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign?search=dolor&status=voluptatem&campaign_type=magni" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign");

    let params = {
            "search": "dolor",
            "status": "voluptatem",
            "campaign_type": "magni",
        };
    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,
            "template_id": 1,
            "smtp_account_id": 1,
            "name": "Campanha de Automação",
            "subject": "Não perca esta oportunidade!",
            "from_name": "Frederico",
            "reply_to": "dev@iporto.io",
            "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavaliação do sistema de participação geral.",
            "status": "active",
            "campaign_type": "automation",
            "created_at": "2019-06-24 19:49:33",
            "updated_at": "2019-06-24 19:49:33",
            "deleted_at": null,
            "display_at": "2019-06-24 19:52:46"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/pkg/marketing/email/campaign

Query Parameters

Parameter Status Description
search optional CAMPO DE BUSCA POR NOME OU ID.
status optional CAMPO DE BUSCA POR STATUS.
campaign_type optional CAMPO DE BUSCA POR CAMPAIGN TYPE.

Panel\Pkg\Marketing\Email\Campaign\Campaign\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign" \
    -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 '{"template_id":"1","smtp_account_id":"1","name":"Campanha de Automa\u00e7\u00e3o","subject":"N\u00e3o perca esta oportunidade!","from_name":"Frederico","reply_to":"dev@iporto.io","content_html":"Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavalia\u00e7\u00e3o do sistema de participa\u00e7\u00e3o geral.","status":"active","campaign_type":"automation"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign");

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 = {
    "template_id": "1",
    "smtp_account_id": "1",
    "name": "Campanha de Automa\u00e7\u00e3o",
    "subject": "N\u00e3o perca esta oportunidade!",
    "from_name": "Frederico",
    "reply_to": "dev@iporto.io",
    "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavalia\u00e7\u00e3o do sistema de participa\u00e7\u00e3o geral.",
    "status": "active",
    "campaign_type": "automation"
}

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": 1,
        "template_id": 1,
        "smtp_account_id": 1,
        "name": "Campanha de Automação",
        "subject": "Não perca esta oportunidade!",
        "from_name": "Frederico",
        "reply_to": "dev@iporto.io",
        "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavaliação do sistema de participação geral.",
        "status": "active",
        "campaign_type": "automation",
        "created_at": "2019-06-24 19:49:33",
        "updated_at": "2019-06-24 19:49:33",
        "deleted_at": null,
        "display_at": "2019-06-24 19:49:34"
    }
}

HTTP Request

POST api/panel/pkg/marketing/email/campaign

Body Parameters

Parameter Type Status Description
template_id string optional ID DO TEMPLATE DE CAMPANHA.
smtp_account_id string required ID DA CONTA DE SMTP QUE SERÁ UTILIZADO PARA AUTENTICAR OS ENVIOS.
name string required NOME DA CAMPANHA USADO PARA CONTROLE INTERNO.
subject string required ASSUNTO DA CAMPANHA.
from_name string required NOME USADO COMO FROM DA CAMPANHA.
reply_to string required E-MAIL QUE RECEBERÁ AS RESPOSTAS DOS E-MAILS.
content_html string optional CONTEÚDO DA CAMPANHA.
status string required STATUS (draft,active,inactive).
campaign_type string required TIPO DE CAMPANHA (regular,plaintext,variate,automation).

Panel\Pkg\Marketing\Email\Campaign\Campaign\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1?id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1");

    let params = {
            "id": "1",
        };
    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,
        "template_id": 1,
        "smtp_account_id": 1,
        "name": "Campanha de Automação",
        "subject": "Não perca esta oportunidade!",
        "from_name": "Frederico",
        "reply_to": "dev@iporto.io",
        "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavaliação do sistema de participação geral.",
        "status": "active",
        "campaign_type": "automation",
        "created_at": "2019-06-24 19:49:33",
        "updated_at": "2019-06-24 19:49:33",
        "deleted_at": null,
        "display_at": "2019-06-24 19:49:34"
    }
}

HTTP Request

GET api/panel/pkg/marketing/email/campaign/{id}

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Marketing\Email\Campaign\Campaign\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X PUT "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1?id=1" \
    -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 '{"template_id":"1","smtp_account_id":"1","name":"Campanha de Automa\u00e7\u00e3o","subject":"N\u00e3o perca esta oportunidade!","from_name":"Frederico","reply_to":"dev@iporto.io","content_html":"Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavalia\u00e7\u00e3o do sistema de participa\u00e7\u00e3o geral.","status":"active","campaign_type":"automation"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1");

    let params = {
            "id": "1",
        };
    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 = {
    "template_id": "1",
    "smtp_account_id": "1",
    "name": "Campanha de Automa\u00e7\u00e3o",
    "subject": "N\u00e3o perca esta oportunidade!",
    "from_name": "Frederico",
    "reply_to": "dev@iporto.io",
    "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavalia\u00e7\u00e3o do sistema de participa\u00e7\u00e3o geral.",
    "status": "active",
    "campaign_type": "automation"
}

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,
        "template_id": 1,
        "smtp_account_id": 1,
        "name": "Campanha de Automação",
        "subject": "Não perca esta oportunidade!",
        "from_email": "dev@iporto.io",
        "from_name": "Frederico",
        "reply_to": "dev@iporto.io",
        "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavaliação do sistema de participação geral.",
        "status": "active",
        "campaign_type": "automation",
        "created_at": "2019-06-24 19:49:33",
        "updated_at": "2019-06-24 19:49:33",
        "deleted_at": null,
        "display_at": "2019-06-24 19:49:34"
    }
}

HTTP Request

PUT api/panel/pkg/marketing/email/campaign/{id}

Body Parameters

Parameter Type Status Description
template_id string optional ID DO TEMPLATE DE CAMPANHA.
smtp_account_id string required ID DA CONTA DE SMTP QUE SERÁ UTILIZADO PARA AUTENTICAR OS ENVIOS.
name string required NOME DA CAMPANHA USADO PARA CONTROLE INTERNO.
subject string required ASSUNTO DA CAMPANHA.
from_name string required NOME USADO COMO FROM DA CAMPANHA.
reply_to string required E-MAIL QUE RECEBERÁ AS RESPOSTAS DOS E-MAILS.
content_html string optional CONTEÚDO DA CAMPANHA.
status string required STATUS (draft,active,inactive).
campaign_type string required TIPO DE CAMPANHA (regular,plaintext,variate,automation).

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Marketing\Email\Campaign\Campaign\template

Atualiza o template de uma campanha.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X PUT "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/template?id=1" \
    -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 '{"template_id":"1"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/template");

    let params = {
            "id": "1",
        };
    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 = {
    "template_id": "1"
}

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,
        "template_id": 1,
        "smtp_account_id": 1,
        "name": "Campanha de Automação",
        "subject": "Não perca esta oportunidade!",
        "from_email": "dev@iporto.io",
        "from_name": "Frederico",
        "reply_to": "dev@iporto.io",
        "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavaliação do sistema de participação geral.",
        "status": "active",
        "campaign_type": "automation",
        "created_at": "2019-06-24 19:49:33",
        "updated_at": "2019-06-24 19:49:33",
        "deleted_at": null,
        "display_at": "2019-06-24 19:49:34"
    }
}

HTTP Request

PUT api/panel/pkg/marketing/email/campaign/{id}/template

Body Parameters

Parameter Type Status Description
template_id string required ID DO TEMPLATE DE CAMPANHA.

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Marketing\Email\Campaign\Campaign\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X DELETE "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1?id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1");

    let params = {
            "id": "1",
        };
    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,
        "template_id": 1,
        "smtp_account_id": 1,
        "name": "Campanha de Automação 2",
        "subject": "Não perca esta oportunidade!",
        "from_name": "Frederico",
        "reply_to": "dev@iporto.io",
        "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavaliação do sistema de participação geral.",
        "status": "active",
        "campaign_type": "automation",
        "created_at": "2019-06-24 19:50:26",
        "updated_at": "2019-06-24 19:50:34",
        "deleted_at": {
            "date": "2019-06-24 19:50:34.218945",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "display_at": "2019-06-24 19:50:34"
    }
}

HTTP Request

DELETE api/panel/pkg/marketing/email/campaign/{id}

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Marketing\Email\Campaign\Campaign\test

Faz o envio de um Teste para o E-mail selecionado visualizar a campanha.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/test?id=1" \
    -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 '{"recipients":"frederido@iporto.io"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/test");

    let params = {
            "id": "1",
        };
    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 = {
    "recipients": "frederido@iporto.io"
}

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/pkg/marketing/email/campaign/{id}/test

Body Parameters

Parameter Type Status Description
recipients string required E-MAIL DE QUEM DEVE RECEBER A CAMPANHA DE TESTE.

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Marketing\Email\Campaign\Campaign\action

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/action" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/action");

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": [
        {}
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/pkg/marketing/email/campaign/action

Panel\Pkg\Marketing\Email\Campaign\Dispatch\Schedule

Gerenciamento de Pkg: MARKETING. Email

Panel\Pkg\Marketing\Email\Campaign\Dispatch\Schedule\store

Promove o início de uma campanha.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/schedule?campaign_id=1" \
    -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 '{"send_at":"1","plan_type":"1"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/schedule");

    let params = {
            "campaign_id": "1",
        };
    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 = {
    "send_at": "1",
    "plan_type": "1"
}

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/pkg/marketing/email/campaign/{campaign_id}/schedule

Body Parameters

Parameter Type Status Description
send_at string required DATA EM QUE UM ENVIO DEVE SER INICIADO.
plan_type string required TIPO DE PLANO QUE SERÁ USADO PARA PROCESSAR O ENVIO.

Query Parameters

Parameter Status Description
campaign_id optional string required ID DA CAMPANHA.

Panel\Pkg\Marketing\Email\Campaign\Dispatch\Schedule\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X DELETE "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/schedule/1?id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/schedule/1");

    let params = {
            "id": "1",
        };
    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": {}
}

HTTP Request

DELETE api/panel/pkg/marketing/email/campaign/{campaign_id}/schedule/{id}

Query Parameters

Parameter Status Description
id required ID DO ITEM.

Panel\Pkg\Marketing\Email\Campaign\Recipient

Gerenciamento de Pkg: MARKETING. Email

Panel\Pkg\Marketing\Email\Campaign\Recipient\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X PUT "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/recipient/addressbook/1?campaign_id=1&addressbook_id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/recipient/addressbook/1");

    let params = {
            "campaign_id": "1",
            "addressbook_id": "1",
        };
    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: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "data": {}
}

HTTP Request

PUT api/panel/pkg/marketing/email/campaign/{campaign_id}/recipient/addressbook/{addressbook_id}

Query Parameters

Parameter Status Description
campaign_id required ID DA CAMPANHA.
addressbook_id required ID DA LISTA DE CONTATOS.

Panel\Pkg\Marketing\Email\Campaign\Report\Action

Gerenciamento de CONTATOS.

Panel\Pkg\Marketing\Email\Campaign\Report\Action\store

Mostra os dados para report na Dashboard.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/report" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/marketing/email/campaign/report");

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": {}
}

HTTP Request

GET api/panel/pkg/marketing/email/campaign/report

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 "https://api-smtp-por-credito.iporto.com.br/api/panel/addressbook?search=officiis" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/addressbook");

    let params = {
            "search": "officiis",
        };
    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\contacts

Lista todos ao CONTATOS de uma LISTAS DE CONTATOS.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/addressbook/1/contacts?id=et" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/addressbook/1/contacts");

    let params = {
            "id": "et",
        };
    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/{id}/contacts

Query Parameters

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

Panel\Service\Addressbook\Addressbook\store

Faz o cadastro de uma nova LISTA DE CONTATOS.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "https://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":"nisi"}'
const url = new URL("https://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": "nisi"
}

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 "https://api-smtp-por-credito.iporto.com.br/api/panel/addressbook/1?id=ut" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/addressbook/1");

    let params = {
            "id": "ut",
        };
    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 "https://api-smtp-por-credito.iporto.com.br/api/panel/addressbook/1?id=adipisci" \
    -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":"quasi"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/addressbook/1");

    let params = {
            "id": "adipisci",
        };
    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": "quasi"
}

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 "https://api-smtp-por-credito.iporto.com.br/api/panel/addressbook/1?id=error" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/addressbook/1");

    let params = {
            "id": "error",
        };
    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\show

Mostra detalhes de um CONTATO.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/contact/1?id=possimus" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/contact/1");

    let params = {
            "id": "possimus",
        };
    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\store

Faz o cadastro de um novo CONTATO em uma LISTA DE CONTATOS.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "https://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" \
    -H "Content-Type: application/json" \
    -d '{"addressbook_id":"deserunt","name":"ut","email":"itaque"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/contact");

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 = {
    "addressbook_id": "deserunt",
    "name": "ut",
    "email": "itaque"
}

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/contact

Body Parameters

Parameter Type Status Description
addressbook_id string required ID DA LISTA DE CONTATOS. Ex: 1
name string required NOME DO CONTATO. Ex: Frederico
email string required EMAIL DO CONTATO. Ex: dev@iporto.io

Panel\Service\Addressbook\Contact\update

Atualiza detalhes de um CONTATO.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X PUT "https://api-smtp-por-credito.iporto.com.br/api/panel/contact/1?id=ut" \
    -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":"qui","addressbook_id":"aut","email":"unde","email_sending_status":"eum","identifier":"minima","phone1":"eum","phone2":"nobis","address":"perspiciatis","birthday":"esse","cpf":"nam","field1":"est","field2":"et","field3":"dicta","registration":"iure"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/contact/1");

    let params = {
            "id": "ut",
        };
    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": "qui",
    "addressbook_id": "aut",
    "email": "unde",
    "email_sending_status": "eum",
    "identifier": "minima",
    "phone1": "eum",
    "phone2": "nobis",
    "address": "perspiciatis",
    "birthday": "esse",
    "cpf": "nam",
    "field1": "est",
    "field2": "et",
    "field3": "dicta",
    "registration": "iure"
}

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 "https://api-smtp-por-credito.iporto.com.br/api/panel/contact/1?id=ut" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/contact/1");

    let params = {
            "id": "ut",
        };
    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 "https://api-smtp-por-credito.iporto.com.br/api/panel/send?search=eveniet&search_status=culpa&start_at=voluptas&end_at=et" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/send");

    let params = {
            "search": "eveniet",
            "search_status": "culpa",
            "start_at": "voluptas",
            "end_at": "et",
        };
    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": {}
}

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 GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/validator/email/dev@iporto.com/validate?email=dev%40iporto.io" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/validator/email/dev@iporto.com/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: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

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

HTTP Request

GET 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\index

Lista todas as contas de SMTP.

Para listar todas as contas de SMTP de um domínio, faça a requisição utilizando o método "Domínios: Visualiza detalhes de um SMTP por ID.".

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/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("https://api-smtp-por-credito.iporto.com.br/api/panel/account");

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": {}
}

HTTP Request

GET api/panel/account

Panel\Smtp\Account\store

Cria uma nova conta de SMTP.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X POST "https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/account?smtp_id=maxime" \
    -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":"perferendis"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/account");

    let params = {
            "smtp_id": "maxime",
        };
    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": "perferendis"
}

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/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 "https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/account/1?smtp_id=recusandae&id=quis" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/account/1");

    let params = {
            "smtp_id": "recusandae",
            "id": "quis",
        };
    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": {}
}

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 "https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/account/1?smtp_id=quos&username=dolorum" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/account/1");

    let params = {
            "smtp_id": "quos",
            "username": "dolorum",
        };
    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": {}
}

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 "https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/account/1?smtp_id=dolore&id=fuga" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/account/1");

    let params = {
            "smtp_id": "dolore",
            "id": "fuga",
        };
    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": {}
}

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 "https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/account/1/email/send?domain=est&account=commodi" \
    -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_subject":"occaecati","email_from":"aspernatur","email_from_name":"quos","email_to":"ea","email_to_name":"voluptatem","email_cc":"est","email_bcc":"veritatis","email_html_body":"autem","email_text_body":"inventore","email_headers":"quisquam","email_attachaments":"repudiandae"}'
const url = new URL("https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/account/1/email/send");

    let params = {
            "domain": "est",
            "account": "commodi",
        };
    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 = {
    "email_subject": "occaecati",
    "email_from": "aspernatur",
    "email_from_name": "quos",
    "email_to": "ea",
    "email_to_name": "voluptatem",
    "email_cc": "est",
    "email_bcc": "veritatis",
    "email_html_body": "autem",
    "email_text_body": "inventore",
    "email_headers": "quisquam",
    "email_attachaments": "repudiandae"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .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

Body Parameters

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

Query Parameters

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

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 "https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/account/1/email/send/test?domain=quia&account=accusantium" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/account/1/email/send/test");

    let params = {
            "domain": "quia",
            "account": "accusantium",
        };
    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 "https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/health/score?smtp_id=tempore" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/health/score");

    let params = {
            "smtp_id": "tempore",
        };
    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": {}
}

HTTP Request

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

Query Parameters

Parameter Status Description
smtp_id required ID do SMTP.

Panel\Smtp\Report

Gerenciamento de CONTATOS.

Panel\Smtp\Report\store

Mostra os dados para report na Dashboard.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/report" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/report");

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": {}
}

HTTP Request

GET api/panel/smtp/report

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 "https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/report/graph/1/start_at/1/end_at/1?smtp_id=voluptas&graph=eos&start_at=quae&end_at=aspernatur" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/report/graph/1/start_at/1/end_at/1");

    let params = {
            "smtp_id": "voluptas",
            "graph": "eos",
            "start_at": "quae",
            "end_at": "aspernatur",
        };
    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": {}
}

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 "https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/send?smtp_id=eveniet&search=impedit&search_status=repudiandae&start_at=totam&end_at=labore" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1/send");

    let params = {
            "smtp_id": "eveniet",
            "search": "impedit",
            "search_status": "repudiandae",
            "start_at": "totam",
            "end_at": "labore",
        };
    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": {}
}

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: 'msg:accept','msg:delivery','msg:fail:delivery','msg:fail:dnslookup','msg:host:defer','msg:rcpt:defer','msg:rcpt:fail','msg:rcpt:host:defer','msg:rcpt:fail:knower','msg:rcpt:fail:blacklist','msg:rcpt:fail:score','msg:rcpt:fail:reputation'
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 "https://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("https://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 (200):

{
    "data": {}
}

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 "https://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("https://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 (200):

{
    "data": {}
}

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 "https://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("https://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": {}
}

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 "https://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":"nobis","plan_type":"quia"}'
const url = new URL("https://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": "nobis",
    "plan_type": "quia"
}

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/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 "https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1?id=quia" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1");

    let params = {
            "id": "quia",
        };
    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": {}
}

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 "https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1?domain=similique" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1");

    let params = {
            "domain": "similique",
        };
    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": {}
}

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 "https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1?id=delectus" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1");

    let params = {
            "id": "delectus",
        };
    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": {}
}

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 "https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1?domain=eum" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/smtp/1");

    let params = {
            "domain": "eum",
        };
    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": {}
}

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 "https://api-smtp-por-credito.iporto.com.br/api/panel/task/1?id=magnam" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/task/1");

    let params = {
            "id": "magnam",
        };
    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 "https://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":"quia","object_id":"quod"}'
const url = new URL("https://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": "quia",
    "object_id": "quod"
}

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

Pkg\Template\Email

Gerenciamento de Pkg: TEMPLATES. Campaign

Pkg\Template\Email\index

TODO: Descrição método.

alt text

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/template/email/campaign?search=et&status=qui" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/template/email/campaign");

    let params = {
            "search": "et",
            "status": "qui",
        };
    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": [
        {}
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

HTTP Request

GET api/panel/pkg/template/email/campaign

Query Parameters

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

Pkg\Template\Email\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:

curl -X GET -G "https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/template/email/campaign/1?id=1" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/pkg/template/email/campaign/1");

    let params = {
            "id": "1",
        };
    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": {}
}

HTTP Request

GET api/panel/pkg/template/email/campaign/{id}

Query Parameters

Parameter Status Description
id required ID DO ITEM.

general

api/panel/storage/base64/image

Example request:

curl -X POST "https://api-smtp-por-credito.iporto.com.br/api/panel/storage/base64/image" \
    -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("https://api-smtp-por-credito.iporto.com.br/api/panel/storage/base64/image");

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/panel/storage/base64/image