Partner Integration Guide

End-to-end integration guide for the Yelp Leads API, covering authentication, webhooks, messaging flows, and testing.

📘

Before you begin

For eligibility requirements, business prerequisites, and a video walkthrough of the technical data flow, see the Yelp Leads API overview.

This guide walks you through building a Yelp Leads integration from start to finish, in the order you'll actually build it: understand the model, get access, connect a business, receive leads, read the conversation, respond to the consumer, then test, go live, and report outcomes back to Yelp.

If you've built a Yelp integration before, the checklist below is the whole journey at a glance. Each step links to the section that covers it.

Integration at a Glance

  1. Create a Yelp Developer App and share your Client ID and redirect URI(s) with Yelp → Before You Build
  2. Get a test business provisioned by Yelp → Before You Build
  3. Connect a business by sending the business owner through OAuth → Connect a Business
  4. Subscribe to webhooks and automate renewal every 14 days → Receive Leads
  5. Read the lead and its events when a webhook fires → Read Leads and Conversations
  6. Pick a response channel and reply, filtering out your own messages → Respond to Consumers
  7. Handle errors and rate limits → Handle Errors and Limits
  8. Run the end-to-end test checklist → Test Your Integration
  9. Demo with your Yelp sales engineer and go live → Go Live
  10. Send lead outcomes back to Yelp → After Launch: Partner Reporting

How the Leads API Works

The Yelp Leads API allows partners to ingest, track, and manage leads generated through Yelp's "Request A Quote" flow. Designed for streamlined CRM onboarding, this guide details how to set up a secure, end-to-end integration and covers recommended workflows.

Use Cases:

  1. Automatic syncing of Yelp-generated leads into your CRM.
  2. Enabling businesses to read consumer messages and respond from within your interface.
  3. Receiving consumer phone sharing notifications when consumers share their real phone number.
  4. Keeping lead records in sync when consumers update their project details after submitting a request.

The Big Picture

At a high level, a business owner authorizes your app once, you subscribe to webhooks on their behalf, and from then on Yelp notifies you whenever anything happens on one of their leads. Webhooks only tell you that something happened. You always call the API to find out what happened.

How a Leads API integration works. One-time setup: create a Developer App, Yelp enables the Leads API and issues a Client Secret, the business owner completes OAuth, and you subscribe to webhooks, renewing the subscription every 14 days. For every lead: the consumer submits a Request A Quote, Yelp sends a NEW_EVENT webhook, you fetch the lead and its messages, and the pro replies via the API. Your own reply triggers a webhook too, so skip it.

Key Concepts

TermMeaning
LeadA project or inquiry submitted by a Yelp user to a business. A lead is generated at the start of a conversation between a user and business owner. Every thread between a user and a business owner in Yelp classifies as a single lead.
EventA message or activity related to a lead (e.g., a new reply). Every interaction in a lead is called an (interaction) event.
Masked Email AddressesTemporary proxy email addresses used for communication. Valid for up to 30 days from lead creation.
ChannelThe channel represents the type of message ingestion, i.e. how a message entered the lead conversation. Messages can be created via SMS, email, the Leads API, the Yelp Inbox/App, and other channels.
Consumer Phone SharingWhen a consumer hasn’t opted in to receiving the phone calls while creating a lead but types a phone number in the lead chat, Yelp can share this phone number with the partner via the Get Lead endpoint. A webhook notification is sent when this happens.

Before You Build

Before writing any code, line up access, credentials, and a test business.

Prerequisites

  • Yelp technology partner approval
  • API credentials (OAuth client ID/secret)
  • Allowlisted redirect URIs for OAuth flow
  • An HTTPS endpoint able to receive webhooks (for real-time lead and event notifications)

Pre-Integration Checklist

Before beginning implementation, confirm the following with Yelp. Both questions shape how you'll respond to consumers later, so answer them now:

  • Message content types: Does your platform send any non-text content to consumers (HTML emails, PDF attachments, images, rich text, invoices, estimates, etc.)? Yelp's masked email parser only supports plain text thus rich content will cause parsing failures. If your platform sends non-text content by default, this must be identified upfront so we can determine whether custom solutions or content stripping are needed. See Masked Email for details.
  • Communication channels: Which channels does your platform use to communicate with consumers (in-app chat, SMS, email, phone calls)? Understanding this is critical to avoid duplicate messages as all masked channels (SMS, email) route through Yelp's lead thread. See Messaging and Deduplication for how this works.

