> ## Documentation Index
> Fetch the complete documentation index at: https://developers.everflow.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Decode IDs

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.


## OpenAPI

````yaml openapi/affiliate-encoding.yaml post /affiliates/decode
openapi: 3.0.3
info:
  title: Everflow Affiliate API - Encoding
  description: >
    ID encoding and decoding endpoints for the Everflow Affiliate API. These
    endpoints allow affiliates to convert between numeric IDs and their encoded
    string representations used in tracking links and URLs.
  version: 1.0.0
servers:
  - description: Production Server
    url: https://api.eflow.team/v1
security: []
tags:
  - name: Affiliate Encoding
    description: Endpoints for encoding and decoding Everflow IDs.
paths:
  /affiliates/decode:
    post:
      tags:
        - Affiliate Encoding
      summary: Decode IDs
      requestBody:
        required: true
        content:
          application/json:
            example:
              type: tracking_link_affiliate
              ids:
                - 28KL6
                - 3J67C
            schema:
              type: object
              required:
                - type
                - ids
              properties:
                type:
                  type: string
                  description: >
                    The encoding context type. Must match the type used during
                    encoding.
                  enum:
                    - tracking_link_affiliate
                    - tracking_link_offer
                    - smart_link_affiliate
                    - smart_link_smart_link
                    - signup_affiliate_employee
                    - signup_advertiser_employee
                    - signup_affiliate_affiliate
                ids:
                  type: array
                  description: Array of encoded string values to decode.
                  items:
                    type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              example:
                values:
                  - decoded: 1
                    encoded: 28KL6
                  - decoded: 2
                    encoded: 3J67C
              schema:
                type: object
                properties:
                  values:
                    type: array
                    description: >-
                      Array of decoded values corresponding to the input
                      strings.
                    items:
                      type: object
                      properties:
                        decoded:
                          type: integer
                          description: The decoded numeric ID.
                        encoded:
                          type: string
                          description: The encoded string value.
      security:
        - API Key: []
components:
  securitySchemes:
    API Key:
      description: >
        The affiliate's API key generated from the Affiliate Portal. Uses the
        X-Eflow-Api-Key header.
      in: header
      name: X-Eflow-Api-Key
      type: apiKey

````