---
title: "Encode IDs"
method: POST
path: "/affiliates/encode"
tags: ["Affiliate Encoding"]
---

# Encode IDs

`POST /affiliates/encode`

## Request body

- object
  - `type` 'tracking_link_affiliate' | 'tracking_link_offer' | 'smart_link_affiliate' | 'smart_link_smart_link', required — The encoding context type. Determines how the IDs are encoded.
  - `ids` integer[], required — Array of numeric IDs to encode.

## Response `200`

- object
  - `values` object[] — Array of encoded values corresponding to the input IDs.
    - `decoded` integer — The original numeric ID.
    - `encoded` string — The encoded string representation.

---

[API](https://skmtc.net/everflow/apis/everflow-network-api-tracking-domains.md) · [All operations](https://skmtc.net/everflow/apis/everflow-network-api-tracking-domains/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/everflow/everflow-network-api-tracking-domains/revisions/39242cee0e32/schema)