Create a Yelp Developer App

In order to begin the process for using our Leads API we ask you to create a "Yelp Developer App" which is Yelp's way of interacting with our various APIs.

  1. Create a personal Yelp user account on www.yelp.com/signup if you do not have one yet.

  2. Go to www.yelp.com/developers/v3/manage_app to create your Yelp Developer App:

    1. Choose a meaningful name and description for your Developer App.
    2. Use one of your company's email addresses as the contact email address and select "Base" as the Access Tier.
      1. Note: You might get some automated messages about "Yelp Fusion Trial access", you can safely ignore those messages OR add your Yelp Sales Engineer to the thread if needed. Your access to Leads API is not subject to trial restrictions.
    3. Click "Create App"
  3. On the next page, you will see your individual Client ID and API Key. You can always return to this page by navigating to www.yelp.com/developers/v3/manage_app and login using your Yelp account.

  4. Save the Client ID and share it along with your redirect URI(s) with the Yelp partner team so they can enable Leads API access, securely issue you a Client Secret, and configure any necessary rate limit overrides for your app. The redirect URI(s) must be HTTPS endpoints where Yelp will redirect users after OAuth authorization. Please make sure to keep your API Key private.

Understand the Two Account Types

There are 2 different types of Yelp accounts, and both will be used while building and testing your integration:

  1. Consumer account - a personal Yelp account that can be used to review businesses, post photos, follow friends, requesting quotes from business etc.
    1. This is the account type you just used to create the Developer App, and the one you'll use to submit test leads (it simulates the end-user).
    2. If you're ever unsure, check your browser URL to ensure you are at yelp.com.
  2. Business owner account - where you login to view your claimed businesses, manage ads, respond to reviews etc.
    1. This is the account type you will use when logging in via the OAuth flow to "Read and Respond to Yelp Leads". You likely already have a Yelp Business Owner account, otherwise, please ask your Yelp Rep to create one for you.
    2. If you're ever unsure, check your browser URL to ensure you are at biz.yelp.com.

Get a Test Business

Yelp will provision a test business for your integration testing. Request it now so it's ready by the time you've built your OAuth flow. The type you get depends on how you're integrating:

  • Integrating your own business: Yelp creates a dedicated test business for you.
  • Integrating on behalf of multiple businesses (platforms, agencies, software providers): Yelp adds you to a shared test business that other partners also use. You may see test leads from other partners; you can ignore these.

To get set up:

  1. Choose a business owner account from your organization to be added to the test business. If you don't have one, ask your Yelp representative to create one for you.
  2. Inform Yelp of that user's email address. Yelp will add them as a "Business Owner" on the test business. The user will receive a welcome email with login instructions.
  3. Create a consumer account on yelp.com/signup if you don't have one. You'll use this to submit test leads via the "Request A Quote" flow.

Connect a Business

Every Leads API call is made on behalf of a business owner, so the first thing your integration does is send that owner through Yelp's authorization flow. The Yelp Leads API uses the OAuth 2.0 Authorization Code flow.

Full documentation: Yelp OAuth Authorization Code Workflow

How the Authorization Flow Works

Diagram: authorization flowAuthorization flow. The business owner clicks Connect Yelp and your app sends them to the Yelp login at biz.yelp.com/oauth2/authorize with client_id, redirect_uri, scope, and state. They log in and approve access, and Yelp redirects back to your app with a code and state. Check that state matches, then exchange the code for an access token within 5 minutes. The token is valid for 7 days. Then get the owner's claimed businesses and subscribe to webhooks with POST /v3/webhooks. Refresh the token before it expires; if you get a 401, refresh and retry.

A few things that commonly go wrong at this step:

  • The owner logs in with a consumer account instead of their business owner account. Only a business owner account can authorize leads access.
  • The redirect_uri doesn't exactly match one you shared with Yelp during setup.
  • The authorization code is redeemed too late. It expires 5 minutes after it's issued, so exchange it immediately.

Scopes

