Complete API reference with sample code and examples
The VBOT API allows you to manage content generation, agent orchestration, and workflow automation. All API endpoints are RESTful and return JSON responses.
https://vbot.vercel.app
VBOT supports multiple authentication methods:
/api/register
Register a new user account
Name | Type | Required | Description |
---|---|---|---|
name | string | Yes | User full name |
string | Yes | User email address | |
password | string | Yes | User password |
{
"name": "John Doe",
"email": "john@example.com",
"password": "securepassword123"
}
{
"message": "User registered successfully"
}
curl -X POST https://vbot.vercel.app/api/register \
-H "Content-Type: application/json" \
-d '{
"name": "John Doe",
"email": "john@example.com",
"password": "securepassword123"
}'
/api/user
Get current user information
{
"id": "user_123",
"name": "John Doe",
"email": "john@example.com",
"provider": "credentials",
"isAdmin": false,
"createdAt": "2024-01-15T10:30:00Z"
}
curl -X GET https://vbot.vercel.app/api/user \
-H "Cookie: next-auth.session-token=your_session_token"
/api/assets/new
Create a new asset
Name | Type | Required | Description |
---|---|---|---|
name | string | Yes | Asset name |
url | string | Yes | Asset URL |
description | string | Yes | Asset description |
{
"name": "My Website",
"url": "https://example.com",
"description": "A sample website for content generation"
}
{
"id": "asset_123",
"name": "My Website",
"url": "https://example.com",
"description": "A sample website for content generation",
"userId": "user_123",
"createdAt": "2024-01-15T10:30:00Z"
}
curl -X POST https://vbot.vercel.app/api/assets/new \
-H "Content-Type: application/json" \
-H "Cookie: next-auth.session-token=your_session_token" \
-d '{
"name": "My Website",
"url": "https://example.com",
"description": "A sample website for content generation"
}'
/api/assets/existing
Get all assets for current user
[
{
"id": "asset_123",
"name": "My Website",
"url": "https://example.com",
"description": "A sample website for content generation",
"createdAt": "2024-01-15T10:30:00Z"
}
]
curl -X GET https://vbot.vercel.app/api/assets/existing \
-H "Cookie: next-auth.session-token=your_session_token"
/api/jobs/single-blog
Create a single blog post job
Name | Type | Required | Description |
---|---|---|---|
assetId | string | Yes | Asset ID |
theme | string | Yes | Blog theme |
{
"assetId": "asset_123",
"theme": "The Future of AI in Business"
}
{
"success": true,
"jobId": "job_123",
"message": "Blog job created successfully"
}
curl -X POST https://vbot.vercel.app/api/jobs/single-blog \
-H "Content-Type: application/json" \
-H "Cookie: next-auth.session-token=your_session_token" \
-d '{
"assetId": "asset_123",
"theme": "The Future of AI in Business"
}'
/api/jobs/single-tweet
Create a single tweet job
Name | Type | Required | Description |
---|---|---|---|
assetId | string | Yes | Asset ID |
theme | string | Yes | Tweet theme |
{
"assetId": "asset_123",
"theme": "AI Innovation"
}
{
"success": true,
"jobId": "job_456",
"message": "Tweet job created successfully"
}
curl -X POST https://vbot.vercel.app/api/jobs/single-tweet \
-H "Content-Type: application/json" \
-H "Cookie: next-auth.session-token=your_session_token" \
-d '{
"assetId": "asset_123",
"theme": "AI Innovation"
}'
/api/vnoc/v1/account/register
Register user via VNOC API
Name | Type | Required | Description |
---|---|---|---|
vnocAPIKey | string | Yes | VNOC API Key |
name | string | Yes | User name |
string | Yes | User email | |
password | string | Yes | User password |
{
"vnocAPIKey": "your_vnoc_api_key",
"name": "John Doe",
"email": "john@example.com",
"password": "securepassword123"
}
{
"message": "User registered successfully. Please remember to save the user credentials."
}
curl -X POST https://vbot.vercel.app/api/vnoc/v1/account/register \
-H "Content-Type: application/json" \
-d '{
"vnocAPIKey": "your_vnoc_api_key",
"name": "John Doe",
"email": "john@example.com",
"password": "securepassword123"
}'
/api/vnoc/v1/account/view
Get user account information via VNOC API
Name | Type | Required | Description |
---|---|---|---|
vnocAPIKey | string | Yes | VNOC API Key |
userEmail | string | Yes | User email |
userPassword | string | Yes | User password |
{
"vnocAPIKey": "your_vnoc_api_key",
"userEmail": "john@example.com",
"userPassword": "securepassword123"
}
{
"success": true,
"user": {
"id": "user_123",
"name": "John Doe",
"email": "john@example.com",
"isAdmin": false,
"createdAt": "2024-01-15T10:30:00Z"
}
}
curl -X POST https://vbot.vercel.app/api/vnoc/v1/account/view \
-H "Content-Type: application/json" \
-d '{
"vnocAPIKey": "your_vnoc_api_key",
"userEmail": "john@example.com",
"userPassword": "securepassword123"
}'
/api/vnoc/v1/agents/list
List all available agents
Name | Type | Required | Description |
---|---|---|---|
vnocAPIKey | string | Yes | VNOC API Key |
category | string | No | Filter by category |
search | string | No | Search agents |
{
"success": true,
"agents": [
{
"id": "agent_123",
"name": "ContentAgent",
"version": "1.0.0",
"description": "AI-powered content creation and optimization",
"category": "Content",
"capabilities": [
"blog-writing",
"content-optimization"
],
"pricing": {
"free": true
},
"isActive": true
}
]
}
curl -X GET "https://vbot.vercel.app/api/vnoc/v1/agents/list?vnocAPIKey=your_vnoc_api_key&category=Content"
/api/vnoc/v1/agents/register
Register a new agent
Name | Type | Required | Description |
---|---|---|---|
adminAPIKey | string | Yes | Admin API Key |
name | string | Yes | Agent name |
version | string | Yes | Agent version |
description | string | Yes | Agent description |
category | string | Yes | Agent category |
capabilities | array | Yes | Agent capabilities |
apiEndpoint | string | Yes | Agent API endpoint |
authType | string | Yes | Authentication type |
{
"adminAPIKey": "your_admin_api_key",
"name": "MyCustomAgent",
"version": "1.0.0",
"description": "A custom AI agent",
"category": "Content",
"capabilities": [
"text-generation",
"summarization"
],
"apiEndpoint": "https://my-agent.com/api",
"authType": "apiKey",
"pricing": {
"free": true
}
}
{
"success": true,
"message": "Agent registered successfully",
"agent": {
"id": "agent_456",
"name": "MyCustomAgent",
"version": "1.0.0",
"isActive": true
}
}
curl -X POST https://vbot.vercel.app/api/vnoc/v1/agents/register \
-H "Content-Type: application/json" \
-d '{
"adminAPIKey": "your_admin_api_key",
"name": "MyCustomAgent",
"version": "1.0.0",
"description": "A custom AI agent",
"category": "Content",
"capabilities": ["text-generation", "summarization"],
"apiEndpoint": "https://my-agent.com/api",
"authType": "apiKey",
"pricing": {"free": true}
}'
/api/packages/create-package
Create a new content package
Name | Type | Required | Description |
---|---|---|---|
playbook | string | Yes | Package type (social-package-intro, blog-package) |
assetId | string | Yes | Asset ID |
vnocAPIKey | string | No | VNOC API Key (optional) |
{
"playbook": "blog-package",
"assetId": "asset_123",
"vnocAPIKey": "your_vnoc_api_key"
}
{
"success": true,
"packageId": "package_123",
"message": "Package created successfully"
}
curl -X POST https://vbot.vercel.app/api/packages/create-package \
-H "Content-Type: application/json" \
-H "Cookie: next-auth.session-token=your_session_token" \
-d '{
"playbook": "blog-package",
"assetId": "asset_123"
}'
/api/vnoc/v1/integrations/linkedin/post
Post content to LinkedIn
Name | Type | Required | Description |
---|---|---|---|
vnocAPIKey | string | Yes | VNOC API Key |
userEmail | string | Yes | User email |
userPassword | string | Yes | User password |
assetId | string | Yes | Asset ID |
content | object | Yes | LinkedIn post content |
{
"vnocAPIKey": "your_vnoc_api_key",
"userEmail": "john@example.com",
"userPassword": "securepassword123",
"assetId": "asset_123",
"content": {
"text": "Check out this amazing AI innovation! #AI #Innovation",
"visibility": "PUBLIC"
}
}
{
"success": true,
"message": "Successfully posted to LinkedIn",
"postId": "linkedin_post_123",
"jobId": "job_789"
}
curl -X POST https://vbot.vercel.app/api/vnoc/v1/integrations/linkedin/post \
-H "Content-Type: application/json" \
-d '{
"vnocAPIKey": "your_vnoc_api_key",
"userEmail": "john@example.com",
"userPassword": "securepassword123",
"assetId": "asset_123",
"content": {
"text": "Check out this amazing AI innovation! #AI #Innovation",
"visibility": "PUBLIC"
}
}'
API requests are rate limited to ensure fair usage and system stability.
Code | Description |
---|---|
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid or missing authentication |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Resource not found |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error - Server error |