NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Glossary

Webhook: when the server calls you

A webhook is an HTTP request that a service sends to a URL you registered, the moment an event happens, so your system learns about it without asking repeatedly.

Push instead of pull

There are two ways to learn that something changed on another system. You can ask at intervals (polling), or the other system can tell you (push). A webhook is the most common form of push on the web: you give the service a URL, and when an order ships, a payment clears or a build finishes, it sends a POST with a JSON description of the event to that URL.

What a webhook receiver needs

  • A public HTTPS endpoint the sender can reach. Machines behind NAT or a firewall need a tunnel or a hosted relay.
  • Signature verification: senders usually sign the payload with a shared secret (often HMAC SHA-256 in a header). Verify it, or anyone could post fake events to your URL.
  • Fast acknowledgment: return 2xx quickly and do slow work in the background, or the sender may time out and retry.
  • Deduplication: senders retry on failure, so the same event can arrive more than once. Store event IDs and ignore repeats (see idempotency).
  • Ordering tolerance: events may arrive out of order.

Polling, by comparison

Polling needs none of that. Your code calls the service, gets the current state and decides what to do next. It works from a laptop, a container or a serverless function with no inbound access, and failures are easy to reason about because your side drives every step. The cost is extra requests and up to one interval of added delay.

Webhook (push)Polling (pull)
LatencyImmediateUp to one interval
RequestsOne per eventSeveral per job
Your side needsPublic endpoint, signature checks, dedupA loop with a sleep
Works behind NATNot without a relayYes
Best forRare events, long or unpredictable jobsShort jobs, simple setups

How GateSolver delivers results

GateSolver uses polling only. There is no callback URL or webhook option: you create a task, then call getTaskResult until the status is ready or failed. For jobs that usually finish within seconds (a Cloudflare Turnstile token typically under 3 seconds), the added delay of a 3 second interval is small, and polling keeps your integration free of inbound endpoints. Image tasks finish faster, so poll them every second. See asynchronous API and task polling for patterns.

Bridging to event driven systems

If the rest of your stack is event driven, wrap polling in a small worker that emits an event when a task completes: publish to a queue, call your own internal webhook, or resolve a promise. Workflow tools work the same way; in n8n or similar tools, a loop with a wait node polls the result and the next node fires once it is ready (see the Make and Zapier guide). The rest of your system then sees push style events without GateSolver needing to call anything.

Common questions

What is the difference between a webhook and an API call?

With an API call you ask the service; with a webhook the service calls your URL when an event happens.

Does GateSolver send webhooks or callbacks?

No. Results are delivered by polling getTaskResult; there is no callback URL option.

Why verify webhook signatures?

Without verification anyone who learns your URL could send fake events that your system would trust.

Can a webhook arrive twice?

Yes. Senders retry when they see failures, so store event IDs and ignore duplicates.

How can I get push style events from a polled API?

Run a small worker that polls and then publishes an event or calls your own internal endpoint when a result is ready.

Keep reading