GEO
TR EN

What Is a Webhook?

Content Integration with Webhooks: Discover the Power of Pushnom

Automatically transfer the high-quality content you produce with Pushnom's AI-powered content creation feature to your own platform. Here is a step-by-step guide on how you can integrate using webhooks:

How Does It Work?

image

Content Creation

Pushnom creates original, SEO-friendly content based on the criteria you define.

image

Data Transfer

The generated content is sent to your system in JSON format via your webhook URL.

image

Automatic Publishing

Your system receives this data and automatically publishes the content on your website.

API Endpoint

API Endpoint and Request Body

A request is sent to https://your-api-endpoint.com/webhook using the POST method.

Request Body
1 2 3 4 5 6 7 8
                        {
                          "title": "İçerik Başlığı",
                          "content": "HTML formatında içerik",
                          "meta_description": "SEO meta açıklaması",
                          "keywords": ["anahtar", "kelimeler"],
                          "language": "tr",
                          "created_at": "2024-03-21T10:00:00Z"
                        }
                      
Expected Response
1 2 3 4 5
                      {
                        "status": "success",
                        "content_url": "https://your-site.com/post-url",
                        "message": "İçerik başarıyla oluşturuldu"
                      }
                    

Webhook Test Tool

Validate Your Integration with the Webhook Test Tool!

Using a Webhook Test Tool is extremely important to make sure your webhook integration works properly. These tools let you enter your webhook URL and check whether your system processes incoming requests correctly.

Error Detection: Helps you quickly detect and resolve errors that may occur in your integration.

Validation: Checks whether the webhook sends the correct data in the correct format.

Automation: Saves you time by automating your testing processes.

Security Tips

Security Measures for Content Integration with Webhooks

Keep Your URL Private

Only share this URL with sources you trust.

Validate Requests

Verify the source of each request using a secret key that accompanies it.

Rate Limiting

Set request limits to prevent overload.

HTTPS

Conduct all communication over the HTTPS protocol.

Example Implementations

Node.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
                          const express = require('express');
                          const app = express();

                          app.post('/webhook', express.json(), (req, res) => {
                              const { title, content, meta_description } = req.body;

                              // İçeriği veritabanınıza veya CMS'nize kaydedin
                              // Örneğin, WordPress'e bir gönderi oluşturmak için WP-API kullanabilirsiniz.

                              res.json({
                                  status: 'success',
                                  content_url: 'https://your-site.com/new-post',
                                  message: 'İçerik başarıyla oluşturuldu'
                              });
                          });
                        
Node.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
                          <?php
                            $data = json_decode(file_get_contents('php://input'), true);

                            $title = $data['title'];
                            $content = $data['content'];
                            $meta_description = $data['meta_description'];

                            // İçeriği sisteminize kaydedin

                            header('Content-Type: application/json');
                            echo json_encode([
                                'status' => 'success',
                                'content_url' => 'https://your-site.com/new-post',
                                'message' => 'İçerik başarıyla oluşturuldu'
                            ]);