API documentation
The u-social API publishes one post to Facebook and TikTok with a single request, immediately or at a chosen time. Each platform has its own publication status, so you know where the post appeared and where it was rejected.
The API accepts and returns JSON, uses standard HTTP status codes and Bearer tokens. Every response has the same envelope, described in Responses and errors.
https://api.usocials.comPlatforms
- Facebook posts, reels and stories on Pages
- TikTok videos and photo carousels
- Instagram, Threads, YouTube, LinkedIn: coming soon
Not a developer?
This site is documentation for developers. You can schedule posts without code in the u-social dashboard at app.usocials.com. The dashboard is in preparation.
How it works
- An account has a plan (Free, Premium, Business or Enterprise) that sets the number of projects and the limits. See Plans and limits.
- A project is one brand or client. Posts, connected platform accounts and limit counters belong to it.
- A post has text, media and a list of platforms. Each platform is a separate publication with its own status, so a post can go out on Facebook even if TikTok rejects it.
Conventions
- Request and response bodies are JSON (
Content-Type: application/json). The exception is creating a post, which takesmultipart/form-databecause it contains files. - Dates use ISO 8601 with a time zone. Responses return UTC times.
- Project, post and media identifiers are numbers. A publication's
taskIdis a UUID. - Enumerated values, such as platforms and statuses, are written in capital letters.
"scheduledAt": "2026-12-01T18:00:00+01:00"Quick start
- Sign in with POST /auth/login and save the
accessToken. Thecookies.txtfile keeps the refresh token for renewing the session. - Create a project with POST /projects.
- Send a post with POST /projects/{id}/posts. The API responds immediately with
202 Acceptedand publishing continues in the background. - Check the status with GET /projects/{id}/posts/{postId} until every platform has the status
PUBLISHEDorFAILED.
curl -X POST https://api.usocials.com/auth/login \
-H "Content-Type: application/json" \
-c cookies.txt \
-d '{"email": "john@company.com", "password": "your-password"}'{
"Response": {
"status": {
"code": "200",
"msg": "OK",
"total": "0",
"page": "0",
"pagesize": "0"
},
"data": {
"accessToken": "eyJhbGciOiJIUzI1NiJ9…",
"tokenType": "Bearer",
"expiresInSeconds": 900
}
}
}curl -X POST https://api.usocials.com/projects/12/posts \
-H "Authorization: Bearer $TOKEN" \
-F 'post={"description": "New menu from Monday",
"platforms": ["FACEBOOK", "TIKTOK"],
"facebook": {"pageId": "123456789012345", "format": "FEED"},
"tiktok": {"privacyLevel": "PUBLIC_TO_EVERYONE"}};type=application/json' \
-F "files=@menu.jpg"