API Documentation
Complete REST API reference for integrating Blizzity into your applications
Authentication
All API requests require authentication using an API key. Include your API key in the Authorization header:
Authorization: YOUR_API_KEYAccount Management
/api/account/dataGet account information by username/password or API key
Parameters:
- •
username (optional) - •
password (optional) - •
Authorization header (optional)
Response:
{
"id": "user_id",
"username": "string",
"usages": "number",
"credits": "number",
"api_key": "string"
}/api/account/createCreate a new user account
Parameters:
- •
username - •
password
Response:
{
"id": "user_id",
"username": "string",
"api_key": "string"
}/api/account/settings/setUpdate user settings (requires API key)
Parameters:
- •
key - •
value
Response:
{
"message": "Setting updated successfully"
}/api/account/settings/getGet user setting value (requires API key)
Parameters:
- •
key
Response:
{
"value": "setting_value"
}Project Management
/api/project/createCreate a new project workflow
Parameters:
- •
name - •
description - •
data - •
visibility - •
node_data - •
connection_data - •
manual_data
Response:
{
"project_id": "string",
"title": "string",
"visibility": "private"
}/api/project/updateUpdate an existing project
Parameters:
- •
project_id - •
name - •
description - •
data - •
visibility - •
node_data - •
connection_data - •
manual_data
Response:
{
"message": "Project updated successfully"
}/api/project/getGet project details by ID
Parameters:
- •
project_id
Response:
{
"project_id": "string",
"name": "string",
"description": "string",
"node_data": "array"
}/api/project/deleteDelete a project
Parameters:
- •
project_id
Response:
{
"message": "Project deleted successfully"
}/api/project/list/mineList user's projects with pagination
Parameters:
- •
page - •
limit
Response:
{
"projects": "array",
"total": "number",
"pages": "number"
}/api/project/list/trendingList trending public projects
Parameters:
- •
page - •
limit
Response:
{
"projects": "array",
"total": "number",
"pages": "number"
}/api/project/interactLike or save a project
Parameters:
- •
project_id - •
interaction_type (like/save)
Response:
{
"project_id": "string",
"interaction_type": "string",
"is_active": "boolean"
}/api/project/nodesGet available node templates
Parameters:
Response:
{
"nodes": "array"
}Project Runs
/api/project/runs/runExecute a project workflow (SSE stream)
Parameters:
- •
project_id - •
seed - •
variables
Response:
Server-Sent Events stream with progress updates/api/project/runs/estimateEstimate credits cost for running a project
Parameters:
- •
project_id - •
seed
Response:
{
"estimated_cost": "number",
"project": "object"
}/api/project/runs/listList project run history
Parameters:
- •
project_id - •
page - •
limit
Response:
{
"runs": "array",
"total": "number",
"pages": "number"
}File Management
/api/file/getGet file data by ID (returns base64 encoded file)
Parameters:
- •
file
Response:
{
"file_id": "string",
"raw": "base64_string",
"tag": "object",
"data": "object"
}/api/file/listList user's files with pagination
Parameters:
- •
page - •
limit
Response:
{
"files": "array"
}Social Media Integration
/api/social/urlGet OAuth authorization URL for social platform
Parameters:
- •
space (youtube/tiktok/snapchat)
Response:
{
"url": "authorization_url"
}/api/social/verifyVerify OAuth code and link social account
Parameters:
- •
space - •
code
Response:
{
"user": "object",
"message": "Account successfully linked"
}/api/social/accountGet linked social media accounts
Parameters:
- •
space
Response:
{
"users": "array"
}/api/social/selectSelect active social account for uploads
Parameters:
- •
space - •
id
Response:
{
"user": "object",
"message": "Account selected successfully"
}/api/social/uploadUpload video to selected social platform
Parameters:
- •
space - •
video - •
title - •
description - •
privacy_level
Response:
{
"message": "Upload initiated"
}PayPal Integration
/api/paypal/createCreate PayPal payment for credits
Parameters:
- •
amount - •
currency - •
credits
Response:
{
"approval_url": "paypal_redirect_url"
}/api/paypal/executeExecute completed PayPal payment
Parameters:
- •
paymentId - •
payerId
Response:
{
"message": "Payment successful",
"credits_awarded": "number"
}