Title: add api fields in webhook
Last modified: November 19, 2021

---

# add api fields in webhook

 *  [utkarshs](https://wordpress.org/support/users/utkarshs/)
 * (@utkarshs)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/add-api-fields-in-webhook/)
 * Hello,
    I have added two api fields utm_source & utm_campaign in settings->general-
   >custom url/api fields. I’m sending the chatbot data to crm using webhook and
   its working successfully. But I’m unable to add the api fields in the webhook.
   Help please
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadd-api-fields-in-webhook%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [utkarshs](https://wordpress.org/support/users/utkarshs/)
 * (@utkarshs)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/add-api-fields-in-webhook/#post-15085087)
 * In the following docs [https://collect.chat/article/show/88766-capture-utm-parameters-from-urls](https://collect.chat/article/show/88766-capture-utm-parameters-from-urls)
   this is mentioned:
 * “Once they are defined in the Settings, the chatbot will be able to pick it up
   and send it along with the rest of the conversation that the user had with the
   chatbot. You will be able to see these data points in the Response section, in
   the email notifications, and in the webhooks.”
 *  Plugin Author [collectchat](https://wordpress.org/support/users/collectchat/)
 * (@collectchat)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/add-api-fields-in-webhook/#post-15090404)
 * Hi [@utkarshs](https://wordpress.org/support/users/utkarshs/)
 * As the article says, when you add utm_source and utm_campaign as custom fields,
   these 2 fields will be captured by the chatbot and send along with webhook data.
 * When you say, “But I’m unable to add the api fields in the webhook”, we assume
   you are talking about the same 2 fields, utm_source and utm_campaign.
 * If you are trying to troubleshoot the data send by webhook, we recommend the 
   method described here – [https://collect.chat/article/show/130684-webhook-in-my-chatbot-is-not-working](https://collect.chat/article/show/130684-webhook-in-my-chatbot-is-not-working)
 * Test the webhook with above method and if you are still not getting the data 
   as expected, please write to [care@collect.chat](https://wordpress.org/support/topic/add-api-fields-in-webhook/care@collect.chat?output_format=md)
   with the following:
 * 1. Detail out what you are trying to achieve
    2. Send screenshot of webhook settings
   3. Send screenshot of what you are receiving on your side
 * Thanks and Regards,
    Collect.chat Team
 *  Thread Starter [utkarshs](https://wordpress.org/support/users/utkarshs/)
 * (@utkarshs)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/add-api-fields-in-webhook/#post-15094519)
 * As you can see in the images, I have added the two api fields to be captured 
   utm_source & utm_campaign. The webhook is sending the data properly, but in the
   webhook section there is no option to add the api fields. Because of this I’m
   unable to send the api fields to the api endpoint.
    Also, there is no document
   or video on how to send api fields through webhook. Please add one if possible.
 *  Thread Starter [utkarshs](https://wordpress.org/support/users/utkarshs/)
 * (@utkarshs)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/add-api-fields-in-webhook/#post-15094528)
 * Images – [https://photos.app.goo.gl/SqzF1chCBSyfhxCH8](https://photos.app.goo.gl/SqzF1chCBSyfhxCH8)
 *  Plugin Author [collectchat](https://wordpress.org/support/users/collectchat/)
 * (@collectchat)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/add-api-fields-in-webhook/#post-15095191)
 * We are discussing this issue with the tech team and will get back to you, here.
 * Regards,
    Collect.chat

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘add api fields in webhook’ is closed to new replies.

 * ![](https://ps.w.org/collectchat/assets/icon-256x256.png?rev=2288110)
 * [Chatbot for WordPress by Collect.chat ⚡️](https://wordpress.org/plugins/collectchat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/collectchat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/collectchat/)
 * [Active Topics](https://wordpress.org/support/plugin/collectchat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/collectchat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/collectchat/reviews/)

## Tags

 * [webhook](https://wordpress.org/support/topic-tag/webhook/)

 * 5 replies
 * 2 participants
 * Last reply from: [collectchat](https://wordpress.org/support/users/collectchat/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/add-api-fields-in-webhook/#post-15095191)
 * Status: not resolved