# How to create a webhook url

<figure><img src="https://2592634121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT5HLPrqZhkeNGgJP37dC%2Fuploads%2FCNaWVl74nv5iSgqGgUUN%2FScreen%20Shot%202022-09-16%20at%2013.57.10.png?alt=media&#x26;token=3c1529f9-faf9-4183-80bc-a5fd7fc5c5b2" alt=""><figcaption></figcaption></figure>

```javascript
import logo from './logo.svg';
import './App.css';
import './configs/firebase';
import axios from 'axios';
import { useLocation, useSearchParams } from "react-router-dom";
import React, { useState, useEffect } from "react";

function App() {
  const [status, setStatus] = useState("");

  const queryParams = new URLSearchParams(window.location.search)
  const queryString = queryParams.get("external_id");

  var config = {
    method: 'get',
    url: `https://us-central1-appgregator.cloudfunctions.net/flipSandbox/disbursement/${queryString}?name=ft-4&connection_name=flip-entre-1`,
    headers: { 
      'x-api-key': 'U2Fsd...'
    }
  };  

  axios(config)
  .then(function (results) {
    //update your database
    setStatus(results.data.status);
    console.log(JSON.stringify(results.data));
  })
  .catch(function (error) {
    console.log(error.response.data.errors,'errors');
  });
  
  

  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
        <p>
          
        </p>
        <a
          className="App-link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        >
          PAYMENT {status}
        </a>
      </header>
    </div>
  );
}

export default App;

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://edrus.gitbook.io/appgregator-api-docs/appgregators/finance/flip-indonesia/sandbox/callback/how-to-create-a-webhook-url.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
