u-social

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.

Base URL
https://api.usocials.com
Platforms
  • 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 takes multipart/form-data because 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 taskId is a UUID.
  • Enumerated values, such as platforms and statuses, are written in capital letters.
Scheduled publication date
"scheduledAt": "2026-12-01T18:00:00+01:00"

Quick start

  1. Sign in with POST /auth/login and save the accessToken. The cookies.txt file keeps the refresh token for renewing the session.
  2. Create a project with POST /projects.
  3. Send a post with POST /projects/{id}/posts. The API responds immediately with 202 Accepted and publishing continues in the background.
  4. Check the status with GET /projects/{id}/posts/{postId} until every platform has the status PUBLISHED or FAILED.
POST/auth/login
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 200
{
  "Response": {
    "status": {
      "code": "200",
      "msg": "OK",
      "total": "0",
      "page": "0",
      "pagesize": "0"
    },
    "data": {
      "accessToken": "eyJhbGciOiJIUzI1NiJ9…",
      "tokenType": "Bearer",
      "expiresInSeconds": 900
    }
  }
}
POST/projects/12/posts
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"