App

List apps

List app return the list of apps for the current user's business unit.
curl --location -X POST 'https://api.justtrack.io/management/v0/apps' \
-H 'X-API-KEY: <API KEY>'

Response

{
  "result": [
    {
      "id": int,
      "platformId": int,
      "packageId": string,
      "storeId": string,
      "name": "string",
      "createdAt": "string",
      "updatedAt": "string"
    }
  ]
}

Create App

With this API, you can create an App. 
curl -X POST -H X-API-Key: <API_KEY> 
https://api.justtrack.io/management/v0/app

Request

The general request to the Create App API looks like:

{
    "name": "test 123",
    "platformId": 1,
    "storeId": "gg.sunday.cate",
    "iconLink": "https://play-lh.googleusercontent.com/If5wCREVhk1ibdZd8g67oShl_Vnm0qyx3OayiBl7Sm3UGr_74_0ZrWEmLXo5XesrGw=w480-h960",
    "packageId": "packageid",
    "networkAttributes": [
        {
            "attribute": {
                "id": 1
            },
            "value": "456"
        }, {
            "attribute": {
                "id": 2
            },
            "value": "789"
        }
    ]
}

General parameters

We validate the following constraints when creating an app:

  • the package id must be used only by you as a customer

  • the tuple (package id, platform id) must be unique

  • the tuple (name, platform id) must be unique

  • the store id must only be used once

Response

General fields

{
    "id": 123,
    "name": "test 123",
    "platformId": 1,
    "apiToken": "abcd1234",
    "networkAttributes": [
        {
            "id": 1,
            "attribute": {
                "id": 1,
                "name": "clientCustomerId",
                "vendor": "adwords",
                "createdAt": "2021-07-29T10:14:24Z",
                "updatedAt": "2021-07-29T10:14:24Z"
            },
            "value": "456",
            "createdAt": "2023-08-08T09:54:54Z",
            "updatedAt": "2023-08-08T09:54:54Z"
        },
        {
            "id": 2,
            "attribute": {
                "id": 2,
                "name": "firebaseAppId",
                "vendor": "adwords",
                "createdAt": "2022-05-23T11:45:19Z",
                "updatedAt": "2022-05-23T11:45:19Z"
            },
            "value": "789",
            "createdAt": "2023-08-08T09:54:53Z",
            "updatedAt": "2023-08-08T09:54:53Z"
        }
    ]
}

networkAttributes

networkAttributes is an array of objects. Each object looks like this:

{
    "id": 1,
    "attribute": {
        "id": 1,
        "name": "clientCustomerId",
        "vendor": "adwords",
        "createdAt": "2021-07-29T10:14:24Z",
        "updatedAt": "2021-07-29T10:14:24Z"
    },
    "value": "456",
    "createdAt": "2023-08-08T09:54:54Z",
    "updatedAt": "2023-08-08T09:54:54Z"
}

Last updated