What is Source ID? #
Source ID is an optional input that lets you tag each Phone Validation API, Real Contact API, or Caller Identification API query with where the data came from. You can choose the label, such as lead_provider_1 or spring_facebook_campaign as the source_id parameter. We store that label with the query to make it easy for you to group and filter your results by source later. It’s an optional identifier to help you sort and assess your lead sources and customer acquisition channels.
How do I use Source ID? #
Add source_id as a query parameter on your API request, or map it as a column during Batch Upload. It’s optional, so queries without it work exactly as they do today.
API #
Append source_id to your API request:
GET
https://api.trestleiq.com/{version}/phone_intel?phone=5555555555&source_id=lead_provider_1GET
https://api.trestleiq.com/2.0/real_contact?name=Jane%20Doe&phone=5555555555&source_id=lead_provider_1GET
https://api.trestleiq.com/3.1/caller_id?phone=[insert_phone_number]&source_id=lead_provider_1If your label contains spaces or special characters, URL-encode it. For example, lead provider 1 becomes lead%20provider%201.
Batch Upload #
Include a column for your lead source in your CSV. During the Map Columns step of Batch Upload, map that column to source_id. Because the field is optional, you won’t see missing-value warnings if some rows are blank.
What values can I send as Source ID? #
Any text string up to 255 characters. Here are the rules:
| Rule | Details |
| Required? | No. Source ID is optional on every query. |
| Data type | String (text). |
| Maximum length | 255 characters. |
| Format | Free-form. You choose the naming convention. |
| Allowed characters | Letters (A-Z, lowercase and capital)Digits (0-9)Spaces. _ – : / | # |
| Prohibited characters (as the first character of the string) | = + – @ Please note: these characters are allowed anywhere except the first position of the string. |
| Prohibited characters (anywhere in the string) | Every other character (such as exclamation marks, brackets, equal signs, line breaks, and accented letters such as ñ or é). |
Pick a naming convention and keep it consistent. LeadProvider1, lead_provider_1, and Lead Provider 1 will be treated as three different sources when you filter your results.
What happens if my Source ID value isn’t accepted? #
Your query still runs and returns a normal 200 response. We just won’t store the Source ID. If the value isn’t a string, contains a prohibited character, or is longer than 255 characters, the response includes one of these warnings:
- Could not store source_id. 255 character limit exceeded.
- Could not store source_id. Use only letters, numbers, spaces, and . _ – : / | #. The value cannot begin with -.
All other results (phone validity, Phone Activity Score, Contact Grades, and so on) return as usual. You’re still charged for the query as normal.
How do I use Source ID? #
Source ID is returned alongside your results so you can compare sources. You’ll find it in two places:
- Query analysis: A Source Id column in the query table and in query analysis CSV exports, for queries sent with a Source ID from launch onward.
- Batch response CSVs: Source ID is appended to each row of your batch results.
Once your results carry a Source ID, filter or pivot by it to see how each source performs on the signals you care about. For example, you might compare the share of leads from each provider with a Phone Activity Score of 30 or below, or the share of Contact Grades of D or F. You can then determine which sources provide the highest quality data, and filter the lower-quality data sources from your workflow.
Why is this important? #
If you buy or generate leads from more than one place, Source ID shows you which ones send contactable leads and which don’t. Without it, results from every source land in one pile, and a weak provider looks the same as a strong one.
With Source ID attached, you can see which sources are worth paying for, push back on providers sending bad data, and put your budget behind the channels that convert. It helps anyone who needs to compare lead quality across sources, such as:
- Lead buyers evaluating multiple vendors
- Marketing teams comparing paid channels, landing pages, or campaigns
- Contact centers tracking which list or vendor feeds each dialing campaign
- Data and RevOps teams grouping queries by cohort, region, or test group
Does Source ID have additional costs? #
No. There’s no extra charge for sending a Source ID. Queries are billed at your normal rate.
Where is Source ID available? #
Source ID is available on the latest versions of Phone Validation API, Real Contact API, and Caller Identification API through direct API calls and Batch Upload. It isn’t available on other Trestle APIs.
Try Source ID today or check out our API documentation to learn more.