Vidgen
Vidgen · Acciones GPT
Queue Video API
A simple API to queue generation of AI videos and manage user signups with OTP verification.
POST /functions/v1/queue-videoQueue a video which will then be emailed to the user.POST /functions/v1/signupSign up a user and send OTP for verification.
Esquema original API
{
"openapi": "3.0.0",
"info": {
"title": "Queue Video API",
"description": "A simple API to queue generation of AI videos and manage user signups with OTP verification.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://uofotuvqqgymoqubehad.supabase.co",
"description": "server"
}
],
"paths": {
"/functions/v1/queue-video": {
"post": {
"operationId": "queueVideo",
"summary": "Queue a video which will then be emailed to the user.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"idea": {
"type": "string"
},
"style": {
"type": "string"
},
"email": {
"type": "string"
},
"otp": {
"type": "string"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Video is successfully queued",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/functions/v1/signup": {
"post": {
"operationId": "signup",
"summary": "Sign up a user and send OTP for verification.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"email": {
"type": "string"
}
}
}
}
}
},
"responses": {
"200": {
"description": "OTP sent successfully",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"400": {
"description": "Invalid request or email format"
},
"401": {
"description": "Unauthorized - Incorrect OTP"
},
"500": {
"description": "Internal server error"
}
}
}
}
}
}