# Creating Endpoints

To create a new endpoint, navigate to Management > Endpoints and click the + icon.

# Configuration Options

  • Endpoint Path: Defines the URL (e.g., hello-world). You can use slashes for hierarchy.
  • Mode:
    • Sync: For fast, short-lived requests.
    • Pooling: For long-running tasks. Returns 202 Accepted while processing.
  • Authorization:
    • Unrestricted: Accessible via external URL.
    • Restricted: Requires a valid user or endpoint token.
  • Read Only: Optimizes performance for endpoints that don't modify data.

# Sample Code

// A simple sync endpoint
return $"Hello! The current time is {DateTimeOffset.UtcNow:u}";
// Handling JSON input
var request = Body.FromJson<MyRequest>();
return new MyResponse { Result = request.Value * 2 };