---
title: "Track Click"
method: POST
path: "/api/switching/opportunities/{opportunity_id}/click"
tags: ["Switching"]
---

# Track Click

`POST /api/switching/opportunities/{opportunity_id}/click`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/switching/opportunities/{opportunity_id}/click`
- Auth: HTTP bearer

Track an affiliate click and return the enriched URL.

## Path parameters

- `opportunity_id` string, required

## Response `200`

Successful Response

- AppApiSwitchingClickResponse
  - `click_id` string, required
  - `tracked` boolean, required
  - `affiliate_url` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
