SMPAPI Reference

Complete API documentation for integrating with SMP. Build powerful social media management applications with our RESTful API.

RESTful API Overview

SMP provides a comprehensive REST API that allows you to integrate social media management capabilities into your applications.

OAuth 2.0 & JWT Authentication
JSON Request/Response Format
Rate Limiting & Pagination
Webhook Support

Base URL

https://smp.teckvini.com/backend/api/v1/

Authentication

Authentication

JWT Bearer TokenRequired
Token RefreshSupported
OAuth2 IntegrationAvailable

Rate Limiting

Requests per minute100
Daily limit10,000
Burst limit50

Response Format

Content-Typeapplication/json
EncodingUTF-8
Date formatISO 8601

Error Handling

HTTP Status CodesStandard
Error MessagesDetailed
ValidationComprehensive

Security

HTTPS OnlyEnforced
CORSConfigured
Input ValidationStrict

Monitoring

Request LoggingEnabled
Performance MetricsAvailable
Health ChecksActive

API Endpoints

Explore all available endpoints organized by functionality.

Authentication

Learn how to authenticate with SMP using JWT tokens

POST/api/v1/auth/login/
User login
POST/api/v1/auth/register/
User registration
POST/api/v1/auth/refresh/
Token refresh
POST/api/v1/auth/logout/
User logout

Social Media Management

Manage social media accounts, posts, and scheduling

GET/api/v1/social/accounts/
List social media accounts
POST/api/v1/social/oauth/initiate/
Start OAuth flow
POST/api/v1/social/oauth/callback/
OAuth callback
GET/api/v1/social/posts/
List post templates
POST/api/v1/social/posts/create/
Create post
POST/api/v1/social/posts/bulk/
Bulk post

AI Integration

Generate content, hashtags, and optimize posts with AI

POST/api/v1/social/ai/generate/
Generate AI content
POST/api/v1/social/ai/hashtags/
Generate hashtags
POST/api/v1/social/ai/optimize/
Optimize content
GET/api/v1/social/ai/trends/
Get trending topics
GET/api/v1/social/ai/posting-time/
Get best posting times

File Management

Upload, manage, and share media files

GET/api/v1/files/
List files
POST/api/v1/files/upload/
Upload file
POST/api/v1/files/share/
Share file
DELETE/api/v1/files/{id}/
Delete file

Analytics

Get social media performance metrics and insights

GET/api/v1/social/analytics/analytics/
Get analytics
GET/api/v1/social/analytics/performance/
Post performance
GET/api/v1/social/analytics/growth/
Growth metrics
POST/api/v1/social/analytics/report/
Generate a report

User Management

Manage user profiles and account settings

GET/api/v1/users/profile/
Get user profile
PUT/api/v1/users/profile/
Update profile
GET/api/v1/users/notifications/
Get notifications
POST/api/v1/users/notifications/mark-read/
Mark notifications read

Code Examples

Get started quickly with these code examples in popular programming languages.

JavaScript/Node.js

const response = await fetch(
"https://smp.teckvini.com/backend/api/v1/social/posts/create", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
content: "Hello World!",
platforms: ["twitter", "facebook"]
})
});

Python

import requests
url = "https://smp.teckvini.com/backend/api/v1/social/posts/create"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
}
data = {
"content": "Hello World!",
"platforms": ["twitter", "facebook"]
}
response = requests.post(url, json=data, headers=headers)