PromoGPTs
PromoGPTs · GPT-Aktionen
Authentication Status API
API for checking user authentication status.
GET /api/user_statusChecks if the user is authenticated.
Ursprüngliches API-Schema
{
"openapi": "3.0.0",
"info": {
"title": "Authentication Status API",
"description": "API for checking user authentication status.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://gpts-payments-t7ty.onrender.com"
}
],
"paths": {
"/api/user_status": {
"get": {
"summary": "Checks if the user is authenticated.",
"operationId": "getUserStatus",
"responses": {
"200": {
"description": "User is authenticated.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"example": "authorized"
},
"message": {
"type": "string",
"example": "User can access the chat"
}
}
}
}
}
},
"401": {
"description": "User is not logged in or the session is invalid.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"example": "unauthorized"
},
"message": {
"type": "string",
"example": "User not logged in"
}
}
}
}
}
},
"402": {
"description": "User needs to make a payment.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"example": "payment_required"
},
"message": {
"type": "string",
"example": "User needs to make a payment"
}
}
}
}
}
}
}
}
}
}
}