The Phonexa Real Time Bidding (RTB) integration enables you to send bid requests to Phonexa's lead marketplace in real-time. This integration allows you to monetize your call traffic by submitting leads to Phonexa buyers who can bid on them dynamically based on contact information, geographic data, and demographic details.

Prerequisites
Before setting up this integration, ensure you have:
- An active Phonexa account with RTB permissions
- Your Phonexa account ID and subdomain information
- Product ID from your Phonexa account
- API password or template password for authentication
- Understanding of your lead generation and monetization strategy
Configuration Steps
Step 1: Obtain Phonexa Account Information
- Log into your Phonexa account
- Navigate to your account settings or API configuration
- Locate your Account ID (numeric identifier)
- Note your Subdomain (your unique Phonexa identifier)
- Find the Product ID for the product/vertical you want to submit leads to
- Generate or locate your API password (template password)
Step 2: Configure CallGrid Integration
Phase 1: Basic Template Setup
- Navigate to your CallGrid destination settings
- Click the Webhook tab
- Enable Webhook Integration
- Enable Template Mode
- Switch to Real Time Bidding template type
- Select Phonexa from the Real Time Bidding templates
- Fill in the required fields:
Required Configuration Fields
ID (Required)
- Enter your Phonexa account ID
- This is your numeric account identifier in the Phonexa system
- Example: 123456
Subdomain (Required)
- Enter your Phonexa subdomain
- This is your unique identifier for your Phonexa instance
- Example: yourcompany (if your Phonexa URL is yourcompany.phonexa.com)
Product ID (Required)
- Enter the Product ID from your Phonexa account
- This identifies which product/vertical will receive your leads
- Example: 789012
- Click Save Webhook to proceed to advanced configuration
Phase 2: Advanced Configuration (Optional)
After saving your basic template configuration, you'll be taken to the advanced configuration screen. The system automatically builds the webhook URL and request structure for you.
Request Configuration

URL Structure The webhook URL is automatically generated based on your configuration:
https://Subdomain.phonexa.com/lead/
HTTP Method
- Method: POST (automatically configured)
- Content-Type: application/x-www-form-urlencoded (automatically configured)
- Timeout: 10 seconds (default, adjustable)
Form Body Parameters The integration automatically includes these form parameters with dynamic values:
apiID=ID&apiPassword=TEMPLATE_PASSWORD&productId=ID&price=0&firstName=[[tag:ContactFirstName]]&lastName=[[tag:ContactLastName]]&email=[[tag:ContactEmail]]&zip=[[tag:InboundZip]]&dob=[[tag:ContactDOB]]&state=[[tag:InboundState]]&phoneNumber=[[tag:InboundNumber]]
Dynamic Parameters Included:
- ContactFirstName: Lead's first name
- ContactLastName: Lead's last name
- ContactEmail: Lead's email address
- InboundZip: Lead's zip code
- ContactDOB: Lead's date of birth
- InboundState: Lead's state
- InboundNumber: Lead's phone number
Acceptance Parsing
The most important setting is the acceptance criteria, which determines when bids are accepted.

Parsing Type
- Parse Type: JSON (automatically configured)
- Parse Field: Configure which field from the bid response to evaluate
Default Acceptance Criteria The system is pre-configured to check for bid amounts using the bid field:
- Field: bid
- Condition: Greater Than
- Value: 0
This configuration accepts bids when Phonexa responds with a bid amount greater than 0.
Bid Response Handling
Response Field Options Configure which fields from the Phonexa bid response to use for acceptance:
- Property Path: Enter the JSON path to the bid data
- Common Fields:
- bid - The bid amount offered for the lead
- status - Response status indicating bid acceptance
- leadId - The Phonexa lead ID if accepted
- message - Additional information about the bid
Testing Your Configuration