We suggest using these 3 scopes when initiating the OAuth request:

  • leads - enables reading leads and responding to them.
  • r2r_get_businesses - enables the ability to retrieve a list of businesses that the business owner has "claimed" aka businesses that this user can respond to reviews for.
  • r2r_business_owner - enables the ability to retrieve information about the business owner like username and profile photo.

One token from a business user with access to multiple businesses can cover all of those businesses. You do not need per-business tokens.

Security Requirements

  • Store all secrets and access tokens securely; refresh tokens following expiration best practices.
  • All API traffic must use HTTPS.

Receive Leads

Once a business is connected, webhooks are how you find out about new leads and new activity. The Yelp Leads API uses a self-serve webhook model: you subscribe using the business owner's access token, and Yelp starts sending notifications to your endpoint.

Subscribe to Webhooks

Step 1: Authenticate

Obtain an OAuth 2.0 access token using the Authorization Code flow (see Connect a Business).

Step 2: Subscribe

Using this token, make a POST request to https://api.yelp.com/v3/webhooks with the following parameters:

  • webhook_url (required): Your HTTPS endpoint that will receive webhook notifications.
  • webhook_type (required): The type of webhook event to subscribe to (e.g., leads_event). Supported values:
    • leads_event: new leads, new interactions on existing leads, and consumer phone number opt-in/opt-out events.
    • project_update: consumer updates to the project details of an existing lead.

This automatically subscribes the authenticated biz user to receive webhook notifications for all businesses they have access to. No manual business selection is required.

The response returns:

  • webhook_id: Use this to unsubscribe later.
  • expiration_date: When the subscription expires.

Step 3 (Optional): Restrict to Specific Businesses

If you want to receive webhooks only for specific businesses (rather than all businesses the user has access to), you can pass an optional restricted_business_ids parameter in the subscribe request with a list of Yelp Business IDs.
To retrieve a list of business_ids already claimed by the business owner, send this request.

Step 4: Verify Webhook Signatures

Every webhook delivery is signed with an Ed25519 signature so you can confirm it came from Yelp and wasn't tampered with or replayed. Signature verification replaces the previous IP-allowlist approach, and we strongly recommend implementing it.

Documentation: Webhook Signature Verification

Step 5: Unsubscribe (when needed)

To unsubscribe, send a DELETE request to https://api.yelp.com/v3/webhooks/{webhook_id} using the webhook_id returned during subscription.

Keep Your Subscription Alive

⚠️

Webhook subscriptions expire

Webhook subscriptions expire after 14 days by default. To ensure no loss of data, you must unsubscribe and resubscribe at least an hour before the expiration date. We recommend automating this renewal process.

What Triggers a Webhook

You will receive webhook notifications when:

Triggerevent_typesubscription webhook_type
A new lead is createdNEW_EVENTleads_event
A new interaction occurs on an existing lead (e.g., a new message)NEW_EVENTleads_event
A consumer opts into receiving the phone callsCONSUMER_PHONE_NUMBER_OPT_IN_EVENTleads_event
A consumer opts out of receiving the phone callsCONSUMER_PHONE_NUMBER_OPT_OUT_EVENTleads_event
A consumer updates the project details of an existing lead (e.g., changes survey answers)PROJECT_UPDATEproject_update

Webhooks fire for every interaction on a lead, no matter who sent it or how, including messages your own integration sends through the API. Keep this in mind when you get to Messaging and Deduplication.

Webhook Payload Example (Lead Interaction)

{  
  "time": "2022-06-09T09:41:14+00:00",  
  "object": "business",  
  "data": {  
    "id": "SoVHhx7Hel_XX0DKCLp72Q",  
    "updates": [  
      {  
        "event_type": "NEW_EVENT",  
        "event_id": "IsKxQAYZNqCjvRRmNoiCUw",  
        "lead_id": "TbvEUYEi02cmSBmqCjQbkg",  
        "interaction_time": "2022-06-09T09:41:13+00:00"  
      }  
    ]  
  }  
}

Webhook Payload Example (Project Update)

{
  "time": "2022-06-09T09:41:14+00:00",
  "object": "business",
  "data": {
    "id": "SoVHhx7Hel_XX0DKCLp72Q",
    "updates": [
      {
        "event_type": "PROJECT_UPDATE",
        "lead_id": "TbvEUYEi02cmSBmqCjQbkg"
      }
    ]
  }
}

