How to test ACTITO APIs from PostMan?

Introduction

Postman is a powerful API testing tool that allows you to interact with ACTITO's marketing automation platform. By using Postman, you can test and validate ACTITO APIs, ensuring seamless integration and accurate results. This guide will walk you through the process of testing ACTITO APIs using Postman, covering setup, request configuration, authentication, and response interpretation. With this knowledge, you'll be able to confidently test ACTITO APIs and ensure smooth integration into your marketing workflows.

1. Generate Token-
image_2023_06_14T10_53_27_025Z.png

Step 1: Open PostMan tool
Step 2: Open New Tab and enter the API URL
Step 3: Select Method type is GET
Step 4: Add the following headers –
Authorization – You can add this from Authorization tab like Select API Key from Type Drop Down list and add the Key, Value and Add To fields.
Agent – You can add this from Headers tab

Screenshot –



Step 5: Click Send button and get the JSON response with accessToken like below – and pass this to profile API as a Bearer Token.
{
    "accessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhY2NvdW50SWQiOjEyLCJzdWIiOiIyMDcxMDIiLCJsaWNlbmNlSWQiOjIwNzEwMiwiaXNzIjoiYWN0aXRvIiwiYWNjZXNzUmlnaHRzIjpbIndyaXRlX2V4dGVybmkaW5ncyIsInJlYWRfc2NlbmFyaW9zIl0sInBvbCI6Im1haW5Qb2xpY3lBcGkiLCJleHAiOjE2ODY1NjE3MDAsImlhdCI6MTY4NjU2MDgwMCwianRpIjoiNDYifQ.LIdRa-fjG6s_2gdqelKNwb3aPNMLB4HmF9cnuvWeMvsGwAfJ5Z0j2zPCumy9ZX5fJq02qMy9x8ZNBkUYMu1VScGEIpVX0IUT1h0jm9jtYXDsGKgk4AUK4HiwXcWNeh1i- _UwaroXrZ-5H2v7sAg",
    "tokenType": "bearer",
    "expiresIn": "900s",
    "scope": "read write",
    "jti": "483f4d54-9f65-4891-ace9-c5984d7ba60c"
}


Note: You can use this accessToken to create/update Profile API and it will expire after 15min
 
  1. Create / Update profile API
  create-update.png
Step 1: Open PostMan tool
Step 2: Open New Tab and enter the API URL
Step 3: Select Method type is POST
Step 4: Add the following headers –
Bearer Token - You can add this from Authorization tab like Select Bearer Token from Type Drop Down list and add the Token
Input as Body –
{
    "attributes": [{
            "name": "emailAddress",
            "value": "vasu.test@actito.com"
        },
        {
            "name": "motherLanguage",
            "value": "FR"
        }
    ],
    "dataCollectionInformation": {
        "date": "13/05/2023",
        "source": "TEST",
        "way": "api profile 1"
    },
    "subscriptions": [{
        "name": "Newsletter",
        "subscribe": "true"
    }]
}
 
 
Step 5: Click Send button and get the JSON response with profileID like below –

{
    "profileId": 143622
}


Screenshot –



 
- My ASP.NET Application
We use cookies to provide the best possible browsing experience to you. By continuing to use our website, you agree to our Cookie Policy