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",
  "encoded_values": [
    "abc123",
    "def456"
  ]
}
'
{
  "decoded_values": [
    {
      "encoded": "<string>",
      "id": 123
    }
  ]
}

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
encoded_values
string[]
required

Array of encoded string values to decode.

Response

200 - application/json

OK

decoded_values
object[]

Array of decoded numeric IDs corresponding to the input strings.