Managing your Connector
Once your connector is deployed and registered, there are a couple of features that will help you to manage it.
Listing your Connectors
You can see all the connectors registered under your organization through the Cohere dashboard. Alternatively, you can make a GET request like the one below:
Authorizing an OAuth 2.0 Connector
If your connector is set up using OAuth 2.0, a user in your organization can authorize the connector through the dashboard by clicking on “connect your account”. Alternatively, you can make a request to the /oauth/authorize
endpoint in your application. This will provide a redirect URL that the user can follow to authorize the OAuth application.
Updating a Connector
You can enable and disable a connector through the dashboard. Additionally, you can update the connector name, URL, auth settings, and handle similar sorts of tasks through the API, as follows:
Debugging a Connector
To debug issues with a registered connector, you can follow the steps in this section.
Step 1: Make a streaming request to the connector using the Chat API and check the search results for the error. Here’s an example request:
The response in the search results array should contain the error message from the connector:
Step 2: In Cohere’s dashboard you can view and filter the logs from calling your connector. Change the response filter to “error” to see the error messages returned from your connector.