integrate_ai_sdk.api

def decode_jwt_token(token, secret=None, verify_signature=False):
def connect(token: str, aws_credentials=None) -> integrate_ai_sdk.api.client.Client:

Uses IAI token to create a Client for interacting with the integrate.ai API. This will use the token to get customer and environment and then instantiate client

Arguments:
  • token: The IAI token, created in the UI
  • aws_credentials (Dict): A dictionary that has AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SECURITY_TOKEN as keys This is to connect to a boto3 session to load model. The default aws_credentials is None which allows client to use the default aws profile
Returns:

A Client object that can be used to interact with the integrate.ai REST API.