Honey Bee AI Herbalist
Honey Bee AI Herbalist · 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 emailLogs 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 sendGets the number of messages that the user can send (references.content)
GET /api/openai/available_plansGet's all the available plansGets the plans that are available to the user
元の API スキーマ
{
"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"
}
}
}
}