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

# Form API Validation

> Apply CAP, time, location, and custom rules to control which API-submitted leads are accepted.

> **Note:** This tab is available in **Custom Source (CS)**, **Media Channel (MC)**, and **Marketing Partner (MP)** source types.

The **Form API Validations** tab allows you to set rules to automatically validate or reject incoming leads that are submitted through the Form API.

This ensures that only qualified, properly-timed, and correctly-located leads are accepted from your traffic sources.

<img className="block" src="https://mintcdn.com/pingtree/5J3zdrNvtKbPn5ub/assets/images/docs/documentations/campaign/sources-single-view/form-api-validations.png?fit=max&auto=format&n=5J3zdrNvtKbPn5ub&q=85&s=09488ba2c2556e1f952c60639fe76515" alt="All Sources" width="2224" height="1155" data-path="assets/images/docs/documentations/campaign/sources-single-view/form-api-validations.png" />

## Validation Options

### 1. CAP-Based Validation

You can validate incoming leads based on CAP limits:

* **Global CAP**
* **Monthly CAP**
* **Weekly CAP**
* **Daily CAP**
* **Global Payout CAP**
* **Monthly Payout CAP**
* **Weekly Payout CAP**
* **Daily Payout CAP**

This prevents traffic sources from sending more leads than allowed based on your configured thresholds.

### 2. Time-Based Validation

Set time restrictions to control when leads can be accepted:

* Specify **hours** and **days** during which leads are allowed.
* Automatically reject leads sent outside of the allowed windows.

### 3. Location-Based Validation

Validate leads based on geographic criteria:

* **Include** specific **States**.
* **Include** specific **ZIP Codes**.

This ensures that only leads from desired locations are processed.

### 4. Custom Condition Validation

Define custom rules based on **data attribution** fields from the lead data.

Examples:

* Accept leads only if certain fields match specific values.
* Reject leads based on custom lead attributes.

Custom conditions provide highly flexible control tailored to your specific requirements.

***

* [Click here to view Custom Source Single View pages](./Custom-Source-Single-View)
* [Click here to view Marketing Partner Single View pages](./Marketing-Partner-Single-View)
* [Click here to view Media Channel Single View pages](./Media-Channel-Single-View)
