Trestle - Identity Data Enrichment and Validation APIs Trestle - Identity Data Enrichment and Validation APIs Trestle - Identity Data Enrichment and Validation APIs Trestle - Identity Data Enrichment and Validation APIs
  • Products
        • Enrichment

        • Reverse Phone APIGLOBAL
        • Verify and enrich phone numbers
        • Reverse Address API
        • Verify and enrich address information
        • Caller Identification API
        • Identify and enrich caller information
        • Add-Ons

        • Litigator Check
        • Identify phone numbers associated with serial litigators
        • Email Deliverability
        • Confirm email inboxes accept mail in real-time
        • Spam Check
        • Flag phone numbers tied to high-risk calling activity
        • Email Age Score
        • Score how long an email has existed
        • Validation & Verification

        • Phone Validation APIGLOBAL
        • Validate phone numbers and identify disconnected numbers
        • Real Contact API
        • Verify phone, email, and address information
        • Address Validation API
        • Validate and normalize addresses
        • Assess Risk

        • Decision Console
        • Optimize identity verification for manual review
        • Decision Signals API
        • Automate identity verification for risk decisioning
        • Start using Trestle products today

          Get started for free—no credit card required

          Start Your Free Trial

  • Solutions
        • Industries

        • B2B Contact Data
        • eCommerce
        • Insurance
        • Lead Generation
        • Real Estate
        • Communications
        • Use Cases

        • Verify and Prioritize Leads
        • Outbound Dialing Optimization
        • Assess Risk And Prevent Fraud
        • Inbound Call Routing and Verification​
        • Signup and Onboarding​
        • Optimize AI Voice Agents
        • Start using Trestle products today

          Get started for free—no credit card required

          Start Your Free Trial

  • Pricing
  • Resources
        • API Documentation
        • Blog
        • Knowledge Base
        • Case Studies
        • Glossary
        • Partners and Integrations
  • Company
        • About Us
        • Why Trestle
        • Careers
        • Affiliate Program
        • Contact
  • Log In
  • Start for Free

Trestle Overview

19
  • Does Trestle Offer DNC Checks?
  • Does Trestle Have a Sandbox Environment To Test Integrations?
  • What is Trestle’s Coverage and Accuracy?
  • Which Countries’ Data Do You Have?
  • Does Trestle Normalize Phone Number Format?
  • How Do You Integrate Trestle’s APIs?
  • How Does Trestle’s API Pricing Work?
  • How Often is Trestle’s Data Updated?
  • How to Properly Sample a Test File and Evaluate Trestle
  • Understanding NPA-NXX and the Implications of Number Portability
  • Understanding Trestle’s Free API Trial and the API Access Request Process for Specific Products
  • What are the Response Times for Trestle’s APIs?
  • What are the Various Sources of Trestle’s Identity Data?
  • What are Trestle’s SLAs?
  • What Demographic Data Does Trestle Have?
  • What Is Our Global Phone Validation Coverage?
  • What is the Default and Max QPS Supported?
  • What Queries are Billable?
  • What Security Measures are Taken by Trestle?

Product Features

