CTI BOT

CTI BOT · Ações GPT

Agenthost GPT API

API for determining how many messages a user can send and upgrading to plans to get more access

  • POST /api/openai/log_in/Logs in the user by sending them a code to their email

    Logs the user into their account by first sending a code to their email which they will then call this endpoint with

  • POST /api/openai/user_message_limit/Gets the number of messages the user can send

    Gets the number of messages that the user can send (references.content)

  • GET /api/openai/available_plansGet's all the available plans

    Gets the plans that are available to the user

Esquema API original
{
  "openapi": "3.0.0",
  "info": {
    "title": "Agenthost GPT API",
    "version": "1.0.0",
    "description": "API for determining how many messages a user can send and upgrading to plans to get more access"
  },
  "servers": [
    {
      "url": "https://api.agenthost.ai"
    }
  ],
  "paths": {
    "/api/openai/log_in/": {
      "post": {
        "summary": "Logs in the user by sending them a code to their email",
        "operationId": "logIn",
        "x-openai-isConsequential": false,
        "description": "Logs the user into their account by first sending a code to their email which they will then call this endpoint with",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "The user's email"
                  },
                  "code": {
                    "type": "string",
                    "description": "Code sent to users email"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "int"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/openai/user_message_limit/": {
      "post": {
        "summary": "Gets the number of messages the user can send",
        "operationId": "getUserMessageLimit",
        "x-openai-isConsequential": false,
        "description": "Gets the number of messages that the user can send (references.content)",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "The user's email"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "limit": {
                      "type": "int"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/openai/available_plans": {
      "get": {
        "summary": "Get's all the available plans",
        "operationId": "GetAvailablePlans",
        "x-openai-isConsequential": false,
        "description": "Gets the plans that are available to the user",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "plans": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "str"
                          },
                          "price": {
                            "type": "int"
                          },
                          "interval": {
                            "type": "str"
                          },
                          "signup_link": {
                            "type": "str"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {},
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "JWT to authorize requests"
      }
    }
  }
}

Relevance AI Tools

  • POST /studios/1b8b01ba-d0d8-4a27-890f-26a195c508ab/trigger_llm_friendlyURL check

    Based on the users url, it checks for malicious activity.

Esquema API original
{
  "info": {
    "title": "Relevance AI Tools",
    "version": "latest"
  },
  "paths": {
    "/studios/1b8b01ba-d0d8-4a27-890f-26a195c508ab/trigger_llm_friendly": {
      "post": {
        "operationId": "Url_check",
        "summary": "URL check",
        "description": "Based on the users url, it checks for malicious activity.",
        "security": [
          {
            "AuthorizationHeader": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/1b8b01ba-d0d8-4a27-890f-26a195c508abRequestBodySchema"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    }
  },
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://api-d7b62b.stack.tryrelevance.com/latest"
    }
  ],
  "components": {
    "schemas": {
      "1b8b01ba-d0d8-4a27-890f-26a195c508abRequestBodySchema": {
        "properties": {
          "url": {
            "type": "string",
            "frontend_metadata": {
              "required": true
            },
            "order": 0,
            "title": "URL",
            "description": "URL to be checked"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "AuthorizationHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Authorization credentials. Header authorization should be in the form of: project:api_key"
      }
    }
  },
  "security": [
    {
      "AuthorizationHeader": [
        "Authorization"
      ]
    }
  ]
}