To test your integration:
- Fill in your ID, Subdomain, and Product ID
- In the webhook testing section, provide test values for all contact fields:
- tag:ContactFirstName: Enter a test first name (e.g., John)
- tag:ContactLastName: Enter a test last name (e.g., Smith)
- tag:ContactEmail: Enter a test email (e.g., test@example.com)
- tag:InboundZip: Enter a test zip code (e.g., 90210)
- tag:ContactDOB: Enter a test date of birth (e.g., 1980-01-01)
- tag:InboundState: Enter a test state (e.g., CA)
- tag:InboundNumber: Enter a test phone number (e.g., 5551234567)
- Click Run Webhook to test the connection
- Verify the test passes and shows a proper bid response from Phonexa
- Confirm the acceptance parsing works correctly with the response
The built-in webhook test will send a test lead to Phonexa and show you whether bids would be accepted based on their response.
How It Works
Real-Time Lead Submission Process
The integration facilitates real-time lead submission through Phonexa's Lead API:
- Lead Submission: CallGrid sends complete lead information to Phonexa's lead endpoint
- Lead Evaluation: Phonexa evaluates the lead against buyer criteria and requirements
- Bid Response: Phonexa responds with bid information and acceptance status
- Acceptance Decision: Your system evaluates the bid response against your criteria
- Lead Processing: If accepted, the lead is processed and routed to the winning buyer
Bid Response Structure
Phonexa's RTB API returns bid responses in the following format:
{
"bid": 25.50,
"status": "accepted",
"leadId": "PX123456789",
"message": "Lead accepted successfully",
"productId": "789012",
"timestamp": "2025-09-23T15:30:00Z"
}
Advanced Configuration Examples
Example 1: Basic Bid Acceptance
Acceptance Criteria:
- Field: bid
- Condition: Greater Than
- Value: 0
This configuration accepts leads when Phonexa offers any bid amount.
Example 2: Minimum Bid Threshold
Acceptance Criteria:
- Field: bid
- Condition: Greater Than
- Value: 20.00
This setup ensures leads are only accepted when the bid exceeds $20.00.
Example 3: Status-Based Acceptance
Acceptance Criteria:
- Field: status
- Condition: Equals
- Value: accepted
This configuration accepts bids based on Phonexa's status response.
Example 4: Multiple Acceptance Criteria
You can add multiple criteria to ensure both successful status and minimum bid:
Criteria 1:
- Field: status
- Condition: Equals
- Value: accepted
Criteria 2:
- Field: bid
- Condition: Greater Than
- Value: 15.00
Lead Data Requirements
Required Fields
All the following fields are automatically included in the form submission:
- firstName: Lead's first name
- lastName: Lead's last name
- email: Lead's email address
- zip: Lead's zip code
- dob: Lead's date of birth
- state: Lead's state
- phoneNumber: Lead's phone number
Data Format Requirements
- Date of Birth: Use YYYY-MM-DD format (e.g., 1980-01-01)
- Phone Number: Use 10-digit format without formatting (e.g., 5551234567)
- State: Use 2-letter state codes (e.g., CA, NY, FL)
- Zip Code: Use 5-digit zip codes (e.g., 90210)
Advanced Use Cases
Multi-Product Strategy
Configure multiple CallGrid destinations, each targeting different Phonexa products to maximize coverage across various verticals.
Lead Quality Optimization
Ensure lead data quality meets Phonexa buyer requirements for better acceptance rates and higher bids.
Geographic Targeting
Leverage geographic data (zip code and state) to route leads to buyers optimized for specific regions.
Troubleshooting
Common Issues
Authentication Failures
- Verify your API ID and password are correct
- Ensure your Phonexa account is active and has API access
- Check that the API password has not expired
Invalid Product ID
- Confirm your Product ID exists in your Phonexa account
- Verify the Product ID is active and accepting leads
- Check that the product is properly configured for your account
Lead Rejection Issues
- Verify all required lead fields are being populated correctly
- Check that lead data meets Phonexa quality requirements
- Ensure date formats and field formats are correct
Low Bid Issues
- Review lead quality to ensure it meets buyer standards
- Check that geographic targeting aligns with buyer preferences
- Verify that lead data is complete and accurate
Testing the Integration
Template Configuration Test:
- After entering all required fields, click Save Webhook
- Review the auto-generated URL and form parameters
Built-in Webhook Test:
- In the advanced configuration screen, provide test values for all contact fields:
- tag:ContactFirstName: John
- tag:ContactLastName: Smith
- tag:ContactEmail: test@example.com
- tag:InboundZip: 90210
- tag:ContactDOB: 1980-01-01
- tag:InboundState: CA
- tag:InboundNumber: 5551234567
- Click Run Webhook to test the connection
- Verify the bid response contains expected data
- Test different acceptance criteria using the webhook test feature
Live Integration Test:
- Monitor CallGrid logs for successful lead submissions
- Verify bid responses are being parsed correctly
- Test lead routing based on bid acceptance conditions
Best Practices
Lead Quality Management
- Ensure all required fields are populated with accurate data
- Validate email addresses and phone numbers before submission
- Use consistent data formatting across all leads
Revenue Optimization
- Set competitive but realistic bid thresholds
- Track performance metrics across different products
- Monitor lead acceptance rates and adjust quality controls
Data Privacy and Compliance
- Ensure compliance with data privacy regulations (GDPR, CCPA, etc.)
- Implement proper consent mechanisms for lead data collection
- Maintain secure handling of personal information
CallGrid Support
If you need assistance with this integration:
- Check the CallGrid logs for error messages
- Verify all configuration parameters
- Test the integration using the built-in webhook test feature
- Contact CallGrid support with integration details
Related Articles
Continue exploring with these related insights
CallGrid Bid API - Advanced Integration Guide
The CallGrid Bid API allows custom platforms and developers to send real-time bid requests to CallGrid campaigns.
Read ArticlePosting Bids from CallGrid to CallGrid using RTB
This guide will walk you through setting up your CallGrid campaign to send bid requests to another CallGrid customer.
Read ArticleCall Recording Best Practices
Call recording laws vary by state. Some states require only your consent, while others require everyone's consent (all-party consent).
Read ArticleGetting Started with CallGrid
Welcome to CallGrid! This guide will walk you through your first steps to get your account up and running quickly.
Read ArticleAuthor
CallGrid Team
Article Info
Categories
Topics