39
  • Everything to Know About Source ID
  • Everything to Know About IP Trust Scores
  • How to Check When an Email Address Was Made
  • Everything to Know About Spam Checks
  • Using IP Intelligence Checks to Verify Lead Legitimacy in Real Contact API
  • Everything to Know About Phone-to-Address Match
  • Real Contact API 1.1 vs. Real Contact API 2.0: What’s Changed and How to Upgrade
  • Everything to Know About Phone Activity Score
  • Everything to Know About Real Contact API 2.0
  • How Trestle’s Activity Score is Different From HLR Lookups
  • Everything To Know About Name Match Details
  • Everything To Know About Phone-to-Name Confidence Score
  • Everything To Know About Litigator Checks
  • Everything To Know About the Email Age Score Add-on
  • Everything To Know About the Email Deliverability Add-on
  • Explain Real Contact API Grading
  • Fine-Tuning Find Person API Results
  • How Can Trestle’s Email Data Be Used?
  • How Do I Determine Phone Validity?
  • How Do You Read Trestle’s Phone Activity Score?
  • How Does Our Real Contact API Name Matching Work?
  • How Does Trestle Assess Email Validity in Real Contact?
  • How is Trestle’s Phone Activity Score Calculated?
  • How To Read the Real Contact Data Assessment Report
  • International Reverse Phone API Explained
  • Line Type Fidelity and Confidence
  • Trestle API Response Attribute Ranking
  • Trestle Warnings – A Comprehensive Guide
  • Understanding the Difference: Phone Validity vs. Trestle’s Activity Score
  • What are the Different Address Types Returned by Trestle?
  • What Does a Name Match of Null Mean?
  • What Does the Carrier Name Mean?
  • What is the Difference Between CNAM and Trestle’s Smart CNAM API?
  • What is the Difference Between Fixed VoIP and Non-fixed VoIP?
  • What is the Difference Between Reverse Phone API, Caller Identification API, and Smart CNAM API?
  • What is the Link Date Associated with Phones and Addresses?
  • Why and When to Use Trestle’s Name Hint
  • Why Do We Return a Maximum of 100 Entities in Find Person API?
  • Why Does the Address Return as Invalid?

Integrations

22
  • HubSpot | Phone Validation App Integration Guide
  • ZoomInfo | Phone Validation, Real Contact, and Reverse Phone Integration Guide
  • Databar | Phone Validation Integration Guide
  • Make | Real Contact API Integration Guide
  • Make | Phone Validation API Integration Guide
  • Apollo | Phone Validation Integration Guide
  • HighLevel | Phone Validation Integration Guide
  • boberdoo | Real Contact API Integration Guide
  • Clay | Validate Phone Number Integration Guide
  • Clay | Verify Contact Integration Guide
  • HubSpot | Real Contact Phone Grading App Integration Guide
  • How Do I Use a HubSpot List To Grade My Contacts?
  • How Do I Use HubSpot Workflow Triggers To Grade My Contacts?
  • Lead Prosper | Phone Validation Integration Guide
  • Lead Prosper | Real Contact Integration Guide
  • Reverse Phone API Enrichment of Leads in Google Sheets via Zapier
  • Snowflake | Phone Validation Integration Guide
  • What is the Phone Validation Integration within ActiveProspect?
  • What is the Real Contact Integration within ActiveProspect?
  • Validate and Verify Leads with Trestle’s Phone Validation API in Sierra Interactive via Zapier
  • Validate Leads with Trestle’s Phone Validation API in LeadConnector via Zapier
  • Zapier | Grade Leads from a Google Sheet with Real Contact

Troubleshooting

9
  • How to Prevent 429 Errors by Sizing API Concurrency to Your QPS Limit
  • How to Fix 403 Forbidden Errors When Using Trestle’s APIs
  • Why Won’t My Email Work to Signup for Trestle?
  • Ruby Integrations: 403 Forbidden Errors
  • Getting 429: Too Many Requests Error – Why?
  • How to Remove or Deactivate a User in Trestle’s Developer Portal
  • How to Update Phone to Name/Address Linkage Records
  • Reviewing Usage Data
  • Why is the Name Associated with the Phone Incorrect?

Developer Portal

8
  • Business Verification Failed? Here’s What Documents You Need to Submit
  • How to Find and Download Your Receipt or Invoice
  • How to Monitor API Errors With Your Usage Graph
  • Batch Upload FAQ
  • Developer Portal Wallet Frequently Asked Questions
  • Export and Analyze Your Queries in Your Developer Portal Account
  • Getting Started with Trestle’s Developer Portal Wallet
  • Making Changes to Billing Settings for the Developer Portal Wallet

User Guides

9
  • Phone Validation in Java
  • Batch Upload Instructions
  • How Do I add Additional Members to My Trestle Account?
  • How to Handle Special Characters in API Queries
  • Phone Validation API with ASP.NET
  • Phone Validation with JavaScript and HTML: Leveraging Trestle’s API
  • Phone Validation API with PHP: Leveraging Trestle’s API
  • Phone Validation API with Python
  • Phone Validation API with React

Telephony Knowledge

