u-social

Projects

A project is one brand or client. Posts, connected platform accounts and limit counters belong to it. You only see the projects of your own account.

Create a project

POST/projectsRequires a token

Request body

namestringrequired
Name, up to 100 characters, unique in the account regardless of letter case.
descriptionstring | null
Description, up to 500 characters.

Possible errors

400name: must not be blank
The name is missing or a field is too long.
401(empty body)
The Authorization header is missing, or the token has expired or is invalid. Refresh the session with POST /auth/refresh.
403Limit reached: plan FREE allows 1 projects
You already have as many projects as your plan allows.
409A project with this name already exists
You already have a project with this name.
POST/projects
curl -X POST https://api.usocials.com/projects \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"Linden Tree Café","description":"Café in the old town"}'
Response 201
{
  "Response": {
    "status": {
      "code": "201",
      "msg": "Created",
      "total": "0",
      "page": "0",
      "pagesize": "0"
    },
    "data": {
      "id": 12,
      "name": "Linden Tree Café",
      "description": "Café in the old town",
      "createdAt": "2026-11-20T10:00:00Z",
      "updatedAt": "2026-11-20T10:00:00Z"
    }
  }
}

List projects

GET/projectsRequires a token

Returns all projects of the account. The list is not paginated because the plan limits the number of projects.

Possible errors

401(empty body)
The Authorization header is missing, or the token has expired or is invalid. Refresh the session with POST /auth/refresh.
GET/projects
curl https://api.usocials.com/projects \
  -H "Authorization: Bearer $TOKEN"
Response 200
{
  "Response": {
    "status": {
      "code": "200",
      "msg": "OK",
      "total": "0",
      "page": "0",
      "pagesize": "0"
    },
    "data": [
      {
        "id": 12,
        "name": "Linden Tree Café",
        "description": "Café in the old town",
        "createdAt": "2026-11-20T10:00:00Z",
        "updatedAt": "2026-11-20T10:00:00Z"
      }
    ]
  }
}

Get a project

GET/projects/{projectId}Requires a token

Response fields

idnumber
Project identifier.
namestring
Name.
descriptionstring | null
Description.
createdAtstring
Creation date (ISO 8601, UTC).
updatedAtstring
Date of the last change (ISO 8601, UTC).

Possible errors

401(empty body)
The Authorization header is missing, or the token has expired or is invalid. Refresh the session with POST /auth/refresh.
404Project not found
The project does not exist or belongs to another account.
GET/projects/{projectId}
curl https://api.usocials.com/projects/12 \
  -H "Authorization: Bearer $TOKEN"
Response 200
{
  "Response": {
    "status": {
      "code": "200",
      "msg": "OK",
      "total": "0",
      "page": "0",
      "pagesize": "0"
    },
    "data": {
      "id": 12,
      "name": "Linden Tree Café",
      "description": "Café in the old town",
      "createdAt": "2026-11-20T10:00:00Z",
      "updatedAt": "2026-11-20T10:00:00Z"
    }
  }
}

Update a project

PUT/projects/{projectId}Requires a token

Replaces the name and description. Send both fields. Leaving out description removes the description.

Request body

namestringrequired
Name, up to 100 characters, unique in the account regardless of letter case.
descriptionstring | null
Description, up to 500 characters.

Possible errors

401(empty body)
The Authorization header is missing, or the token has expired or is invalid. Refresh the session with POST /auth/refresh.
404Project not found
The project does not exist or belongs to another account.
409A project with this name already exists
You already have a project with this name.
PUT/projects/{projectId}
curl -X PUT https://api.usocials.com/projects/12 \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"Linden Tree Café","description":"Café in the old town"}'
Response 200
{
  "Response": {
    "status": {
      "code": "200",
      "msg": "OK",
      "total": "0",
      "page": "0",
      "pagesize": "0"
    },
    "data": {
      "id": 12,
      "name": "Linden Tree Café",
      "description": "Café in the old town",
      "createdAt": "2026-11-20T10:00:00Z",
      "updatedAt": "2026-11-23T09:15:00Z"
    }
  }
}

Project usage

GET/projects/{projectId}/usageRequires a token

Returns the project's limits from the plan and their current usage.

Response fields (for each limit)

quotaenum
MONTHLY_PUBLICATIONS: publications this month. STORAGE_BYTES: media storage in bytes.
limitnumber | null
Limit from the plan. null means unlimited.
usednumber
Usage in the current period.
periodstring
YYYY-MM (UTC) for monthly limits, LIFETIME for the others.

Possible errors

401(empty body)
The Authorization header is missing, or the token has expired or is invalid. Refresh the session with POST /auth/refresh.
404Project not found
The project does not exist or belongs to another account.
GET/projects/{projectId}/usage
curl https://api.usocials.com/projects/12/usage \
  -H "Authorization: Bearer $TOKEN"
Response 200
{
  "Response": {
    "status": {
      "code": "200",
      "msg": "OK",
      "total": "0",
      "page": "0",
      "pagesize": "0"
    },
    "data": [
      {
        "quota": "MONTHLY_PUBLICATIONS",
        "limit": 30,
        "used": 26,
        "period": "2026-11"
      },
      {
        "quota": "STORAGE_BYTES",
        "limit": 524288000,
        "used": 0,
        "period": "LIFETIME"
      }
    ]
  }
}