POST
/
knowledge
/
connect
Python
from datagrid_ai import Datagrid

client = Datagrid(
    api_key="My API Key",
)
redirect_url_response = client.knowledge.connect(
    connection_id="connection_id",
)
print(redirect_url_response.redirect_url)
{
  "object": "redirect_url",
  "redirect_url": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
connection_id
string
required

The id of the connection to be used to create the knowledge.

Response

201 - application/json

Successfully created knowledge

The redirect_url object represents a redirect url for a connection.

object
enum<string>
required
Available options:
redirect_url
redirect_url
string
required

The redirect url for a connection.