Stripe Docs Assistant
Stripe Docs Assistant · GPT-Aktionen
My AskAI Query API
API for sending a users question and receiving an answer as well as additional information that can be used to answer a users question
POST /gpts/querySend a questionSend a question and receive an answer and supporting information (references.content)
Ursprüngliches API-Schema
{
"openapi": "3.0.0",
"info": {
"title": "My AskAI Query API",
"version": "1.0.0",
"description": "API for sending a users question and receiving an answer as well as additional information that can be used to answer a users question"
},
"servers": [
{
"url": "https://ask.myaskai.com"
}
],
"paths": {
"/gpts/query": {
"post": {
"summary": "Send a question",
"operationId": "query",
"x-openai-isConsequential": false,
"description": "Send a question and receive an answer and supporting information (references.content)",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The user's question."
}
},
"required": [
"query"
]
}
}
}
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"answer": {
"type": "string"
},
"references": {
"type": "array",
"items": {
"type": "object",
"properties": {
"content": {
"type": "string"
},
"link": {
"type": "string"
},
"score": {
"type": "number"
},
"time_stamp": {
"type": "string"
},
"title": {
"type": "string"
}
}
}
}
}
}
}
}
},
"400": {
"description": "Bad request"
},
"500": {
"description": "Internal Server Error"
}
}
}
}
},
"components": {
"schemas": {},
"securitySchemes": {
"BearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT",
"description": "JWT to authorize requests"
}
}
}
}