Note: Project Update payloads do not include event_id or interaction_time.

Note: Webhooks do NOT include the full event content (message text, attachments). Use the Get Lead Events endpoint to retrieve complete event details, covered in the next section.

Documentation:


Read Leads and Conversations

A webhook gives you a lead_id and an event_id. From there, two calls give you everything you need: one for the lead itself, one for the conversation.

Key Endpoints

See the Official API Documentation for full specifications. These are the endpoints you'll use throughout the rest of this guide:

FunctionEndpointMethodDocs
Subscribe to Webhooks/v3/webhooksPOSTlink
Unsubscribe from Webhook/v3/webhooks/{webhook_id}DELETElink
Retrieve a Lead/v3/leads/{ID}GETlink
Retrieve Lead Events/v3/leads/{ID}/eventsGETlink
Reply to a Lead / Write Event/v3/leads/{ID}/eventsPOSTlink
Mark Lead as Replied/v3/leads/{ID}/mark_as_repliedPOSTlink
Mark Event as Read/v3/leads/{ID}/events/mark_as_readPOSTlink
Get Lead IDs for a Businessv3/businesses/{business_id}/lead_idsGETlink

Get the Lead

When you receive a NEW_EVENT webhook for a lead you haven't seen before, call GET /v3/leads/{lead_id} to retrieve the full lead details including:

  • Consumer display name
  • Project details (job type, survey answers, attachments, location, availability)
  • Temporary masked email address (if available)
  • A phone number shared by the consumer in the chat (if they shared one)

Each Yelp lead has a unique lead_id. Use this as the primary key to map to your CRM's lead/job/project object.

Documentation: Get Lead

Get the Conversation

When a webhook fires, retrieve new messages using GET /v3/leads/{lead_id}/events.

Webhook notifications are sent for both consumer and business messages, regardless of how the message was ingested. Each event tells you who sent it (user_type is CONSUMER or BIZ), and BIZ events can also carry a channel field that tells you how the message entered the conversation. You'll use both to decide which events to show in your UI. See Messaging and Deduplication.

Documentation: Get Lead Events


Handling Project Updates

Consumers can update the details of their project after submitting a request (e.g., change their survey answers). If you're subscribed to the project_update webhook type, you'll receive a PROJECT_UPDATE webhook when this happens. Call GET /v3/leads/{lead_id} to retrieve the latest project details and update the corresponding record in your CRM.

Documentation: Get Lead

Catch Anything You Missed

Yelp retries failed webhook deliveries, but prolonged downtime on your side may result in missed notifications. Use the Get Lead IDs for a Business endpoint to periodically reconcile and catch any leads that may have been missed.


Respond to Consumers

This is the heart of the integration: getting the pro's reply back to the consumer. There are several ways to do it, and the choice affects what the consumer sees, what formatting you can use, and whether you'll have to deal with duplicate messages.

Choose a Response Channel

Our preferred method for pros to respond to leads is via the API. It is the most seamless and efficient communication channel, avoids the duplication issues inherent in masked email/phone, and gives partners full control over the messaging experience within their own UI. The other options exist for platforms that can't support it, or for biz users who explicitly prefer them.

API: Unified Inbox (recommended)Link Back to YelpMasked EmailConsumer Phone Sharing
How the pro repliesFrom your UI; you call POST /v3/leads/{ID}/eventsOpens the lead in Yelp's Leads Center via link_to_reply_in_yelpSends an email to the consumer's masked addressCalls or texts the consumer's real number
What the consumer seesA reply in the Yelp app, identical to one sent from the Yelp inboxA reply in the Yelp appThe email body, parsed into the Yelp lead threadA call or text outside of Yelp
FormattingPlain text only. Links in the text work; no attachments or rich formattingWhatever Yelp's inbox supportsPlain text only. HTML, links, and attachments break parsingn/a
Duplicate riskNone, if you filter out API-SELF eventsNoneHigh if you also display Leads API eventsNone in the Yelp thread; SMS to the real number doesn't flow through Yelp
LimitsRate limits; same message to the same lead blocked within an hourPro leaves your platformAddress expires 30 days after lead creation; no marketing emailsValid US number only
Best forPlatforms with an inbox or chat UIPlatforms without two-way messagingEmail-first platforms that can send plain textPros who prefer to call

