# Integration

# Integrating Zapier

- AgentRoof Provides [WebHook](https://zapier.com/features/webhooks "https://zapier.com/features/webhooks") to connect your Zaps
- Using AgentRoof WebHook you can send data of leads from any application connected to [Zapier](https://zapier.com/ "https://zapier.com/") to AgentRoof CRM
- The WebHook Accept the following information
    
    
    - Name
    - Email
    - Phone
    - Campaign Name
    - Adset Name

Find below the instructions to connect your Zaps to AgentRoof CRM

1. Create new Zap trigger Refer: <span class="_80om1qgj _1e0c1nu9" data-testid="smart-link-draggable-inline"><span data-annotation-inline-node="true" data-annotation-mark="true" data-card-url="https://help.zapier.com/hc/en-us/articles/8496288188429-Set-up-your-Zap-trigger#h_01J5TN82DP6CXGMFR93ME3H8F0" data-inline-card="true" data-renderer-start-pos="376"><span class="loader-wrapper"><span class="hover-card-trigger-wrapper" data-testid="hover-card-trigger-wrapper" role="none">[<span class="_19itglyw _vchhusvi _r06hglyw _o5721jtm _1nmz9jpi _16d9qvcn _ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66" data-testid="inline-card-icon-and-title"><span class="_19itglyw _vchhusvi _r06hglyw">Set up your Zap trigger</span></span>](https://help.zapier.com/hc/en-us/articles/8496288188429-Set-up-your-Zap-trigger#h_01J5TN82DP6CXGMFR93ME3H8F0)</span></span></span></span>
    
    
    1. Or you can use your existing Zap trigger
2. Create Action
    
    
    1. Choose Action type as Webhook By Zapier
    2. On the App &amp; Event section
        
        
        1. Choose Event as POST
            
            <div class="rich-media-item mediaSingleView-content-wrap image-center css-1xjf95a" data-layout="center" data-media-vc-wrapper="true" data-node-type="mediaSingle" data-renderer-start-pos="542" data-vc="media-single" data-width="368" data-width-type="pixel"><div class="css-55mk8j"><div class="css-vhfmu2" contenteditable="false" data-media-badges="true" data-testid="media-badges">  
            </div><div data-alt="Screenshot from 2024-08-28 00-04-10.png" data-collection="contentId-282427393" data-context-id="282427393" data-file-mime-type="image/png" data-file-name="Screenshot from 2024-08-28 00-04-10.png" data-file-size="46402" data-height="709" data-id="9ac28662-4364-4e3b-9427-8a6203b3366b" data-node-type="media" data-renderer-start-pos="543" data-type="file" data-width="682"><div class="_2rko18qm _vchhusvi _kqswh2mm _ect4ttxp _p12f1osq _c71l1osq _1bsb1qmm _4t3ine4n _1hlmd0i9 _1rquusvi _eg541i5c _mts3kb7n _1ntskb7n _yfmhtlke _5sb1v00u new-file-experience-wrapper" data-media-vc-wrapper="true" data-testid="media-card-view" id="bkmrk-"><div class="_1reo15vq _18m915vq _2rko18qm _1e0c1txw _kqswh2mm _p12f1osq _1bsb1osq _4t3i1osq _c71l1osq media-file-card-view" data-cursor="pointer" data-test-media-name="Screenshot from 2024-08-28 00-04-10.png" data-test-progress="1" data-test-source="remote" data-test-status="complete" data-testid="media-file-card-view"><div class="_kqswstnw _1bsb1osq _4t3i1osq _1e0c1txw _2lx21bp4 _1bah1h6o _4cvr1h6o" data-testid="ImageRendererWrapper">[![Screenshot from 2024-08-28 00-04-10.png](https://wiki.agentroof.com/uploads/images/gallery/2026-04/scaled-1680-/screenshot-from-2024-08-28-00-04-10.png)](https://wiki.agentroof.com/uploads/images/gallery/2026-04/screenshot-from-2024-08-28-00-04-10.png)</div></div></div></div></div></div>
        2. Click Continue
    3. In the action section enter the following details
        
        
        1. URL
            
            
            1. https://crm.agentroof.com/api/facebook-lead-via-zapier
        2. Payload type
            
            
            1. Form
        3. Data
            
            
            1. In this section add the following data using the '+' button
            2. name
                
                
                1. Choose name filed from your trigger
                2. This is a required field
            3. email
                
                
                1. Choose email field from your trigger
                2. Either email or phone is required
            4. phone
                
                
                1. Choose phone field from your trigger
                2. Either email or phone is required
            5. campaign
                
                
                1. You can input any value or choose from your trigger
                2. This is used to identify the source of the lead in CRM
                3. This field is required
            6. adname
                
                
                1. This field is optional
                2. It Can be used when you are running facebook add
        4. Wrap Request In Array
            
            
            1. Choose ‘No’
        5. Unflatten
            
            
            1. Choose ‘Yes’
        6. Headers
            
            
            1. Set header name as ‘APPKEY’
            2. Value as
                
                
                1. <span class="fabric-background-color-mark" data-background-custom-color="#fedec8" data-renderer-mark="true"><span class="background-color-padding-left background-color-padding-right">Your CRM KEY</span></span>
                    
                    
                    1. <span class="fabric-background-color-mark" data-background-custom-color="#fedec8" data-renderer-mark="true"><span class="background-color-padding-left background-color-padding-right">Get the key from our support team</span></span>
        7. Click Continue
    4. Test your step and verify you have received a lead in CRM
    5. Publish the Zap

# Integrating Third-party Landing Pages Via API

#### Overview<span class="heading-anchor-wrapper" role="presentation"><button aria-hidden="true" class="css-x4slh0" data-testid="anchor-button" type="button"><span aria-label="Copy" class="_1e0c1o8l _vchhusvi _1o9zidpf _vwz4kb7n _y4ti1igz _bozg1mb9 _12va1onz _jcxd1r8n" role="img"><svg class="_1reo15vq _18m915vq _syaz1r31 _lcxvglyw _s7n4yfq0 _vc881r31 _1bsbpxbi _4t3ipxbi" fill="none" role="presentation" viewbox="0 0 16 16"><path clip-rule="evenodd" d="M8.22 2.22a3.932 3.932 0 1 1 5.56 5.56l-2.25 2.25-1.06-1.06 2.25-2.25a2.432 2.432 0 0 0-3.44-3.44L7.03 5.53 5.97 4.47zm3.06 3.56-5.5 5.5-1.06-1.06 5.5-5.5zM2.22 8.22l2.25-2.25 1.06 1.06-2.25 2.25a2.432 2.432 0 0 0 3.44 3.44l2.25-2.25 1.06 1.06-2.25 2.25a3.932 3.932 0 1 1-5.56-5.56" fill="currentcolor" fill-rule="evenodd"></path></svg></span></button></span>

AgentRoof CRM provides an API to integrate lead submissions from external websites or landing pages not developed by AgentRoof. This API allows users to send lead details directly to AgentRoof CRM.

#### Base URL<span class="heading-anchor-wrapper" role="presentation"><button aria-hidden="true" class="css-x4slh0" data-testid="anchor-button" type="button"><span aria-label="Copy" class="_1e0c1o8l _vchhusvi _1o9zidpf _vwz4kb7n _y4ti1igz _bozg1mb9 _12va1onz _jcxd1r8n" role="img"><svg class="_1reo15vq _18m915vq _syaz1r31 _lcxvglyw _s7n4yfq0 _vc881r31 _1bsbpxbi _4t3ipxbi" fill="none" role="presentation" viewbox="0 0 16 16"><path clip-rule="evenodd" d="M8.22 2.22a3.932 3.932 0 1 1 5.56 5.56l-2.25 2.25-1.06-1.06 2.25-2.25a2.432 2.432 0 0 0-3.44-3.44L7.03 5.53 5.97 4.47zm3.06 3.56-5.5 5.5-1.06-1.06 5.5-5.5zM2.22 8.22l2.25-2.25 1.06 1.06-2.25 2.25a2.432 2.432 0 0 0 3.44 3.44l2.25-2.25 1.06 1.06-2.25 2.25a3.932 3.932 0 1 1-5.56-5.56" fill="currentcolor" fill-rule="evenodd"></path></svg></span></button></span><button aria-haspopup="true" aria-label="Turn on wrap" class="wrap-code css-2iplld" tabindex="0" type="button"></button>

<div class="code-block css-1l9rc3g" id="bkmrk-https%3A%2F%2Fcrm.v2.1.age"><span class="prismjs _11c819w5 _2rko12b0 _1dqoglyw _1e0c1txw _vwz4gktf _1reo1wug _o572qvpr _1eimjvyg _bfhk187e _syazi7uo _1ozdn7od _7xinn7od _t7aun7od _r28du2gc _tajqu2gc _1ohiu2gc _m802u2gc _i6ntu2gc _1w2xu2gc _1hmyegat _vblregat _vbulegat _196q1xv3 _1vbw1xv3 _1v9c1xv3 _1srnt0uh _18r6myb0 _vyvc1n1a _1d4j1y44 _1f8gstnw _1pzyb3bt _ra6gsb9t _13cdh2mm _1pp0126e _zvy9f705 _qcxof705 _qzn01a66 _j0l11wug _1weckb7n _1na21hna _vsnzgrf3 _x7c815vq _lh0y15vq _1m3815vq _qk1e15vq _12l6ysn8 _uga3ysn8 _mx8b7mnp _1kr87mnp _xo19t94y _1bemt94y _nalpstnw _151dstnw _1exb1q9c _1hgu1q9c _1mgnt94y _nhket94y _h909i8nm _scgayz1z _ipl81e17 _40uk1l04 _i81p1a66 _1gx21e5h _1ls01ule _vm2c1rh5 _12ok1rh5 _rude1ule _1q16glyw _1io6glyw _juomusic _lcwuusic _pyovu2gc _ccm6u2gc _1ascu2gc _1yuau2gc _xr0w1a66 _4io21a66 _euyxusvi _cahfusvi _zhnuidpf _1amdidpf _mbgc124n _bu7z124n _131n1giz _gy101giz _1wfuwrk5 _16kzwrk5 _9kk3wu06 _cjus1w1g _9k2r1m30 _nhmw1m30 _yl021m30 _eihtd5cb _t9zbd5cb _mqok1w1g _3hsg1w1g _i7ngn7od _9wu1fb2s _1xcoh55r _1t36i7uo _137bh55r _1k7di7uo _97li16jw _12nh9lu1 _1g0517qg _i2igqmo9 _326zi7uo _113p1rpy _1n6t16jw _tgu817qg _1k4716jw _g0lxi7uo _ys4e1rpy _7gp8h55r _1yvqqmo9 _1vwwqmo9 _1rjuqmo9 _1v0lh55r _wmyy17qg _748n17qg _1mfn17qg _1d7e17qg _p2vr17qg _19o6qmo9 _kxov17qg _1np517qg _m2f517qg _1b9t16jw _1tq616jw _1rd216jw _1pbk16jw _k3li16jw _13zt1rpy _2g12fb2s _k86bqmo9 _b5iy1rpy _gti31rpy _1f0g16jw _9d3e17qg _qdia16jw _72uv16jw _13dgkb7n _1707efft _1i3h1txw _16noidpf _h4fuidpf _pp6yidpf _1g4tidpf _11wmidpf _1bx8idpf" data-code-lang="" data-ds--code--code-block="" data-testid="renderer-code-block">`<span class="" data-ds--code--row="" data-testid="renderer-code-block-line-1"><span class="">https://crm.v2.1.agentroof.com/api/add-lead</span></span>`</span></div>#### Request Method<span class="heading-anchor-wrapper" data-guideflow-uid="2" role="presentation"><button aria-hidden="true" class="css-x4slh0" data-testid="anchor-button" type="button"><span aria-label="Copy" class="_1e0c1o8l _vchhusvi _1o9zidpf _vwz4kb7n _y4ti1igz _bozg1mb9 _12va1onz _jcxd1r8n" role="img"><svg class="_1reo15vq _18m915vq _syaz1r31 _lcxvglyw _s7n4yfq0 _vc881r31 _1bsbpxbi _4t3ipxbi" fill="none" role="presentation" viewbox="0 0 16 16"><path clip-rule="evenodd" d="M8.22 2.22a3.932 3.932 0 1 1 5.56 5.56l-2.25 2.25-1.06-1.06 2.25-2.25a2.432 2.432 0 0 0-3.44-3.44L7.03 5.53 5.97 4.47zm3.06 3.56-5.5 5.5-1.06-1.06 5.5-5.5zM2.22 8.22l2.25-2.25 1.06 1.06-2.25 2.25a2.432 2.432 0 0 0 3.44 3.44l2.25-2.25 1.06 1.06-2.25 2.25a3.932 3.932 0 1 1-5.56-5.56" fill="currentcolor" fill-rule="evenodd"></path></svg></span></button></span>

- **POST**: The API accepts POST requests to submit lead information.

#### Request Headers<span class="heading-anchor-wrapper" role="presentation"><button aria-hidden="true" class="css-x4slh0" data-testid="anchor-button" type="button"><span aria-label="Copy" class="_1e0c1o8l _vchhusvi _1o9zidpf _vwz4kb7n _y4ti1igz _bozg1mb9 _12va1onz _jcxd1r8n" role="img"><svg class="_1reo15vq _18m915vq _syaz1r31 _lcxvglyw _s7n4yfq0 _vc881r31 _1bsbpxbi _4t3ipxbi" fill="none" role="presentation" viewbox="0 0 16 16"><path clip-rule="evenodd" d="M8.22 2.22a3.932 3.932 0 1 1 5.56 5.56l-2.25 2.25-1.06-1.06 2.25-2.25a2.432 2.432 0 0 0-3.44-3.44L7.03 5.53 5.97 4.47zm3.06 3.56-5.5 5.5-1.06-1.06 5.5-5.5zM2.22 8.22l2.25-2.25 1.06 1.06-2.25 2.25a2.432 2.432 0 0 0 3.44 3.44l2.25-2.25 1.06 1.06-2.25 2.25a3.932 3.932 0 1 1-5.56-5.56" fill="currentcolor" fill-rule="evenodd"></path></svg></span></button></span>

The request headers must include the `APPKEY`, which serves as your CRM authentication key. Contact the AgentRoof support team to obtain your unique `APPKEY` (CRM Key).

#### Example Header:<span class="heading-anchor-wrapper" role="presentation"><button aria-hidden="true" class="css-x4slh0" data-testid="anchor-button" type="button"><span aria-label="Copy" class="_1e0c1o8l _vchhusvi _1o9zidpf _vwz4kb7n _y4ti1igz _bozg1mb9 _12va1onz _jcxd1r8n" role="img"><svg class="_1reo15vq _18m915vq _syaz1r31 _lcxvglyw _s7n4yfq0 _vc881r31 _1bsbpxbi _4t3ipxbi" fill="none" role="presentation" viewbox="0 0 16 16"><path clip-rule="evenodd" d="M8.22 2.22a3.932 3.932 0 1 1 5.56 5.56l-2.25 2.25-1.06-1.06 2.25-2.25a2.432 2.432 0 0 0-3.44-3.44L7.03 5.53 5.97 4.47zm3.06 3.56-5.5 5.5-1.06-1.06 5.5-5.5zM2.22 8.22l2.25-2.25 1.06 1.06-2.25 2.25a2.432 2.432 0 0 0 3.44 3.44l2.25-2.25 1.06 1.06-2.25 2.25a3.932 3.932 0 1 1-5.56-5.56" fill="currentcolor" fill-rule="evenodd"></path></svg></span></button></span>

<div class="code-block css-1l9rc3g" id="bkmrk-appkey%3A-your-crm-app"><div class="css-1sws8jd"><div class="css-1u47mc9"><div data-guideflow-uid="5" role="presentation"><div><button aria-haspopup="true" aria-label="Turn on wrap" class="wrap-code css-2iplld" tabindex="0" type="button"></button></div></div></div></div><span class="prismjs _11c819w5 _2rko12b0 _1dqoglyw _1e0c1txw _vwz4gktf _1reo1wug _o572qvpr _1eimjvyg _bfhk187e _syazi7uo _1ozdn7od _7xinn7od _t7aun7od _r28du2gc _tajqu2gc _1ohiu2gc _m802u2gc _i6ntu2gc _1w2xu2gc _1hmyegat _vblregat _vbulegat _196q1xv3 _1vbw1xv3 _1v9c1xv3 _1srnt0uh _18r6myb0 _vyvc1n1a _1d4j1y44 _1f8gstnw _1pzyb3bt _ra6gsb9t _13cdh2mm _1pp0126e _zvy9f705 _qcxof705 _qzn01a66 _j0l11wug _1weckb7n _1na21hna _vsnzgrf3 _x7c815vq _lh0y15vq _1m3815vq _qk1e15vq _12l6ysn8 _uga3ysn8 _mx8b7mnp _1kr87mnp _xo19t94y _1bemt94y _nalpstnw _151dstnw _1exb1q9c _1hgu1q9c _1mgnt94y _nhket94y _h909i8nm _scgayz1z _ipl81e17 _40uk1l04 _i81p1a66 _1gx21e5h _1ls01ule _vm2c1rh5 _12ok1rh5 _rude1ule _1q16glyw _1io6glyw _juomusic _lcwuusic _pyovu2gc _ccm6u2gc _1ascu2gc _1yuau2gc _xr0w1a66 _4io21a66 _euyxusvi _cahfusvi _zhnuidpf _1amdidpf _mbgc124n _bu7z124n _131n1giz _gy101giz _1wfuwrk5 _16kzwrk5 _9kk3wu06 _cjus1w1g _9k2r1m30 _nhmw1m30 _yl021m30 _eihtd5cb _t9zbd5cb _mqok1w1g _3hsg1w1g _i7ngn7od _9wu1fb2s _1xcoh55r _1t36i7uo _137bh55r _1k7di7uo _97li16jw _12nh9lu1 _1g0517qg _i2igqmo9 _326zi7uo _113p1rpy _1n6t16jw _tgu817qg _1k4716jw _g0lxi7uo _ys4e1rpy _7gp8h55r _1yvqqmo9 _1vwwqmo9 _1rjuqmo9 _1v0lh55r _wmyy17qg _748n17qg _1mfn17qg _1d7e17qg _p2vr17qg _19o6qmo9 _kxov17qg _1np517qg _m2f517qg _1b9t16jw _1tq616jw _1rd216jw _1pbk16jw _k3li16jw _13zt1rpy _2g12fb2s _k86bqmo9 _b5iy1rpy _gti31rpy _1f0g16jw _9d3e17qg _qdia16jw _72uv16jw _13dgkb7n _1707efft _1i3h1txw _16noidpf _h4fuidpf _pp6yidpf _1g4tidpf _11wmidpf _1bx8idpf" data-code-lang="text" data-ds--code--code-block="" data-testid="renderer-code-block">`<span class="" data-ds--code--row="" data-testid="renderer-code-block-line-1"><span class="">APPKEY: your-crm-appkey-here</span></span>`</span></div>#### Request Body<span class="heading-anchor-wrapper" role="presentation"><button aria-hidden="true" class="css-x4slh0" data-testid="anchor-button" type="button"><span aria-label="Copy" class="_1e0c1o8l _vchhusvi _1o9zidpf _vwz4kb7n _y4ti1igz _bozg1mb9 _12va1onz _jcxd1r8n" role="img"><svg class="_1reo15vq _18m915vq _syaz1r31 _lcxvglyw _s7n4yfq0 _vc881r31 _1bsbpxbi _4t3ipxbi" fill="none" role="presentation" viewbox="0 0 16 16"><path clip-rule="evenodd" d="M8.22 2.22a3.932 3.932 0 1 1 5.56 5.56l-2.25 2.25-1.06-1.06 2.25-2.25a2.432 2.432 0 0 0-3.44-3.44L7.03 5.53 5.97 4.47zm3.06 3.56-5.5 5.5-1.06-1.06 5.5-5.5zM2.22 8.22l2.25-2.25 1.06 1.06-2.25 2.25a2.432 2.432 0 0 0 3.44 3.44l2.25-2.25 1.06 1.06-2.25 2.25a3.932 3.932 0 1 1-5.56-5.56" fill="currentcolor" fill-rule="evenodd"></path></svg></span></button></span>

The request body should be sent as `form-data` and include the following fields:

<div class="pm-table-container with-shadow-observer" data-layout="custom" data-testid="table-container" id="bkmrk-field-name-type-requ"><div class="pm-table-wrapper" data-autosize="false" data-layout="default" data-number-column="false" data-table-local-id="e7542426-353d-4cb3-9435-2ecb4ece4935" data-table-width="760" data-vc="table-node-wrapper"><table data-layout="default" data-number-column="false" data-table-width="760" data-testid="renderer-table"><colgroup><col></col><col></col><col></col><col></col></colgroup><tbody><tr><th aria-sort="none" class="ak-renderer-tableHeader-sortable-column__wrapper" colspan="1" data-colwidth="110" rowspan="1">Field Name

</th><th aria-sort="none" class="ak-renderer-tableHeader-sortable-column__wrapper" colspan="1" data-colwidth="91" rowspan="1">Type

</th><th aria-sort="none" class="ak-renderer-tableHeader-sortable-column__wrapper" colspan="1" data-colwidth="87" rowspan="1">Required

</th><th aria-sort="none" class="ak-renderer-tableHeader-sortable-column__wrapper" colspan="1" data-colwidth="469" rowspan="1">Description

</th></tr><tr><td colspan="1" data-colwidth="110" rowspan="1">`name`

</td><td colspan="1" data-colwidth="91" rowspan="1">string

</td><td colspan="1" data-colwidth="87" rowspan="1">Yes

</td><td colspan="1" data-colwidth="469" rowspan="1">The full name of the lead.

</td></tr><tr><td colspan="1" data-colwidth="110" rowspan="1">`email`

</td><td colspan="1" data-colwidth="91" rowspan="1">string

</td><td colspan="1" data-colwidth="87" rowspan="1">Yes

</td><td colspan="1" data-colwidth="469" rowspan="1">The lead's email address (must be a valid email).

</td></tr><tr><td colspan="1" data-colwidth="110" rowspan="1">`phone`

</td><td colspan="1" data-colwidth="91" rowspan="1">string

</td><td colspan="1" data-colwidth="87" rowspan="1">Yes

</td><td colspan="1" data-colwidth="469" rowspan="1">The lead's phone number (must be a 10-digit number).

</td></tr><tr><td colspan="1" data-colwidth="110" rowspan="1">`url`

</td><td colspan="1" data-colwidth="91" rowspan="1">string

</td><td colspan="1" data-colwidth="87" rowspan="1">Yes

</td><td colspan="1" data-colwidth="469" rowspan="1">The URL of the website or landing page from which the form is submitted.

</td></tr><tr><td colspan="1" data-colwidth="110" rowspan="1">`source`

</td><td colspan="1" data-colwidth="91" rowspan="1">string

</td><td colspan="1" data-colwidth="87" rowspan="1">No

</td><td colspan="1" data-colwidth="469" rowspan="1">The lead source (default: `website`). Can be customized.

</td></tr><tr><td colspan="1" data-colwidth="110" rowspan="1">`stage`

</td><td colspan="1" data-colwidth="91" rowspan="1">string

</td><td colspan="1" data-colwidth="87" rowspan="1">No

</td><td colspan="1" data-colwidth="469" rowspan="1">The lead's stage (default: `Lead`).

</td></tr><tr><td colspan="1" data-colwidth="110" rowspan="1">`tag`

</td><td colspan="1" data-colwidth="91" rowspan="1">string

</td><td colspan="1" data-colwidth="87" rowspan="1">No

</td><td colspan="1" data-colwidth="469" rowspan="1">Tags associated with the lead (default: `Buyer lead, Seller lead`).

</td></tr></tbody></table>

</div><div class="pm-table-sticky-scrollbar-container-view-page" data-vc="table-sticky-scrollbar-container"></div></div>#### Example Request Body:<span class="heading-anchor-wrapper" data-guideflow-uid="6" role="presentation"><button aria-hidden="true" class="css-x4slh0" data-testid="anchor-button" type="button"><span aria-label="Copy" class="_1e0c1o8l _vchhusvi _1o9zidpf _vwz4kb7n _y4ti1igz _bozg1mb9 _12va1onz _jcxd1r8n" role="img"><svg class="_1reo15vq _18m915vq _syaz1r31 _lcxvglyw _s7n4yfq0 _vc881r31 _1bsbpxbi _4t3ipxbi" fill="none" role="presentation" viewbox="0 0 16 16"><path clip-rule="evenodd" d="M8.22 2.22a3.932 3.932 0 1 1 5.56 5.56l-2.25 2.25-1.06-1.06 2.25-2.25a2.432 2.432 0 0 0-3.44-3.44L7.03 5.53 5.97 4.47zm3.06 3.56-5.5 5.5-1.06-1.06 5.5-5.5zM2.22 8.22l2.25-2.25 1.06 1.06-2.25 2.25a2.432 2.432 0 0 0 3.44 3.44l2.25-2.25 1.06 1.06-2.25 2.25a3.932 3.932 0 1 1-5.56-5.56" fill="currentcolor" fill-rule="evenodd"></path></svg></span></button></span><button aria-haspopup="true" aria-label="Turn on wrap" class="wrap-code css-2iplld" tabindex="0" type="button"></button>

<div class="code-block css-1l9rc3g" id="bkmrk-name%3A-john-doe-email"><span class="prismjs _11c819w5 _2rko12b0 _1dqoglyw _1e0c1txw _vwz4gktf _1reo1wug _o572qvpr _1eimjvyg _bfhk187e _syazi7uo _1ozdn7od _7xinn7od _t7aun7od _r28du2gc _tajqu2gc _1ohiu2gc _m802u2gc _i6ntu2gc _1w2xu2gc _1hmyegat _vblregat _vbulegat _196q1xv3 _1vbw1xv3 _1v9c1xv3 _1srnt0uh _18r6myb0 _vyvc1n1a _1d4j1y44 _1f8gstnw _1pzyb3bt _ra6gsb9t _13cdh2mm _1pp0126e _zvy9f705 _qcxof705 _qzn01a66 _j0l11wug _1weckb7n _1na21hna _vsnzgrf3 _x7c815vq _lh0y15vq _1m3815vq _qk1e15vq _12l6ysn8 _uga3ysn8 _mx8b7mnp _1kr87mnp _xo19t94y _1bemt94y _nalpstnw _151dstnw _1exb1q9c _1hgu1q9c _1mgnt94y _nhket94y _h909i8nm _scgayz1z _ipl81e17 _40uk1l04 _i81p1a66 _1gx21e5h _1ls01ule _vm2c1rh5 _12ok1rh5 _rude1ule _1q16glyw _1io6glyw _juomusic _lcwuusic _pyovu2gc _ccm6u2gc _1ascu2gc _1yuau2gc _xr0w1a66 _4io21a66 _euyxusvi _cahfusvi _zhnuidpf _1amdidpf _mbgc124n _bu7z124n _131n1giz _gy101giz _1wfuwrk5 _16kzwrk5 _9kk3wu06 _cjus1w1g _9k2r1m30 _nhmw1m30 _yl021m30 _eihtd5cb _t9zbd5cb _mqok1w1g _3hsg1w1g _i7ngn7od _9wu1fb2s _1xcoh55r _1t36i7uo _137bh55r _1k7di7uo _97li16jw _12nh9lu1 _1g0517qg _i2igqmo9 _326zi7uo _113p1rpy _1n6t16jw _tgu817qg _1k4716jw _g0lxi7uo _ys4e1rpy _7gp8h55r _1yvqqmo9 _1vwwqmo9 _1rjuqmo9 _1v0lh55r _wmyy17qg _748n17qg _1mfn17qg _1d7e17qg _p2vr17qg _19o6qmo9 _kxov17qg _1np517qg _m2f517qg _1b9t16jw _1tq616jw _1rd216jw _1pbk16jw _k3li16jw _13zt1rpy _2g12fb2s _k86bqmo9 _b5iy1rpy _gti31rpy _1f0g16jw _9d3e17qg _qdia16jw _72uv16jw _13dgkb7n _1707efft _1i3h1txw _16noidpf _h4fuidpf _pp6yidpf _1g4tidpf _11wmidpf _1bx8idpf" data-code-lang="text" data-ds--code--code-block="" data-testid="renderer-code-block">`<span class="" data-ds--code--row="" data-testid="renderer-code-block-line-1"><span class="">name: John Doe</span></span><span class="" data-ds--code--row="" data-testid="renderer-code-block-line-2">email: john.doe@example.com</span><span class="" data-ds--code--row="" data-testid="renderer-code-block-line-3">phone: 1234567890</span><span class="" data-ds--code--row="" data-testid="renderer-code-block-line-4">url: <https://example-landingpage.com></span><span class="" data-ds--code--row="" data-testid="renderer-code-block-line-5">source: Facebook</span><span class="" data-ds--code--row="" data-testid="renderer-code-block-line-6">stage: New Lead</span><span class="" data-ds--code--row="" data-testid="renderer-code-block-line-7">tag: Seller lead</span>`</span></div>#### Response<span class="heading-anchor-wrapper" role="presentation"><button aria-hidden="true" class="css-x4slh0" data-testid="anchor-button" type="button"><span aria-label="Copy" class="_1e0c1o8l _vchhusvi _1o9zidpf _vwz4kb7n _y4ti1igz _bozg1mb9 _12va1onz _jcxd1r8n" role="img"><svg class="_1reo15vq _18m915vq _syaz1r31 _lcxvglyw _s7n4yfq0 _vc881r31 _1bsbpxbi _4t3ipxbi" fill="none" role="presentation" viewbox="0 0 16 16"><path clip-rule="evenodd" d="M8.22 2.22a3.932 3.932 0 1 1 5.56 5.56l-2.25 2.25-1.06-1.06 2.25-2.25a2.432 2.432 0 0 0-3.44-3.44L7.03 5.53 5.97 4.47zm3.06 3.56-5.5 5.5-1.06-1.06 5.5-5.5zM2.22 8.22l2.25-2.25 1.06 1.06-2.25 2.25a2.432 2.432 0 0 0 3.44 3.44l2.25-2.25 1.06 1.06-2.25 2.25a3.932 3.932 0 1 1-5.56-5.56" fill="currentcolor" fill-rule="evenodd"></path></svg></span></button></span>

The API will return a JSON response indicating the success or failure of the lead submission.

#### Successful Response:<span class="heading-anchor-wrapper" data-guideflow-uid="8" role="presentation"><button aria-hidden="true" class="css-x4slh0" data-testid="anchor-button" type="button"><span aria-label="Copy" class="_1e0c1o8l _vchhusvi _1o9zidpf _vwz4kb7n _y4ti1igz _bozg1mb9 _12va1onz _jcxd1r8n" role="img"><svg class="_1reo15vq _18m915vq _syaz1r31 _lcxvglyw _s7n4yfq0 _vc881r31 _1bsbpxbi _4t3ipxbi" fill="none" role="presentation" viewbox="0 0 16 16"><path clip-rule="evenodd" d="M8.22 2.22a3.932 3.932 0 1 1 5.56 5.56l-2.25 2.25-1.06-1.06 2.25-2.25a2.432 2.432 0 0 0-3.44-3.44L7.03 5.53 5.97 4.47zm3.06 3.56-5.5 5.5-1.06-1.06 5.5-5.5zM2.22 8.22l2.25-2.25 1.06 1.06-2.25 2.25a2.432 2.432 0 0 0 3.44 3.44l2.25-2.25 1.06 1.06-2.25 2.25a3.932 3.932 0 1 1-5.56-5.56" fill="currentcolor" fill-rule="evenodd"></path></svg></span></button></span><button aria-haspopup="true" aria-label="Turn on wrap" class="wrap-code css-2iplld" tabindex="0" type="button"></button>

<div class="code-block css-1l9rc3g" id="bkmrk-%7B-%22status%22%3A-%22success"><span class="prismjs _11c819w5 _2rko12b0 _1dqoglyw _1e0c1txw _vwz4gktf _1reo1wug _o572qvpr _1eimjvyg _bfhk187e _syazi7uo _1ozdn7od _7xinn7od _t7aun7od _r28du2gc _tajqu2gc _1ohiu2gc _m802u2gc _i6ntu2gc _1w2xu2gc _1hmyegat _vblregat _vbulegat _196q1xv3 _1vbw1xv3 _1v9c1xv3 _1srnt0uh _18r6myb0 _vyvc1n1a _1d4j1y44 _1f8gstnw _1pzyb3bt _ra6gsb9t _13cdh2mm _1pp0126e _zvy9f705 _qcxof705 _qzn01a66 _j0l11wug _1weckb7n _1na21hna _vsnzgrf3 _x7c815vq _lh0y15vq _1m3815vq _qk1e15vq _12l6ysn8 _uga3ysn8 _mx8b7mnp _1kr87mnp _xo19t94y _1bemt94y _nalpstnw _151dstnw _1exb1q9c _1hgu1q9c _1mgnt94y _nhket94y _h909i8nm _scgayz1z _ipl81e17 _40uk1l04 _i81p1a66 _1gx21e5h _1ls01ule _vm2c1rh5 _12ok1rh5 _rude1ule _1q16glyw _1io6glyw _juomusic _lcwuusic _pyovu2gc _ccm6u2gc _1ascu2gc _1yuau2gc _xr0w1a66 _4io21a66 _euyxusvi _cahfusvi _zhnuidpf _1amdidpf _mbgc124n _bu7z124n _131n1giz _gy101giz _1wfuwrk5 _16kzwrk5 _9kk3wu06 _cjus1w1g _9k2r1m30 _nhmw1m30 _yl021m30 _eihtd5cb _t9zbd5cb _mqok1w1g _3hsg1w1g _i7ngn7od _9wu1fb2s _1xcoh55r _1t36i7uo _137bh55r _1k7di7uo _97li16jw _12nh9lu1 _1g0517qg _i2igqmo9 _326zi7uo _113p1rpy _1n6t16jw _tgu817qg _1k4716jw _g0lxi7uo _ys4e1rpy _7gp8h55r _1yvqqmo9 _1vwwqmo9 _1rjuqmo9 _1v0lh55r _wmyy17qg _748n17qg _1mfn17qg _1d7e17qg _p2vr17qg _19o6qmo9 _kxov17qg _1np517qg _m2f517qg _1b9t16jw _1tq616jw _1rd216jw _1pbk16jw _k3li16jw _13zt1rpy _2g12fb2s _k86bqmo9 _b5iy1rpy _gti31rpy _1f0g16jw _9d3e17qg _qdia16jw _72uv16jw _13dgkb7n _1707efft _1i3h1txw _16noidpf _h4fuidpf _pp6yidpf _1g4tidpf _11wmidpf _1bx8idpf" data-code-lang="json" data-ds--code--code-block="" data-testid="renderer-code-block">`<span class="" data-ds--code--row="" data-testid="renderer-code-block-line-1"><span class=""><span class="token punctuation">{</span></span></span><span class="" data-ds--code--row="" data-testid="renderer-code-block-line-2"><span class="">    <span class="token property">"status"</span><span class="token operator">:</span> <span class="token string">"success"</span><span class="token punctuation">,</span></span></span><span class="" data-ds--code--row="" data-testid="renderer-code-block-line-3"><span class="">    <span class="token property">"message"</span><span class="token operator">:</span> <span class="token string">"Lead added successfully"</span><span class="token punctuation">,</span></span></span><span class="" data-ds--code--row="" data-testid="renderer-code-block-line-4"><span class="">    <span class="token property">"data"</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span></span></span><span class="" data-ds--code--row="" data-testid="renderer-code-block-line-5"><span class=""><span class="token punctuation">}</span></span></span>`</span></div>#### Error Response:<span class="heading-anchor-wrapper" data-guideflow-uid="10" role="presentation"><button aria-hidden="true" class="css-x4slh0" data-testid="anchor-button" type="button"><span aria-label="Copy" class="_1e0c1o8l _vchhusvi _1o9zidpf _vwz4kb7n _y4ti1igz _bozg1mb9 _12va1onz _jcxd1r8n" role="img"><svg class="_1reo15vq _18m915vq _syaz1r31 _lcxvglyw _s7n4yfq0 _vc881r31 _1bsbpxbi _4t3ipxbi" fill="none" role="presentation" viewbox="0 0 16 16"><path clip-rule="evenodd" d="M8.22 2.22a3.932 3.932 0 1 1 5.56 5.56l-2.25 2.25-1.06-1.06 2.25-2.25a2.432 2.432 0 0 0-3.44-3.44L7.03 5.53 5.97 4.47zm3.06 3.56-5.5 5.5-1.06-1.06 5.5-5.5zM2.22 8.22l2.25-2.25 1.06 1.06-2.25 2.25a2.432 2.432 0 0 0 3.44 3.44l2.25-2.25 1.06 1.06-2.25 2.25a3.932 3.932 0 1 1-5.56-5.56" fill="currentcolor" fill-rule="evenodd"></path></svg></span></button></span>

If the request fails due to missing required fields or validation errors, the API will return a JSON response with details:<button aria-haspopup="true" aria-label="Turn on wrap" class="wrap-code css-2iplld" tabindex="0" type="button"></button>

<div class="code-block css-1l9rc3g" id="bkmrk-%7B-%22status%22%3A-%22error%22%2C"><span aria-label="Scrollable content" class="prismjs _11c819w5 _2rko12b0 _1dqoglyw _1e0c1txw _vwz4gktf _1reo1wug _o572qvpr _1eimjvyg _bfhk187e _syazi7uo _1ozdn7od _7xinn7od _t7aun7od _r28du2gc _tajqu2gc _1ohiu2gc _m802u2gc _i6ntu2gc _1w2xu2gc _1hmyegat _vblregat _vbulegat _196q1xv3 _1vbw1xv3 _1v9c1xv3 _1srnt0uh _18r6myb0 _vyvc1n1a _1d4j1y44 _1f8gstnw _1pzyb3bt _ra6gsb9t _13cdh2mm _1pp0126e _zvy9f705 _qcxof705 _qzn01a66 _j0l11wug _1weckb7n _1na21hna _vsnzgrf3 _x7c815vq _lh0y15vq _1m3815vq _qk1e15vq _12l6ysn8 _uga3ysn8 _mx8b7mnp _1kr87mnp _xo19t94y _1bemt94y _nalpstnw _151dstnw _1exb1q9c _1hgu1q9c _1mgnt94y _nhket94y _h909i8nm _scgayz1z _ipl81e17 _40uk1l04 _i81p1a66 _1gx21e5h _1ls01ule _vm2c1rh5 _12ok1rh5 _rude1ule _1q16glyw _1io6glyw _juomusic _lcwuusic _pyovu2gc _ccm6u2gc _1ascu2gc _1yuau2gc _xr0w1a66 _4io21a66 _euyxusvi _cahfusvi _zhnuidpf _1amdidpf _mbgc124n _bu7z124n _131n1giz _gy101giz _1wfuwrk5 _16kzwrk5 _9kk3wu06 _cjus1w1g _9k2r1m30 _nhmw1m30 _yl021m30 _eihtd5cb _t9zbd5cb _mqok1w1g _3hsg1w1g _i7ngn7od _9wu1fb2s _1xcoh55r _1t36i7uo _137bh55r _1k7di7uo _97li16jw _12nh9lu1 _1g0517qg _i2igqmo9 _326zi7uo _113p1rpy _1n6t16jw _tgu817qg _1k4716jw _g0lxi7uo _ys4e1rpy _7gp8h55r _1yvqqmo9 _1vwwqmo9 _1rjuqmo9 _1v0lh55r _wmyy17qg _748n17qg _1mfn17qg _1d7e17qg _p2vr17qg _19o6qmo9 _kxov17qg _1np517qg _m2f517qg _1b9t16jw _1tq616jw _1rd216jw _1pbk16jw _k3li16jw _13zt1rpy _2g12fb2s _k86bqmo9 _b5iy1rpy _gti31rpy _1f0g16jw _9d3e17qg _qdia16jw _72uv16jw _13dgkb7n _1707efft _1i3h1txw _16noidpf _h4fuidpf _pp6yidpf _1g4tidpf _11wmidpf _1bx8idpf" data-code-lang="json" data-ds--code--code-block="" data-testid="renderer-code-block" role="region" tabindex="0">`<span class="" data-ds--code--row="" data-testid="renderer-code-block-line-1"><span class=""><span class="token punctuation">{</span></span></span><span class="" data-ds--code--row="" data-testid="renderer-code-block-line-2"><span class="">    <span class="token property">"status"</span><span class="token operator">:</span> <span class="token string">"error"</span><span class="token punctuation">,</span></span></span><span class="" data-ds--code--row="" data-testid="renderer-code-block-line-3"><span class="">    <span class="token property">"message"</span><span class="token operator">:</span> <span class="token string">"The email must be a valid email address.,The phone field is required."</span></span></span><span class="" data-ds--code--row="" data-testid="renderer-code-block-line-4"><span class=""><span class="token punctuation">}</span></span></span>`</span></div>#### Whitelisting IP Address<span class="heading-anchor-wrapper" data-guideflow-uid="12" role="presentation"><button aria-hidden="true" class="css-x4slh0" data-testid="anchor-button" type="button"><span aria-label="Copy" class="_1e0c1o8l _vchhusvi _1o9zidpf _vwz4kb7n _y4ti1igz _bozg1mb9 _12va1onz _jcxd1r8n" role="img"><svg class="_1reo15vq _18m915vq _syaz1r31 _lcxvglyw _s7n4yfq0 _vc881r31 _1bsbpxbi _4t3ipxbi" fill="none" role="presentation" viewbox="0 0 16 16"><path clip-rule="evenodd" d="M8.22 2.22a3.932 3.932 0 1 1 5.56 5.56l-2.25 2.25-1.06-1.06 2.25-2.25a2.432 2.432 0 0 0-3.44-3.44L7.03 5.53 5.97 4.47zm3.06 3.56-5.5 5.5-1.06-1.06 5.5-5.5zM2.22 8.22l2.25-2.25 1.06 1.06-2.25 2.25a2.432 2.432 0 0 0 3.44 3.44l2.25-2.25 1.06 1.06-2.25 2.25a3.932 3.932 0 1 1-5.56-5.56" fill="currentcolor" fill-rule="evenodd"></path></svg></span></button></span>

To ensure the API requests are not blocked by AgentRoof's firewall, you are required to share the IP address from which the requests will be made. Contact AgentRoof support to have your IP address whitelisted.

#### Important Notes<span class="heading-anchor-wrapper" data-guideflow-uid="13" role="presentation"><button aria-hidden="true" class="css-x4slh0" data-testid="anchor-button" type="button"><span aria-label="Copy" class="_1e0c1o8l _vchhusvi _1o9zidpf _vwz4kb7n _y4ti1igz _bozg1mb9 _12va1onz _jcxd1r8n" role="img"><svg class="_1reo15vq _18m915vq _syaz1r31 _lcxvglyw _s7n4yfq0 _vc881r31 _1bsbpxbi _4t3ipxbi" fill="none" role="presentation" viewbox="0 0 16 16"><path clip-rule="evenodd" d="M8.22 2.22a3.932 3.932 0 1 1 5.56 5.56l-2.25 2.25-1.06-1.06 2.25-2.25a2.432 2.432 0 0 0-3.44-3.44L7.03 5.53 5.97 4.47zm3.06 3.56-5.5 5.5-1.06-1.06 5.5-5.5zM2.22 8.22l2.25-2.25 1.06 1.06-2.25 2.25a2.432 2.432 0 0 0 3.44 3.44l2.25-2.25 1.06 1.06-2.25 2.25a3.932 3.932 0 1 1-5.56-5.56" fill="currentcolor" fill-rule="evenodd"></path></svg></span></button></span>

- **APPKEY**: Always ensure the correct APPKEY is used in the request header.
- **IP Address Whitelisting**: Failure to whitelist your IP address may result in the API request being blocked by AgentRoof's firewall.
- **Form-Data Submission**: Ensure that all required fields are provided in the correct format to avoid validation errors.

For any additional assistance, please contact the AgentRoof support team.

# Integrate  Facebook Lead Ads

#### What is Facebook Lead Ads Integration?

Facebook Lead Ads Integration allows you to connect your Facebook Lead Center directly to AgentRoof CRM.

Once connected, leads submitted through your Facebook Lead Ads are automatically captured and added to AgentRoof CRM, helping you respond to new inquiries more quickly and efficiently.

---

#### Access the Integration Page

1. Navigate to the left-hand menu.
2. Click **Integration**.

The Integration page will be displayed.

---

##### Connect Facebook Lead Ads

1. Locate the **Facebook Lead Ads** integration.
2. Click **Connect Now**.

You will be redirected to the Facebook Lead Ads configuration page.

---

##### Configure the Integration

1. Click **Connect Facebook**.

##### Import Existing Facebook Leads

If you would like to import leads that already exist in your Facebook Lead Center:

1. Select **Yes**.

If you only want to receive new leads going forward:

1. Select **No**.
2. Click **Continue**.

You will be redirected to the Facebook login page.

---

#### Log in to Facebook

1. Enter your Facebook credentials.
2. Complete the login process.

After successfully logging in, a list of Facebook Pages associated with your account will be displayed.

---

##### Select Facebook Pages

1. Select the Facebook Page or Pages you want to connect to AgentRoof CRM.
2. Click **Next**.

The permissions page will be displayed.

---

##### Grant Required Permissions

To allow AgentRoof CRM to automatically receive leads submitted through Facebook Lead Ads:

1. Review the requested permissions.
2. Select **Yes** for all permissions.
3. Click **Done**.

> **Note**
> 
> The requested permissions are required for AgentRoof CRM to retrieve leads from your Facebook Lead Center automatically.

---

##### Complete the Integration

1. Click **OK** on the confirmation screen.

Your Facebook Lead Center is now successfully connected to AgentRoof CRM.

---

#### Activate Connected Pages

After the connection is completed:

1. Return to the Facebook Lead Ads configuration page.
2. Locate the connected Facebook Pages.
3. Click **Activate** next to each page you want to receive leads from.

Once activated, leads submitted through those Facebook Lead Ads will automatically be added to AgentRoof CRM.

---

#### Manage Connected Pages

At any time, you can:

- Add additional Facebook Pages
- Remove connected Facebook Pages
- Activate or deactivate lead synchronization
- Disconnect the Facebook integration entirely

All management options are available from the Facebook Lead Ads configuration page.

---

#### Conclusion

You have successfully learned how to connect Facebook Lead Ads to AgentRoof CRM, import existing Facebook leads, activate connected pages, and manage your Facebook Lead Ads integration.

# Integrate Twilio SMS