Get the Google Ads lead form webhook
GET
/api/v1/ads/lead-forms
const url = 'https://digize.com/api/v1/ads/lead-forms';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/ads/lead-forms \ --header 'x-api-key: <x-api-key>'The webhook URL and key Google Ads lead forms deliver to, and the last 20 leads they sent, test ones too.
Needs the settings:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
webhookUrl
required
Paste into a lead form’s delivery settings in Google Ads.
string
recent
required
Array<object>
object
id
required
Google’s lead_id.
string
test
required
Sent by the lead form’s test button; it made no contact.
boolean
name
required
string | null
email
required
string | null
phone
required
string | null
formId
required
string | null
campaignId
required
string | null
gclid
required
string | null
contactId
required
string | null
submittedAt
required
string format: date-time
Example generated
{ "webhookUrl": "example", "key": { "hint": "example", "createdAt": "2026-04-15T12:00:00Z" }, "recent": [ { "id": "example", "test": true, "name": "example", "email": "example", "phone": "example", "formId": "example", "campaignId": "example", "gclid": "example", "contactId": "example", "submittedAt": "2026-04-15T12:00:00Z" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}