We strongly recommend responding via the API and setting that up as the biz user's default. Choose one communication channel per lead to avoid duplication.

Option 1: Unified Inbox (Two-Way Messaging via API)

If your platform supports a unified inbox where pros can read and reply to messages directly, use the Write Event endpoint to send replies:

POST /v3/leads/{lead_id}/events

This is the recommended default. Messages sent via the API appear instantly in the Yelp lead conversation and are delivered to the consumer in the Yelp app. The pro never has to leave your platform. When a partner replies via the API, the message the consumer sees in the Yelp app is identical to a reply sent from a pro via the Yelp inbox: it's attributed to the business name.

Two related endpoints keep the lead's status on Yelp in sync with what happens on your platform:

  • Mark Event as Read (POST /v3/leads/{ID}/events/mark_as_read): marks the consumer's messages as read, up to the latest event you've seen. This updates the unread indicators the business sees on Yelp. The consumer does not see a read receipt.
  • Mark Lead as Replied (POST /v3/leads/{ID}/mark_as_replied): tells Yelp the pro already responded outside of Yelp, for example by phone, direct email, or from your CRM. This counts toward the business's response time and response rate on Yelp. Call it once per lead, after the pro has actually contacted the consumer. Don't call it for replies sent through the API, since those already count.

Documentation: Write Lead Event · Mark Event as Read · Mark Lead as Replied

Option 2: Link Back to Yelp (No Unified Inbox)

If your platform does not support two-way messaging, you can deep-link the pro back to Yelp's Leads Center to reply. Retrieve this link via the field link_to_reply_in_yelp in the Get Lead endpoint response.

GET https://api.yelp.com/v3/leads/{ID}

The link will follow this format: https://biz.yelp.com/leads_center/{business_id}/leads/{lead_id}

This opens the lead conversation directly in Yelp's business portal, where the pro can read and reply to the consumer.

Documentation: Get Lead

Messaging and Deduplication

This section is intended to outline messaging options on Yelp; it is up to the partner to decide which implementation best fits their needs.

The most important thing to understand is that your own replies come back to you. Webhooks fire for every message on a lead, including the ones your integration just sent. If you display every event you fetch, the pro will see their own reply twice. The diagram below shows a full round trip and where filtering happens.

Diagram: message round tripMessage round trip. A consumer sends a message, Yelp sends your server a NEW_EVENT webhook, and your server fetches the lead's messages with GET /v3/leads/{id}/events. The message was sent by the consumer, so show it to the pro and mark it as read. The pro types a reply in your app, your server sends it with POST /v3/leads/{id}/events, and the consumer sees it in the Yelp app. That reply triggers another NEW_EVENT webhook. When you fetch the messages again, the reply was sent by you via the API, so skip it because you already show it.

Because webhooks fire regardless of source, the same flow also catches replies the pro sends from outside your platform. Those events have no channel field, so you keep them:

Diagram: reply sent from the Yelp inboxReply sent from the Yelp inbox. The pro replies to the consumer in the Yelp inbox instead of your app. Yelp still sends your server a NEW_EVENT webhook, and your server fetches the lead's messages. The reply was sent by the business but not through your API, so show it in your app.

Deduplication via the channel Field

The channel field on BIZ events (user_type = BIZ) tells you the ingestion type, i.e., how the message entered the conversation. This is how you avoid duplicate messages. It must be enabled by Yelp for your account.

Currently tracked channel values:

  • API-SELF: Sent via the Leads API by your own OAuth client (i.e., messages you already know about).

Messages can also be created via other channels (e.g., Yelp Inbox, masked email), but the channel field is not yet populated for those, i.e. it will be absent from the event. This means if a BIZ event has no channel field, it was sent via an untracked channel.

Recommended filtering logic:

  • If user_type = CONSUMER → Ingest all messages.
  • If user_type = BIZ:
    • channel = "API-SELF" → Filter out. These are messages your integration sent.
    • channel = "SMS" → This channel value applied to legacy masked-number SMS flows. For new leads, SMS sent directly to the consumer's real number does not flow through Yelp's lead thread and will not generate a webhook event.
    • channel absent → Ingest. These came from an untracked channel (Yelp Inbox, email, etc.).

