Skip to main content
POST
/
affiliates
/
decode
Decode IDs
curl --request POST \
  --url https://api.eflow.team/v1/affiliates/decode \
  --header 'Content-Type: application/json' \
  --header 'X-Eflow-Api-Key: <api-key>' \
  --data '
{
  "type": "tracking_link_affiliate",
  "ids": [
    "28KL6",
    "3J67C"
  ]
}
'
{
  "values": [
    {
      "decoded": 1,
      "encoded": "28KL6"
    },
    {
      "decoded": 2,
      "encoded": "3J67C"
    }
  ]
}
Decode encoded string representations back to their numeric Everflow IDs. This reverses the encoding performed by the encode endpoint. The type field must match the encoding context used when the values were originally encoded.

Authorizations

X-Eflow-Api-Key
string
header
required

The affiliate's API key generated from the Affiliate Portal. Uses the X-Eflow-Api-Key header.

Body

application/json
type
enum<string>
required

The encoding context type. Must match the type used during encoding.

Available options:
tracking_link_affiliate,
tracking_link_offer,
smart_link_affiliate,
smart_link_smart_link,
signup_affiliate_employee,
signup_advertiser_employee,
signup_affiliate_affiliate
ids
string[]
required

Array of encoded string values to decode.

Response

200 - application/json
values
object[]

Array of decoded values corresponding to the input strings.