Authentication
All requests to the Connect AI Embed API must be properly authenticated using JSON Web Tokens (JWT). See Authentication for details.Response Format
Operations in the Connect AI API share a common response format which, depending on the operation, may include:- One or more result sets with:
- Result column metadata
- Row values, if any
- Affected row count
- Output and return parameters (for applicable stored procedure executions)
- Any error that may have occurred prior to, during, or after request processing
Properties
Errors
When Connect AI Embed receives an API request, it validates it, executes it, and then serializes and streams back the results as they arrive. If an error occurs prior to or during execution, the response object only contains error information. However, it is also possible for errors to occur after a query’s results have started being returned. In such cases, the response object may contain both a partial result as well as error information stating that the result is incomplete. Since the HTTP status code is returned before the body, incomplete responses have a200 OK status. As such, it’s important that you always check for the presence of error information in the response rather than relying solely on the HTTP status code.