Skip to main content

Overview

Cuey supports full URLs for webhook endpoints. When creating events or cron jobs, you must provide a valid HTTP or HTTPS URL.

Full URLs

Full URLs include the complete URL with protocol, domain, and path:

URL Requirements

  • Must start with http:// or https://
  • Must be a valid URL format
  • Domain must be resolvable (for webhook delivery)

Example URLs

When to Use Different URL Patterns

Production APIs

Use your production API domain:

Staging/Development APIs

Use staging or development domains:

External Webhooks

For external services or webhook testing tools:

URL Validation

Cuey validates webhook URLs when creating events or cron jobs. Invalid URLs will be rejected with a validation error.

Valid URL Examples

  • https://api.example.com/webhook
  • http://localhost:3000/webhook
  • https://webhook.site/abc123

Invalid URL Examples

  • api.example.com/webhook (missing protocol)
  • example.com/webhook (missing protocol)
  • invalid-url (not a valid URL format)

Best Practices

Use HTTPS in Production

Always use HTTPS URLs in production environments:
  • https://api.example.com/webhook
  • http://api.example.com/webhook (not secure)

Store URLs in Configuration

Store webhook URLs in environment variables or configuration files rather than hardcoding them:

Validate URLs Before Creating Events

Validate URLs in your application before sending them to Cuey to catch errors early.

Building Blocks

Understand events and crons.

TypeScript SDK

Get started with the TypeScript SDK.

REST API

Explore the REST API documentation.