The exact filtering depends on your integration's communication channels. Discuss with Yelp during the pre-integration phase (see Pre-Integration Checklist).

Contact Yelp to enable the channel field for your account.

Masked Email

Yelp masks consumer email addresses to protect user privacy and ensure a secure, consistent communication experience. By routing messages through masked channels, Yelp can monitor for abuse, enforce platform policies, and provide a seamless way for businesses and consumers to interact without exposing personal contact information.

The temporary/masked email address of the lead submitter is returned via the Get Lead endpoint. It can be used for communications for up to 30 days until it expires.

How it works: When a biz user sends an email to the masked address, Yelp receives the email, parses the body, and routes the content into the Yelp lead conversation (the same conversation visible in Yelp Inbox / Leads Center and via the Leads API). The consumer sees the message in the Yelp app. This means:

  • Emails sent to the masked address appear as messages in the Yelp lead thread. If your integration also displays messages from the Leads API, sending an email via the masked address will result in the message appearing both as a sent email in your UI and as an inbound Leads API event, causing duplicates.
  • Recommendation: If your CRM sends messages via the Leads API (POST /v3/leads/{ID}/events), do not also send the same message(s) via email to the masked address for the same lead. Choose one communication channel per lead to avoid duplication.

Limitations:

  • 30-day expiry: The masked email address expires 30 days after lead creation. The exact expiry timestamp is returned in the temporary_email_address_expiry field of the Get Lead response.
  • Plain text only: Yelp's email parser does not support rich content. HTML, attachments (PDFs, images), and complex formatting will cause parsing failures. See best practices below.
  • No marketing emails: As a Yelp policy, partners should not use masked emails for marketing or review solicitation.

Best practices for emailing via masked addresses:

  • Use plain text only. Including HTML formatting can break email parsing.
    • No HTML or rich text formatting
    • No embedded links
    • No images or attachments (PDFs, invoices, etc.)
  • Block marketing emails from being sent to masked email: Additionally, if biz users want to send marketing emails, they should ask for the consumer's direct, unmasked email.

Correct example:

Thank you for your interest in our services. We're excited to help you with your project! Please feel free to reach out if you have any more questions.

Best regards, The Team

Incorrect example (will break parsing):

Thank you for your interest in our services. We're excited to help you with your project!

Best regards, The Team

Consumer Phone Sharing

Yelp shares any phone number the consumer types in the chat with your integration, under the conditions below. This is available to all Leads API partners by default.

How it works. Every time a consumer types their phone number in the chat:

  1. If the consumer has opted in:
    1. No phone sharing webhook notification is sent (in this case as we’ll already be sharing the real consumer phone number in the get_lead endpoint)
    2. GET /v3/leads/{lead_id} returns the unmasked number in the phone_number field (and also temporary_phone_number field depending on whether the client is an existing masking client or not)
  2. If the consumer hasn’t yet opted in to receive the phone calls:
    1. You’ll receive a CONSUMER_PHONE_NUMBER_AVAILABLE_EVENT webhook indicating that the consumer has typed a phone number in the chat
    2. GET /v3/leads/{lead_id} will now include the consumer’s phone number in the phone_number field

Requirements

  • The consumer must type a valid US phone number in the chat.

If the pro follows up by phone, call Mark Lead as Replied once they've reached the consumer. That way the lead counts as responded to in the business's response time and response rate on Yelp.


Handle Errors and Limits

For full error code details per endpoint, see the Yelp Leads API Documentation.

Rate Limiting

The API enforces two levels of rate limiting:

  1. Per-endpoint QPS (queries per second) limit: Each endpoint has a per-client QPS cap. The default for most Leads API endpoints is 5 requests per second. This can be raised per-client by Yelp. Contact [email protected] if you're hitting limits during normal operation.
  2. Daily request limit: Each API client has a total daily request limit across all endpoints. The default is 500 requests/day, but partner integrations are typically provisioned with a higher limit. If you're approaching your daily limit, contact Yelp to have it raised.

When either limit is exceeded, the API returns a 429 Too Many Requests response with the error code TOO_MANY_REQUESTS_PER_SECOND.