9
  • Choosing the Right Number Lookup API
  • How to Identify Callers In Real-Time Using a Reverse Phone API
  • Why is Line Type Intelligence Important?
  • What is a “No Routes Found” Phone Message?
  • The Best Phone Validation API for Call Centers
  • How to Identify Disconnected Phone Numbers Automatically
  • What is a Phone Number Reputation Lookup?
  • What is a Carrier Number?
  • What is a Non-Fixed VoIP Phone?

Risk Suite Overview

8
  • How to Read Email Breach Reports and IP Abuse Reports in Decision Console
  • Everything to Know About Decision Signals API
  • How to Get Started With Decision Console
  • What is the Decision Overview and How Do I Read It?
  • What is an Attribute Card and How Do I Read It?
  • What is Link Builder and How Do I Use It?
  • Understanding Team and Account Management
  • FAQ and Troubleshooting: Decision Console
  • Home
  • Knowledge Base
  • Troubleshooting
  • How to Fix 403 Forbidden Errors When Using Trestle’s APIs
View Categories

How to Fix 403 Forbidden Errors When Using Trestle’s APIs

6 min read

What You Will Learn

  • What a 403 forbidden error means and how it differs from other HTTP authentication errors
  • The five most common causes of 403 errors
  • A step-by-step diagnostic checklist to identify and resolve the issue
  • How to avoid hidden-character issues when copying API keys

Understanding 403 Forbidden Errors #

When working with any REST API, HTTP status codes are the main way the server communicates the outcome of your request. A 403 Forbidden error means that the server received your request and understood it, but is refusing to authorize it.

Is the server’s way of saying: “I know who you are (or at least I see your request), but I’m not letting you in.” This is different from a 401 Unauthorized Error, which means that the server does not recognize who you are (typically because no credentials were provided). A 403 error means your credentials—valid or not—simply don’t have the authorization required for that specific request you’re making.

Understanding this distinction is important because it narrows the troubleshooting scope. The problem is NOT that your request failed to reach the server. It’s that something about your API key, account status, or product access configuration is preventing the server from fulfilling it.

Use this guide to diagnose and resolve 403 errors when integrating with our APIs.

Common Causes of 403 Errors #

CauseDescriptionWhat to Check
Invalid API KeyThe key provided doesn’t match any active API key in our records.Check for trailing spaces, typos, or incorrect character counts. See the “Copy-Paste” section below.
Missing API Key The x-api-key header was not included in the request, or it was sent as an empty string. Ensure your code is actually passing the header in the request. Trestle authenticates via the x-api-key header on all API requests. 
Disabled API Key The key exists but has been deactivated. Often due to an empty Developer Portal Wallet.Log into the Developer Portal and check your Wallet balance. If there are insufficient funds, the key may be disabled until the balance is replenished. Contact your account admin if needed.
Product Access Not Granted The key is active but doesn’t have permission for the specific API product you’re querying.Verify that the product you are calling (e.g., Reverse Phone API, Caller Identification API, or Reverse Address API) is enabled for your key.
Expired Trial API Key The was issued under a free trial and has reached its expiration. Trestle’s free trial includes 25 queries within a 14-day window. Once either limit is reached, the key can no longer be used for that product. A new key must be generated.

Step-by-Step Diagnostic Checklist #

If you are receiving a 403, run through these four questions to find the culprit:

Question 1: Are You Using an AI/LLM to Write Your Code? #

