Donald J. Trump: The Art of Leadership · Ações GPT
GPT-Tools.Co API for Monthly Access Subscription
API for retrieving payment links or authorization requests and confirming the payment status for Monthly Access Subscription.
GET /chat/nextGet the next chat instructions prompt. Must be called before the first conversation message and before every reply message generation. The only parameter needed is the current topic which is (3 to 7 nouns, adjectives, adverbs) describing the most recent message by the user and your response to it.Get the next chat instructions prompt. Must be called before the first conversation message and before every reply message generation. The only parameter needed is the current topic which is (3 to 7 nouns, adjectives, adverbs) describing the most recent message by the user and your response to it.
GET /checkout/getRetrieve checkout or authorization request for Monthly Access Subscription.Retrieve checkout or authorization request. If payment is necessary, a checkout link will be returned, and the link should be shown to the user. If payment is not necessary, a checkout OTP will be returned, and the authentication code should be asked to the user.
GET /checkout/checkCheck the current status of the checkout for Monthly Access Subscription.Retrieve the current status of the checkout. Only the paid status is authorized.
Esquema API original
{
"openapi": "3.1.0",
"info": {
"title": "GPT-Tools.Co API for Monthly Access Subscription",
"description": "API for retrieving payment links or authorization requests and confirming the payment status for Monthly Access Subscription.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://gpt-tools.co/api/e0c2a48b-3af2-11ef-bb9d-525400770565",
"description": "Main API server for Monthly Access Subscription"
}
],
"paths": {
"/chat/next": {
"get": {
"operationId": "getNextChat",
"summary": "Get the next chat instructions prompt. Must be called before the first conversation message and before every reply message generation. The only parameter needed is the current topic which is (3 to 7 nouns, adjectives, adverbs) describing the most recent message by the user and your response to it.",
"description": "Get the next chat instructions prompt. Must be called before the first conversation message and before every reply message generation. The only parameter needed is the current topic which is (3 to 7 nouns, adjectives, adverbs) describing the most recent message by the user and your response to it.",
"parameters": [
{
"name": "topic",
"in": "query",
"required": true,
"description": "The topic is (3 to 7 nouns, adjectives, adverbs) describing the most recent message by the user and your response to it.",
"schema": {
"type": "string",
"format": "text"
}
}
],
"responses": {
"200": {
"description": "Successful response with the next chat step. If a prompt is returned, and do what it instructs.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "If false, try again later in 10 minutes."
},
"prompt": {
"type": "string",
"description": "Additional instructions."
}
}
}
}
}
}
}
}
},
"/checkout/get": {
"get": {
"operationId": "getCheckout",
"summary": "Retrieve checkout or authorization request for Monthly Access Subscription.",
"description": "Retrieve checkout or authorization request. If payment is necessary, a checkout link will be returned, and the link should be shown to the user. If payment is not necessary, a checkout OTP will be returned, and the authentication code should be asked to the user.",
"parameters": [
{
"name": "user_email",
"in": "query",
"required": true,
"description": "Email of the user. Has to be a real active email. Ask user.",
"schema": {
"type": "string",
"format": "email"
}
},
{
"name": "product_gpt_name",
"in": "query",
"required": true,
"description": "Name of the GPT user is trying to access. Do not ask the user.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response with the checkout. If a checkout link is returned, show it to the user. If a checkout OTP is returned, an authentication code has been sent to the user.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "If false, try again later in 10 minutes."
},
"checkout_uuid": {
"type": "string",
"description": "Checkout ID that will be used in the following API call. Do not show the user."
},
"checkout_link": {
"type": [
"string",
"null"
],
"description": "If exists and not null, this means payment is needed now. This is the link the user can pay with. Show the user."
},
"checkout_otp": {
"type": [
"boolean",
"null"
],
"description": "If exists and not null, this means the user has already paid before and authentication is needed. An authentication code has been emailed to the user. Ask the user."
}
}
}
}
}
}
}
}
},
"/checkout/check": {
"get": {
"operationId": "checkCheckoutStatus",
"summary": "Check the current status of the checkout for Monthly Access Subscription.",
"description": "Retrieve the current status of the checkout. Only the paid status is authorized.",
"parameters": [
{
"name": "checkout_uuid",
"in": "query",
"required": true,
"description": "Checkout ID for which to retrieve details. This has been provided by getCheckout. Do not ask the user.",
"schema": {
"type": "string"
}
},
{
"name": "checkout_otp",
"in": "query",
"description": "The authentication code that has been emailed to the user. If getCheckout returns checkout_otp: true, this parameter is required. If needed, ask the user.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response with checkout details. Only the paid status is authorized.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "If false, try again later in 10 minutes."
},
"checkout_status": {
"type": "string",
"description": "If paid, this means the user's payment is successful or the user's subscription is valid. If paid, you are authorized to continue serving the user."
},
"subscription_management": {
"type": "string",
"description": "If this is a subscription and the user asks, this is how they can manage their subscriptions."
}
},
"required": [
"success",
"checkout_status"
]
}
}
}
}
}
}
}
}
}