Retry Recommendations

  • 429 (Rate Limited): Back off exponentially. Do not immediately retry at full speed.
  • 500 / 503 (Server Errors): Retry with exponential backoff up to a maximum of 5 retries.
  • 400 / 401 / 403 / 404 (Client Errors): Do not retry without fixing the request. For 401, refresh your OAuth token and retry.

Common Errors

  • PARTNER_ENDPOINT_DISABLED (403): The endpoint has not been enabled for your API client. Contact [email protected].
  • SAME_SUCCESSIVE_MESSAGE (400): Sending the same message to the same lead within an hour is blocked. Wait for a consumer response or send a different message.
  • UNAUTHORIZED_BUSINESS_MINIMUM_ADVERTISING (403): The business isn't currently advertising. Leads are only available for advertising businesses.

Test Your Integration

With your test business in place, you can exercise the whole flow end to end before going live.

Creating Test Leads

  1. Visit the test business page on yelp.com.
  2. Click "Get pricing & availability" (or equivalent RAQ button).
  3. Fill out the form with test details and submit.
  4. You should receive a webhook notification within a minute.
  5. You can then reply as the consumer via "Projects" on yelp.com, or as the business owner via biz.yelp.com inbox.
  6. Both actions will trigger additional webhook notifications.
  7. To test project updates, edit the project details (e.g., survey answers) as the consumer via "Projects" on yelp.com. This triggers a PROJECT_UPDATE webhook if you're subscribed to the project_update webhook type.

You can monitor Yelp API outages at status.developer.yelp.com.

Webhook Testing

Before testing, ensure your webhook endpoint:

  • Accepts HTTPS POST requests.
  • Returns a 2XX status code for successful receipt.

If Yelp receives a non-2XX response from your webhook URL, it will retry at increasing intervals. After 24 hours of unsuccessful retries, the notification is discarded.

We recommend verifying webhook signatures instead of allowlisting IPs. Signatures keep working when our IPs change.

🚧

Deprecated

IP allowlisting is deprecated and has been replaced by webhook signature verification. The list is provided only for partners who still use allowlisting while they move to signature verification.

