{
  "opencollection": "1.0.0",
  "info": {
    "name": "OneLink API v2.0",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "authorization",
      "value": "{{authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "OneLink REST API v2.0",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get OneLink link data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onelink.appsflyer.com/api/v2.0/shortlinks/:onelink-id/:shortlink-id",
            "params": [
              {
                "name": "onelink-id",
                "value": "",
                "type": "path",
                "description": "Get this from the person using the AppsFlyer dashboard. Taken from the OneLink template screen"
              },
              {
                "name": "shortlink-id",
                "value": "",
                "type": "path",
                "description": "The ID of the short OneLink query params. For example, for the following OneLink link: myapp.onelink.me/abc123/qwer9876 , the shortlink-id is qwer9876"
              }
            ]
          },
          "docs": "<p><span style=\"background-color: #6e00ff; color: #fff; font-size: 12px; font-weight: 400; padding: 4px; border-radius: 8px;\">\n  Premium\n</span></p>\n\n> 📘 Note\n>\n> This API replaces [Get OneLink link data v1.0](https://dev.appsflyer.com/hc/reference/get-onelink-attribution-link)\n"
        },
        {
          "info": {
            "name": "Update OneLink link",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://onelink.appsflyer.com/api/v2.0/shortlinks/:onelink-id/:shortlink-id",
            "params": [
              {
                "name": "onelink-id",
                "value": "",
                "type": "path",
                "description": "Get this from the person using the AppsFlyer dashboard. Taken from the OneLink template screen"
              },
              {
                "name": "shortlink-id",
                "value": "",
                "type": "path",
                "description": "The ID of the short OneLink query params. For example, for the following OneLink link: myapp.onelink.me/abc123/qwer9876 , the shortlink-id is qwer9876"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "<p><span style=\"background-color: #6e00ff; color: #fff; font-size: 12px; font-weight: 400; padding: 4px; border-radius: 8px;\">\n  Premium\n</span></p>\n\n> 📘 Note\n>\n> This API replaces [Update OneLink link v1.0](https://dev.appsflyer.com/hc/reference/update-onelink-attribution-link)\n"
        },
        {
          "info": {
            "name": "Delete OneLink link",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://onelink.appsflyer.com/api/v2.0/shortlinks/:onelink-id/:shortlink-id",
            "params": [
              {
                "name": "onelink-id",
                "value": "",
                "type": "path",
                "description": "Get this from the person using the AppsFlyer dashboard. Taken from the OneLink template screen"
              },
              {
                "name": "shortlink-id",
                "value": "",
                "type": "path",
                "description": "The ID of the short OneLink query params. For example, for the following OneLink link: myapp.onelink.me/abc123/qwer9876 , the shortlink-id is qwer9876"
              }
            ]
          },
          "docs": "<p><span style=\"background-color: #6e00ff; color: #fff; font-size: 12px; font-weight: 400; padding: 4px; border-radius: 8px;\">\n  Premium\n</span></p>\n\n> 📘 Note\n>\n> This API replaces [Delete OneLink link v1.0](https://dev.appsflyer.com/hc/reference/delete-onelink-attribution-link)\n"
        },
        {
          "info": {
            "name": "Get OneLink QR code",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onelink.appsflyer.com/api/v2.0/shortlinks/:onelink-id/:shortlink-id/qr",
            "params": [
              {
                "name": "onelink-id",
                "value": "",
                "type": "path",
                "description": "Get this from the person using the AppsFlyer dashboard. Taken from the OneLink template screen"
              },
              {
                "name": "shortlink-id",
                "value": "",
                "type": "path",
                "description": "The ID of the short OneLink query params. For example, for the following OneLink link: myapp.onelink.me/abc123/qwer9876 , the shortlink-id is qwer9876"
              },
              {
                "name": "size",
                "value": "",
                "type": "query",
                "description": "Size of the QR code. Default is 300x300. Specifies size (widthxheight in pixels). limit 3000"
              },
              {
                "name": "format",
                "value": "",
                "type": "query",
                "description": "Format of the QR code. Default is png"
              },
              {
                "name": "brand_domain",
                "value": "",
                "type": "query",
                "description": "Add branded to associate the link with (must be one of the branded that associated to the templates domain)\n"
              },
              {
                "name": "margin",
                "value": "",
                "type": "query",
                "description": "The quiet zone - white frame of the QR image.\n"
              }
            ]
          },
          "docs": "<span style=\"background-color: #6e00ff; color: #fff; font-size: 12px; font-weight: 400; padding: 4px; border-radius: 8px;\">\n  Premium\n</span>\n\n> 📘 Note\n>\n> The QR code's color and logo are automatically pulled from your OneLink template settings. To customize these design elements or restore the default, go to the OneLink Management page in the AppsFlyer dashboard.\n"
        },
        {
          "info": {
            "name": "Get account quota",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onelink.appsflyer.com/api/v2.0/shortlinks-quota/:account-id",
            "params": [
              {
                "name": "account-id",
                "value": "",
                "type": "path",
                "description": "Get this from the person using the AppsFlyer dashboard. Taken from the OneLink template screen"
              }
            ]
          },
          "docs": "<span style=\"background-color: #6e00ff; color: #fff; font-size: 12px; font-weight: 400; padding: 4px; border-radius: 8px;\">\n  Premium\n</span>\n"
        },
        {
          "info": {
            "name": "Create OneLink link",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://onelink.appsflyer.com/api/v2.0/shortlinks/:onelink-id",
            "params": [
              {
                "name": "onelink-id",
                "value": "",
                "type": "path",
                "description": "Get this from the person using the AppsFlyer dashboard. Taken from the OneLink template screen"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "<p><span style=\"background-color: #6e00ff; color: #fff; font-size: 12px; font-weight: 400; padding: 4px; border-radius: 8px;\">\n  Premium\n</span></p>\n\n> 📘 Note\n>\n> This API replaces [Create OneLink link v1.0](https://dev.appsflyer.com/hc/reference/create-onelink-attribution-link)\n"
        }
      ]
    }
  ],
  "bundled": true
}