If you are using ChatGPT, Claude, or Gemini to generate your integration code, they may be using outdated or “hallucinated” syntax, incorrect endpoint paths, or fabricated headers

  • The Fix: Copy and paste our official API documentation directly into the LLM prompt and instruct it: “Use this specific documentation to format my request.” This ensures the model uses the correct base URL (https://api.trestleiq.com), the correct authentication header (x-api-key), and the current version path.

Question 2: Is The Endpoint URL Correct? #

Sometimes 403s occur when the request path doesn’t exist or isn’t accessible to public users. 

  • The Fix: Verify your full query string against our API documentation or Postman Collection. If an AI tool generated the URL, it may have used a “placeholder” endpoint that doesn’t actually exist in our infrastructure.

For example: 

https://api.trestleiq.com/3.0/phone_intel 

Would return a successful query.

https://api.trestleiq.com/2.0/phone_lookup 

Would NOT return a successful query.

Question 3: Are You Using the Current API Version? #

We occasionally deprecate older versions of our API. If you’re querying a version that has been sunset (e.g., /3.1/ when the current version is /3.2/), the server will refuse the request.

  • The Fix: Check the version number in your URL path and compare it against the current version listed in our API documentation. Update the path if you are calling a depreciated version. 

Question 4: Does Your API Key Have Access to this Product? #

An active key does not automatically grant access to every Trestle product. Keys are often scoped to specific products. For example, your key may be enabled for Phone Validation API but not Reverse Phone API or Caller Identification API.

  • The Fix: Log into the Developer Portal and navigate to the product page for the API you are querying.
    • If the product displays “Try Now”, your key has access.
    • If the product page displays “Request Access”, then you do not have permission for that product, and you will receive a 403 when you query that endpoint.

To request access to additional products, click “Request Access” and provide a brief description of your use case. A member of the Trestle team will follow up.

Note for Trial Users: All new sign-ups automatically receive access to Phone Validation API, Real Contact API, and Address Validation API. Access to other products (e.g., Reverse Phone API, Caller Identification API, and Reverse Address API) must be requested through the process above.

Avoiding The “Copy-Paste” Trap #

A surprisingly common cause of 403 errors is invisible characters embedded in your API key. When copying your key, it’s easy to accidentally grab a leading space, trailing space, or other accidental character.

How to verify your key is clean:

  1. Copy your API key directly from the Developer Portal.
  2. Paste it into a plain-text editor (e.g., TextEdit in plain-text mode on Mac).
  3. Check that there are no extra spaces or characters before or after the key.
  4. Use this cleaned version in your code.

This step takes only a few seconds and eliminates one of the more frequent (and frustrating) sources of 403 errors.

Still Getting a 403 Error? #

If you have worked through the checklist and the error persists, contact support at support@trestleiq.com and provide:

  • Which product you are attempting to query (for example: “Phone Validation”)
  • The API endpoint you are attempting to query (for example: https://api.trestleiq.com/3.0/phone_intel?) 

This helps our team diagnose the issue quickly.

Frequently Asked Questions #

What does a 403 Forbidden error mean? #

A 403 Forbidden error means the server received and understood your request but is refusing to authorize it. With Trestle’s APIs, this almost always points to an issue with your API key, your account status, or your product access. It is not a problem with your code reaching our servers.

What is the difference between a 401 and a 403 error? #

A 401 Unauthorized error means the server does not recognize who you are, typically because no credentials were provided. A 403 Forbidden error means the server sees your credentials but is refusing the request anyway. This is usually because the key is invalid, disabled, or lacks access to the product you’re querying.

Why is my valid API key still returning a 403 error? #

An active API key does not automatically grant access to every Trestle product. Keys are scoped to specific products, so a key that works for one API may return a 403 when used against another. Log into the Developer Portal and confirm the product you’re querying shows “Try Now” rather than “Request Access.”

Which Trestle APIs are included with a free trial? #

All new sign-ups automatically receive trial access to Phone Validation API, Real Contact API, and Address Validation API. Access to Reverse Phone API, Caller Identification API, and Reverse Address API must be requested through the Developer Portal by clicking “Request Access” on the product page.

Why was my API key disabled? #

The most common reason an API key is disabled is an empty Developer Portal Wallet. If your Wallet balance reaches zero, your key may be deactivated until funds are replenished. Log into the Developer Portal to check your balance, or contact your account administrator.

Does Trestle use an IP allowlist or whitelist? #

No. Trestle does not use an IP allowlist, allow list, or whitelist for API authentication. All requests are authenticated using the x-api-key header, regardless of the IP address the request originates from.

Why are AI coding assistants generating broken Trestle API requests? #

LLMs like ChatGPT, Claude, and Gemini sometimes use outdated syntax, incorrect endpoint paths, or fabricated headers when generating code. To avoid this, paste Trestle’s official API documentation directly into the prompt and instruct the model to use it as the source of truth for your request format.

Updated on May 12, 2026
How to Prevent 429 Errors by Sizing API Concurrency to Your QPS LimitWhy Won’t My Email Work to Signup for Trestle?
Table of Contents
  • Understanding 403 Forbidden Errors
  • Common Causes of 403 Errors
  • Step-by-Step Diagnostic Checklist
    • Question 1: Are You Using an AI/LLM to Write Your Code?
    • Question 2: Is The Endpoint URL Correct?
    • Question 3: Are You Using the Current API Version?
    • Question 4: Does Your API Key Have Access to this Product?
  • Avoiding The "Copy-Paste" Trap
  • Still Getting a 403 Error?
  • Frequently Asked Questions
    • What does a 403 Forbidden error mean?
    • What is the difference between a 401 and a 403 error?
    • Why is my valid API key still returning a 403 error?
    • Which Trestle APIs are included with a free trial?
    • Why was my API key disabled?
    • Does Trestle use an IP allowlist or whitelist?
    • Why are AI coding assistants generating broken Trestle API requests?
trestleLogo

Verified Identities. Trusted Interactions.

U.S. coverage for enrichment and verification.

Global coverage for phone validation and reverse phone.

Based in Bellevue, WA

Linkedin Github Postman

Company

  • About Us
  • Why Trestle
  • Careers
  • Affiliate Program
  • Contact

Products

  • Reverse Phone API
  • Reverse Address API
  • Caller Identification API
  • Phone Validation API
  • Real Contact API
  • Address Validation API
  • Batch Upload
  • Litigator Check Add-on
  • Free Lead Assessment

Use Cases

  • Outbound Dialing Optimization
  • Inbound Call Routing and Verification
  • Signup and Onboarding
  • Lead Verification
  • Optimize AI Voice Agents

Resources

  • Blog
  • Knowledge Base
  • Case Studies
  • Glossary
  • Data Dictionary
  • Changelog
  • Partners and Integrations

Developers

  • Developer Portal
  • API Documentation
  • API Live Status

Legal

  • Terms of Service
  • Privacy Policy
  • Data Processing Agreement
  • Service Level Agreement
  • Do Not Sell My Personal Information
Trestle - Identity Data Enrichment and Validation APIs
  • Products
        • Enrichment

        • Reverse Phone APIGLOBAL
        • Verify and enrich phone numbers
        • Reverse Address API
        • Verify and enrich address information
        • Caller Identification API
        • Identify and enrich caller information
        • Add-Ons

        • Litigator Check
        • Identify phone numbers associated with serial litigators
        • Email Deliverability
        • Confirm email inboxes accept mail in real-time
        • Spam Check
        • Flag phone numbers tied to high-risk calling activity
        • Email Age Score
        • Score how long an email has existed
        • Validation & Verification

        • Phone Validation APIGLOBAL
        • Validate phone numbers and identify disconnected numbers
        • Real Contact API
        • Verify phone, email, and address information
        • Address Validation API
        • Validate and normalize addresses
        • Assess Risk

        • Decision Console
        • Optimize identity verification for manual review
        • Decision Signals API
        • Automate identity verification for risk decisioning
        • Start using Trestle products today

          Get started for free—no credit card required

          Start Your Free Trial

  • Solutions
        • Industries

        • B2B Contact Data
        • eCommerce
        • Insurance
        • Lead Generation
        • Real Estate
        • Communications
        • Use Cases

        • Verify and Prioritize Leads
        • Outbound Dialing Optimization
        • Assess Risk And Prevent Fraud
        • Inbound Call Routing and Verification​
        • Signup and Onboarding​
        • Optimize AI Voice Agents
        • Start using Trestle products today

          Get started for free—no credit card required

          Start Your Free Trial

  • Pricing
  • Resources
        • API Documentation
        • Blog
        • Knowledge Base
        • Case Studies
        • Glossary
        • Partners and Integrations
  • Company
        • About Us
        • Why Trestle
        • Careers
        • Affiliate Program
        • Contact
  • Log In
  • Start for Free