If you need an allowlist, we're moving to a new IP range. Until the move is complete, allowlist both:

  • New range: 199.255.188.0/22 (if that's too broad: 199.255.188.18 – 199.255.188.23)
  • Legacy:
52.35.20.1
52.35.117.102
52.35.163.243
52.70.234.63
52.70.234.62
52.70.115.133

See the changelog for details.

Avoid Test Consumer Quarantine

Yelp has spam detection systems that can automatically quarantine consumer user accounts. During testing, high-volume or repetitive message patterns from test consumer accounts can trigger these checks, causing the test consumer to be quarantined. When quarantined, messages from that consumer will stop being delivered and no webhooks will be sent.

To avoid this during integration testing:

  • Coordinate with Yelp to pre-provision test consumer accounts that are excluded from spam filters, or to allowlist specific test users.
  • Avoid sending large bursts of messages from a single test consumer in a short period.
  • If a test consumer gets quarantined, contact Yelp support. The account can be manually unquarantined, but it may take time and disrupt your testing timeline.

End-to-End Testing Checklist

  • Webhook delivery: Verify you receive NEW_EVENT webhooks for new leads and new messages.
  • Signature verification: Verify your endpoint accepts correctly signed deliveries and rejects requests with an invalid signature or unknown key ID with HTTP 401.
  • Project updates: If subscribed to project_update, update the project details as the consumer, verify you receive a PROJECT_UPDATE webhook, and confirm Get Lead returns the updated details.
  • Get Lead: Confirm you can retrieve full lead details including project info, consumer display name, masked email, and the consumer's phone number (if they shared one).
  • Get Lead Events: Confirm you can read the full conversation thread.
  • Write Event: Send a reply via the API and verify it appears in the Yelp Inbox.
  • Deduplication: Send a message via the API and confirm the channel field correctly returns API-SELF on the resulting webhook event.
  • Masked email: If applicable, send a plain-text email to the masked address and verify it appears in the lead thread.
  • Phone number: Verify the phone_number field is populated in the Get Lead response for an opted-in consumer lead. Confirm temporary_phone_number also contains the same real number for backward compatibility.
  • Phone sharing webhooks: For consumers who haven’t yet opted in, verify you receive CONSUMER_PHONE_NUMBER_AVAILABLE_EVENT and can retrieve the phone number shared by the consumer in the chat, from the Get Lead endpoint.
  • Webhook expiration: Verify your renewal automation works by letting a subscription expire and confirming you stop receiving webhooks, then resubscribe.

Go Live

Before going live, coordinate a live demo with your Yelp sales engineer to identify any potential issues or gaps. Once you're live:

  • Status Page: https://status.developer.yelp.com/ → Partner APIs > Leads APIs. We recommend subscribing to status page updates to be notified of planned maintenance and unplanned outages.
  • For technical questions or production incidents, contact your assigned sales engineer or account team.

After Launch: Partner Reporting

To help Yelp measure lead quality and optimize partner performance, Yelp requests that partners send lead outcome data after a pro acts on a lead.

Preferred method: Webhooks. Yelp can ingest your platform's existing payload structure; no custom format is required. Contact your Yelp representative to configure the endpoint.
The payload should include at minimum:

  • yelp_lead_id: the Yelp lead ID to map the outcome back to the original lead
  • status: outcome of the lead (e.g., completed, booked, cancelled)
  • job_value: estimated or confirmed monetary value of the job (USD)

Additional fields (e.g., job category, response time, close rate) are welcome and may be used to improve lead quality scoring.


Frequently Asked Questions

Q: What happens if my webhook endpoint is down?

A: Yelp will retry delivery for failed webhooks. However, prolonged downtime may result in missed notifications. We recommend using the GET /v3/leads/business/{business_id}/lead_ids endpoint to periodically reconcile and catch any leads that may have been missed.

Q: How do I avoid duplicate messages in my CRM?

A: Request Yelp to enable the channel field on your Get Lead Events responses. Then filter out BIZ events where channel = "API-SELF" (messages your integration sent) or channel = "SMS" (messages sent via SMS from the biz user's phone). See Messaging and Deduplication for the full filtering logic.

Q: How do I find out when a consumer changes their project details?

A: Subscribe to the project_update webhook type. You'll receive a PROJECT_UPDATE webhook whenever the consumer updates the details of an existing lead; call Get Lead to retrieve the latest details. See Section 6C.

Q: How long do masked emails last?

A: Masked email addresses expire after 30 days from lead creation.

Q: How often do I need to renew my webhook subscription?

A: Webhook subscriptions expire after 14 days by default. You must unsubscribe and resubscribe before expiry to avoid missing notifications. We recommend automating this renewal.

Q: How do I map Yelp leads to CRM objects?

A: Each Yelp lead has a unique lead_id. Use this as the primary key to map to your CRM's lead/job/project object. The Get Lead endpoint returns all details needed for CRM record creation (consumer name, project details, survey answers, etc.).

Q: Does the webhook subscription cover all businesses or just specific ones?

A: By default, subscribing to webhooks covers ALL businesses the authenticated biz user has access to. If you want to limit to specific businesses, pass the optional restricted_business_ids parameter during subscription.

Q: Do I need one OAuth token per business, or can one token cover multiple businesses?

A: One token from a business user with access to multiple businesses can cover all of those businesses. You do not need per-business tokens.

Q: What does the consumer see when a partner replies via API?

A: The message appears in the Yelp app attributed to the business name, identical to a pro's reply sent from their own Yelp inbox.

Q: How to determine if a Yelp profile (aka business id) can use Yelp's Leads API?

A: To use Yelp's Leads API, business needs to have Request-a-Quote active on their page. Not all businesses on Yelp are eligible for Request-a-Quote, eligibility is category dependent. To determine if a business currently has this enabled send this request and check the messaging part of the response. If is_enabled=true & use_case_text has any value except Message the Business it can use Yelp's Leads API. 'Message the Business' is not currently supported via Leads API.

"messaging": {
		"url": "https://www.yelp.com/raq/Vk7rtHcH89bvGh1GlhaeVA?#popup%3Araq",
		"use_case_text": "Request a Quote",
		"is_enabled": true
	}

Q: How can a pro enable and disable messaging on their Yelp page?

A: This is managed in their biz.yelp.com login, more details here.


Did this page help you?