Introduction to Custom Endpoints
Custom endpoints allow you to extend the functionality of your workspace by writing hosted C# functions that handle incoming HTTP requests.
In this section:
- Creating Endpoints: Defining paths, authorization, and execution modes.
- Endpoint Tokens: Managing authorization for external calls.
- Calling Endpoints: How to invoke your code from external apps or the front-end.
- Execution Scopes: Built-in objects and methods available in your code.
- Importing Endpoint Code: Sharing helpers across endpoints and AI tools with
//ImportEndpoint. - Auto-generated Helpers: Using strongly typed helpers to access node types and fields.
- Searching from Endpoints: Running indexed search with
CreateSearchAsUserAsyncandCreateSearchAndFacetsAsUserAsync. - Similarity & Vector Search: Vector indexes,
Similar(),StartAtSimilarTextAsync(), and the multi-signal similarity engine. - Security Best Practices: Protecting your data and endpoints.
- Graph Query Language: The full IQuery interface reference for endpoints, shell, and data connectors.
- Debugging: Tips for testing and troubleshooting endpoint logic.