User Authentication
The user signs in and authorizes AI Marketing Brain through OAuth 2.0.
AI Marketing Brain integrates with supported social media platforms using official APIs and OAuth 2.0 authentication.
This documentation provides an overview of supported integrations, authentication methods and available platform capabilities.
AI Marketing Brain integrates only with official APIs provided by supported social media platforms. We do not use unofficial APIs, browser automation, credential scraping or password collection.
OAuth authentication, profile access and content publishing through the official TikTok Developer Platform.
Secure publishing, page management and analytics using Meta Graph API.
Business account publishing using the official Instagram Graph API.
Video publishing and channel management using Google's official APIs.
Company page publishing and professional content distribution.
Additional official APIs may be added as they become available.
Every user must explicitly authorize AI Marketing Brain before any action can be performed on their behalf.
AI Marketing Brain communicates securely with official platform APIs.
https://brainafricalabs.com/api/v1/
All requests are transmitted through HTTPS.
| Endpoint | Description | Authentication |
|---|---|---|
| /oauth/connect | Connect a social account | OAuth 2.0 |
| /posts/create | Create a publication draft | Required |
| /posts/publish | Publish approved content | Required |
| /media/upload | Upload images or videos | Required |
| /analytics | Retrieve campaign statistics | Required |
Retrieve information without modifying any resource.
Create content or submit publication requests.
Remove authorized resources when supported by the platform.
POST /posts/create
{
"platform":"facebook",
"caption":"Hello Africa!",
"media":"image.jpg"
}
HTTP/1.1 200 OK
{
"status":"success",
"post_id":"987654321",
"message":"Draft created successfully."
}
The user signs in and authorizes AI Marketing Brain through OAuth 2.0.
AI generates captions, images or campaign drafts.
Every publication is reviewed and approved by the user.
Content is published using the official platform API.
AI Marketing Brain respects the rate limits imposed by each official API provider.
The request could not be processed because one or more required parameters are missing or invalid.
Authentication is required or the OAuth access token has expired or is invalid.
The authenticated account does not have permission to perform the requested action.
The requested resource or endpoint does not exist.
API rate limits have been exceeded. Retry after the recommended waiting period.
An unexpected server error occurred. Please try again later or contact support.
| Status | Description |
|---|---|
| 200 OK | Request completed successfully. |
| 201 Created | A new resource has been created. |
| 204 No Content | Request completed successfully without a response body. |
| 400 Bad Request | Invalid request parameters. |
| 401 Unauthorized | Authentication required. |
| 403 Forbidden | Permission denied. |
| 404 Not Found | Requested resource not found. |
| 429 Too Many Requests | Rate limit exceeded. |
| 500 Internal Server Error | Unexpected server error. |
Yes. We integrate exclusively with official APIs provided by supported platforms.
No. Authentication is handled exclusively through OAuth 2.0 authorization.
Yes. Users can revoke authorization directly from the connected platform or from AI Marketing Brain.
Yes. All API communication uses HTTPS with TLS encryption.
Yes. AI Marketing Brain automatically respects platform quotas and rate limits.
Enhanced publishing capabilities and expanded analytics.
Receive real-time notifications for publication events and account changes.
Manage API credentials, monitor usage and review activity logs.
Official SDKs for JavaScript, Python and PHP to simplify API integration.
Dedicated testing environment for developers before production deployment.
Future support for new official social media APIs as they become available.
Explore our security documentation, OAuth implementation and platform features to understand how Brain Africa Labs builds secure AI-powered marketing solutions using official APIs.