Last updated: November 26, 2026
API version v1 is available at https://api.socialecho.net. Official OpenAPI guide
This document is intended for developers, QA engineers, implementation teams, and automation engineers integrating with the SocialEcho external API.
It covers teams, accounts, authorization links, posts, reports, drive files, OSS uploads, Reddit communities, Pinterest boards, TikTok Shop products and music, comment and direct-message interactions, and cross-platform publishing through a Team API Key. Brand, AI generation, and document-management APIs are outside the scope of this version.
Authorization: Bearer se_xxx.GET /v1/team first to verify authentication and the team context.code for the specific business result.| Field | Value |
|---|---|
| Base URL | https://api.socialecho.net |
| Authentication | Bearer Token (Team API Key) |
| Required header | Authorization: Bearer se_your_team_api_key |
| Optional language header | X-Lang: zh_CN or en |
| Rate limit | The public guide gives 120 requests/minute per key as general guidance. See §3.4 for route-specific limits. |
Place all business parameters for GET endpoints in the query string. Do not send a request body with a GET request. Use bracketed keys for arrays, for example account_ids[]=1&account_ids[]=2.
CloudFront may return an HTML 403 Bad request response when a GET request contains a body.
200-299 and JSON code = 0. All successful endpoints documented here currently return HTTP 200.400-599 and a non-zero business code. Business failures are not returned as HTTP 200.code, error.type, and data for detailed handling.2xx responses, still attempt to parse the JSON body and record request_id.Success:
{
"code": 0,
"message": "Success",
"data": {},
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
Failure:
{
"code": 42200,
"message": "Request validation failed",
"data": {
"account_id": ["Please select a TikTok Shop account"]
},
"error": {
"type": "invalid_request",
"reason": "Request validation failed",
"suggestion": "Check the request parameters and try again"
},
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
The server also returns X-Request-Id in the response headers. A caller may provide a correctly formatted X-Request-Id, or use the server-generated value for request tracing. Paginated success responses also include meta.
GET /v1/report and POST /v1/report. Check the response headers for the applicable limit. On HTTP 429, wait for the interval in Retry-After before retrying.50400) and release the base reservation. GET and POST use the same base billing rules for the same report endpoint.| HTTP status | Standard code | Meaning and recommended action |
|---|---|---|
| 400 Bad Request | 40000 |
Invalid request syntax, format, or basic parameters. Correct the request before retrying. |
| 401 Unauthorized | 40100 |
Missing, invalid, or expired API key. Check Authorization: Bearer .... |
| 403 Forbidden | 40300 |
Authenticated but not permitted, such as missing draft permission. Do not retry unchanged. |
| 404 Not Found | 40400 |
The account, product, authorization, or another resource does not exist, is unavailable, or does not belong to the team. |
| 405 Method Not Allowed | 40500 |
Unsupported HTTP method. Use the method shown in the Allow response header. |
| 409 Conflict | 40900 |
The resource state conflicts with the operation. Refresh the resource state before retrying. |
| 413 Payload Too Large | 41300 |
Request body or upload exceeds a server limit. Reduce its size. |
| 419 Authentication Timeout | 41900 |
Session or security token expired. This should not normally occur for Team API Key endpoints. |
| 422 Unprocessable Entity | 42200 |
Field validation, publishing rules, or a recoverable business prerequisite failed. Read field errors in data. |
| 429 Too Many Requests | 42900 |
Rate limit or product-sync cooldown. Prefer Retry-After; otherwise use data.next_allowed_at or the response message. |
| 500 Internal Server Error | 50000 |
Unexpected SocialEcho error. Preserve request_id and contact support. |
| 502 Bad Gateway | 50200 |
Upstream social-platform request failed. Retry later and preserve request_id. |
| 503/504 | 50300 / 50400 |
Service unavailable or upstream timeout. Retry with backoff. |
| Timeout/network error | No response body | Retry two or three times and retain a snapshot of the request parameters. |
Standard business codes use HTTP status x 100. A small number of legacy cases may return a more specific non-zero code; this does not change the HTTP status semantics.
Automatically retry only 429, 502, 503, 504, and network timeouts. Requests returning 400, 401, 403, 404, 405, 409, 413, or 422 usually require a correction to parameters, permissions, or resource state.
All examples use https://api.socialecho.net. Replace se_your_team_api_key with your Team API Key.
GET examples intentionally omit Content-Type and a request body. Add parameters directly to the query string.
GET /v1/team)Call this endpoint first to verify the team context.
| Parameter | Location | Required | Type | Description |
|---|---|---|---|---|
| X-Lang | header | No | string | zh_CN or en; default: zh_CN |
curl --request GET 'https://api.socialecho.net/v1/team' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Accept: application/json' \
--header 'X-Lang: en'
{
"code": 0,
"message": "Success",
"data": {
"id": 1024,
"code": "TEAM_ABC123",
"title": "SocialEcho QA Team",
"thumb": "https://oss.socialecho.net/team/TEAM_ABC123/avatar.jpg",
"describe": "SocialEcho API integration team",
"created_at": "2026-08-01 02:30:00 UTC",
"timezone": {
"id": 45,
"name": "Asia/Shanghai",
"offset": "UTC+08:00",
"city": "Shanghai"
}
},
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
GET /v1/account)This list includes the team's authorized and competitor accounts, not accounts created automatically for interactions. Supplying page paginates (default per_page=15); an explicit per_page above 1000 is capped at 1000. Supplying only per_page limits the result without pagination metadata. Omitting both does not impose that per-page cap; prefer explicit pagination. Other endpoints can have stricter validation.
| Parameter | Location | Required | Type | Description |
|---|---|---|---|---|
| X-Lang | header | No | string | Response language |
| page | query | No | integer | Page number; the server default applies when omitted |
| type | query | No | integer | 1 = authorized account; 2 = competitor account |
curl --request GET 'https://api.socialecho.net/v1/account?page=1&type=1' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Accept: application/json' \
--header 'X-Lang: en'
{
"code": 0,
"message": "Success",
"data": [{
"id": 163751,
"title": "example_account",
"account": "example_account",
"url": "https://www.tiktok.com/@example_account",
"app": {"id": 11, "title": "TikTokShop"},
"type": {"value": 1, "label": "Authorized account"},
"status": {"value": 1, "label": "Active"},
"tags": [{"id": 2374, "title": "Example tag"}]
}],
"meta": {"total": 1, "current_page": 1, "last_page": 1, "per_page": 15},
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
Each account includes a tags array containing id and title; accounts without tags return an empty array.
These endpoints operate on account tags owned by the API key's team; a request cannot switch teams. Tags have at most two levels, and an account can have at most three tags. Paths are relative to https://api.socialecho.net.
| Method and path | Operation | Parameters and behavior |
|---|---|---|
GET /v1/account/tag |
List tags | Optional page and per_page; omitting page returns an unpaginated list. Supplying page returns pagination in meta. Sorted by ID descending. |
POST /v1/account/tag |
Create a tag | JSON: required title, optional p_id; omit it or use 0 for a root, or use a current-team root ID for a child. |
PUT or PATCH /v1/account/tag/{id} |
Update a tag | JSON: title required; optional p_id. Omit it to preserve the parent, or set 0 for a root. A root with children cannot be moved under another tag. |
DELETE /v1/account/tag/{id} |
Delete a tag | Deleting a root also deletes its direct children and removes their account associations. Other teams' tags cannot be deleted. |
POST /v1/account/tags |
Manage tags on authorized accounts | JSON: nonempty account_ids array; tag_ids array containing 0–3 valid current-team account tag IDs; type is replace or append. |
title is at most 50 characters, containing only Unicode letters, combining marks, numbers and ordinary spaces, and must be unique among the team's account tags. replace replaces the existing tags; tag_ids: [] clears them. append retains and deduplicates existing tags, adding only until the account reaches three; excess tags are not added. Check the affected accounts and tags before mutations; deleting a root also affects its children and linked accounts.
Examples: list, create, and associate tags
curl --get 'https://api.socialecho.net/v1/account/tag' \
--data-urlencode 'page=1' --data-urlencode 'per_page=20' \
--header 'Authorization: Bearer se_your_team_api_key' --header 'Accept: application/json'
curl --request POST 'https://api.socialecho.net/v1/account/tag' \
--header 'Authorization: Bearer se_your_team_api_key' --header 'Content-Type: application/json' \
--data '{"title":"Priority customers","p_id":0}'
curl --request POST 'https://api.socialecho.net/v1/account/tags' \
--header 'Authorization: Bearer se_your_team_api_key' --header 'Content-Type: application/json' \
--data '{"account_ids":[163751],"tag_ids":[2374],"type":"append"}'
Example tag response:
{"code":0,"message":"Success","data":{"id":2374,"title":"Priority customers","type":{"value":4,"label":"Account tag"},"p_id":0},"request_id":"example-request-id"}
For a list, data is an array; child tags additionally include p_title. Success requires HTTP 2xx and code=0. Invalid titles, parents, accounts or tags normally return HTTP 422 and code=42200, with field errors in data. Updating or deleting a missing or other-team tag returns 404.
Remove a selected account's authorized identity from the team. This changes live account state and is not automatically reversible; verify the team and account IDs before calling. The account and its historical associations are retained, and its type changes to 0 (interaction account). To use it as an authorized account again, complete the platform authorization flow. This endpoint does not guarantee revocation of the token at the third-party platform.
| Method and path | Operation | Parameters |
|---|---|---|
DELETE /v1/account/{id} |
Remove authorization for one account | Path id: positive integer identifying a current-team account. |
DELETE /v1/account/batch |
Remove authorization for multiple accounts | JSON body account_ids: nonempty array of positive integers, for example [163751,163752]. |
The batch endpoint validates every ID before processing. A missing, deleted, or other-team account causes HTTP 422 and code=42200; no valid accounts are processed when validation fails. Duplicate IDs refer to the same account. A missing or other-team single account returns HTTP 404; a missing or invalid API key returns HTTP 401 and code=40100. Success returns HTTP 200 and code=0. The API key determines the team; do not rely on team_id to switch teams.
# Remove one account
curl --request DELETE 'https://api.socialecho.net/v1/account/163751' \
--header 'Authorization: Bearer se_your_team_api_key' --header 'Accept: application/json'
# Remove multiple accounts; the DELETE request has a JSON body
curl --request DELETE 'https://api.socialecho.net/v1/account/batch' \
--header 'Authorization: Bearer se_your_team_api_key' --header 'Accept: application/json' \
--header 'Content-Type: application/json' --data '{"account_ids":[163751,163752]}'
# Check its type; add type=1 to confirm it no longer appears among authorized accounts
curl --get 'https://api.socialecho.net/v1/account' \
--data-urlencode 'ids[]=163751' \
--header 'Authorization: Bearer se_your_team_api_key' --header 'Accept: application/json'
Do not automatically retry removal requests. After a timeout or uncertain response, query the account's type.value by ID and use request_id to investigate before deciding what to do next.
GET /v1/oauth/links)Returns one or more authorization methods for each platform available to the current team. Select a URL by using data[].id, data[].title, and connections[].type. Optional tag_id selects account tags to append after authorization completes. Use one ID, a comma-separated value (tag_id=2374,2375), or an array (tag_id[]=2374&tag_id[]=2375). The server deduplicates in input order, ignores nonexistent, deleted, other-team, or non-account tags, and keeps at most the first three valid IDs. It still returns links when all IDs are invalid. Issuing a link does not mean authorization or tagging has completed.
| Parameter | Location | Required | Type | Description |
|---|---|---|---|---|
| Authorization | header | Yes | string | Bearer se_your_team_api_key |
| X-Lang | header | No | string | zh_CN or en; default: zh_CN |
| tag_id | query | No | integer / string / integer[] | Account tag IDs applied after authorization; up to the first three valid IDs are retained |
curl --request GET 'https://api.socialecho.net/v1/oauth/links?tag_id%5B%5D=2374&tag_id%5B%5D=2375' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Accept: application/json' \
--header 'X-Lang: en'
Example response, with URLs redacted:
{
"code": 0,
"message": "Success",
"data": [
{
"id": 1,
"title": "Instagram",
"connections": [
{"type": "instagram", "url": "https://authorization.example/instagram"},
{"type": "facebook", "url": "https://authorization.example/facebook"}
]
},
{
"id": 3,
"title": "TikTok",
"connections": [
{"type": "personal", "url": "https://authorization.example/tiktok"}
]
},
{
"id": 11,
"title": "TikTokShop",
"connections": [
{"type": "seller", "url": "https://authorization.example/tiktokshop/seller"},
{"type": "creator", "url": "https://authorization.example/tiktokshop/creator"}
]
}
],
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
| Field | Type | Description |
|---|---|---|
| data[].id | integer | Platform ID; corresponds to app.id in the account list |
| data[].title | string | Platform name |
| data[].connections | object[] | Supported authorization entries |
| data[].connections[].type | string | Authorization mode for the platform |
| data[].connections[].url | string | URL to open directly; may contain team context or one-time state parameters |
| Platform | Platform ID | Connection type |
|---|---|---|
| 1 | instagram, facebook |
|
| 2 | default |
|
| TikTok | 3 | personal |
| 4 | default |
|
| YouTube | 5 | default |
| Telegram | 6 | default |
| X | 7 | default |
| 8 | personal |
|
| 9 | default |
|
| Threads | 10 | personal |
| TikTokShop | 11 | seller, creator |
Open authorization URLs exactly as returned. Do not rewrite them or remove query parameters. They may contain team-related state and should not be cached long term, publicly shared, or written to ordinary business logs. Request a new URL when authorization is needed.
| HTTP status | Code | Scenario |
|---|---|---|
| 200 | 0 |
Authorization links returned successfully |
| 401 | 40100 |
Team API Key is missing, invalid, or expired |
| 405 | 40500 |
Incorrect method; use GET |
| 422 | 42200 |
Business prerequisite failed, such as insufficient team credits |
| 500 | 50000 |
Unexpected server error while generating links |
GET / POST /v1/article)Use query parameters with GET, or send the same filters as JSON to POST /v1/article with Content-Type: application/json for long account lists, e.g. {"account_ids":[12345,12346],"page":1,"per_page":100}. This is still a read operation and does not publish a post. The pagination behavior in §5.2 also applies (maximum 1000 per page).
| Parameter | Location | Required | Type | Description |
|---|---|---|---|---|
| X-Lang | header | No | string | Response language |
| page | query | No | integer | Page number |
| account_ids | query | No | integer[] | Repeat account_ids[] for each account ID |
curl --request GET 'https://api.socialecho.net/v1/article?page=1&account_ids%5B%5D=163956&account_ids%5B%5D=163955&account_ids%5B%5D=28' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Accept: application/json' \
--header 'X-Lang: en'
{
"code": 0,
"message": "Success",
"data": [{
"id": 987654,
"uuid": "platform_post_id",
"title": null,
"content": "Example article content",
"url": "https://www.example.com/post/platform_post_id",
"app": {"id": 3, "title": "TikTok"},
"created_at": "2026-08-27 13:00:00 +08:00",
"updated_at": "2026-08-27 13:05:00 +08:00",
"account": {
"id": 163751,
"avatar": "https://oss.socialecho.net/account/avatar.jpg",
"account": "example_account",
"title": "Example Account",
"url": "https://www.tiktok.com/@example_account"
},
"report": {
"exposure": 1021,
"like": 40,
"comment": 14,
"share": 0,
"quote": 0,
"favorite": 12
},
"attachments": [{
"id": 456789,
"url": "https://oss.socialecho.net/team/TEAM_ABC123/20260827/example.mp4",
"thumb": null,
"type": "video",
"iframe": null
}],
"quote": null
}],
"meta": {"total": 1, "current_page": 1, "last_page": 1, "per_page": 15},
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
GET / POST /v1/report)Use query parameters with GET or a JSON body with POST; filters and result semantics are the same. Date boundaries follow the team timezone and permitted history. For reproducible comparisons, use both explicit boundaries. A date-only start may equal the end; group=day includes the end date but not the following day. With only an end date, the start date defaults to the first day of the team's permitted history. With no account filter it queries the team's normal accounts; supply the same account IDs explicitly when comparing reports.
Single-day POST body (replace the sample date and account; the example was not submitted):
{"start_date":"2026-11-19","end_date":"2026-11-19","time_type":1,"account_ids":[12345],"group":"day"}
| Parameter | Location | Required | Type | Description |
|---|---|---|---|---|
| X-Lang | header | No | string | Response language |
| start_date | query / body | Conditional | string | Date (YYYY-MM-DD recommended); supply at least one date boundary. Can equal end_date. |
| end_date | query / body | Conditional | string | Date (YYYY-MM-DD recommended); supply at least one date boundary. Prefer both for a fixed range. |
| time_type | query / body | Yes | integer | 1 = posts created in the date range; 2 = all historical posts |
| account_ids | query / body | No | integer[] | Repeat account_ids[] for each account ID |
| group | query / body | No | string | Omit for totals; day, app, or account for grouped results |
curl --request GET 'https://api.socialecho.net/v1/report?start_date=2026-01-01&end_date=2026-03-24&time_type=1&account_ids%5B%5D=163956&account_ids%5B%5D=163955&account_ids%5B%5D=28' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Accept: application/json' \
--header 'X-Lang: en'
The group value changes the structure of data. Parse the response according to the requested grouping.
Summary response when group is omitted:
{
"code": 0,
"message": "Success",
"data": {
"total": {
"fans": 5320,
"content": 84,
"exposure": 120345,
"comment": 893,
"like": 4512,
"share": 326,
"quote": 12,
"favorite": 645
},
"increase": {
"fans": 102,
"content": 14,
"exposure": 18340,
"comment": 116,
"like": 507,
"share": 38,
"quote": 3,
"favorite": 72
}
},
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
Abbreviated response for group=day:
{
"code": 0,
"message": "Success",
"data": [{
"date": "2026-03-23",
"total": {"fans": 5310, "content": 6, "exposure": 8421, "comment": 52, "like": 301, "share": 19, "quote": 1, "favorite": 34},
"increase": {"fans": 12, "content": 6, "exposure": 8421, "comment": 52, "like": 301, "share": 19, "quote": 1, "favorite": 34}
}],
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
With group=app, each data[] item contains platform id, title, total, and increase. With group=account, each item contains account id, title, account, avatar, url, app, total, and increase. Only day, app, and account are supported grouping values.
GET /v1/drive)Returns files belonging to the team associated with the Team API Key. The token determines the team; a team_id parameter cannot select another team. Send all GET parameters in the query string and do not send a request body.
| Parameter | Location | Required | Type | Description |
|---|---|---|---|---|
| Authorization | header | Yes | string | Bearer se_your_team_api_key |
| X-Lang | header | No | string | zh_CN or en |
| page | query | No | integer | Page number, minimum 1; enables pagination |
| per_page | query | No | integer | 1–100; defaults to 15 when page is provided |
| keyword | query | No | string | Up to 255 characters; matches title, extension, or MIME type |
| type | query | No | string | image, video, audio, or gif |
| status | query | No | string | pending, uploaded, failed, or recycled; default: uploaded |
| created_start | query | No | string | Inclusive start date, for example 2026-11-01 |
| created_end | query | No | string | Inclusive end date; must not precede created_start |
When page is provided, the response includes pagination meta. With only per_page, the response contains at most that many records without pagination metadata. With neither, all matching records are returned. Use page and per_page for paginated retrieval. Records are sorted by updated_at descending, then id descending.
curl --request GET 'https://api.socialecho.net/v1/drive?page=1&per_page=2&type=image' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Accept: application/json' \
--header 'X-Lang: en'
Example response:
{
"code": 0,
"message": "Success",
"data": [{
"id": 341677,
"url": "https://oss.socialecho.net/team/TEAM_ABC123/20261103/example.png",
"sha256": "7c50375e5f0e4434459242fe63f416e842e05fb74a3a1597f20e08484ee3cca9",
"hash_status": "verified",
"title": "example.png",
"extension": "png",
"mime": "image/png",
"type": "image",
"size": 3407387,
"status": "uploaded",
"duration": null,
"extra": {"width": 1440, "height": 1839, "ratio": "480:613"},
"created_at": "2026-11-03 06:51:53 -06:00",
"updated_at": "2026-11-03 06:51:55 -06:00"
}],
"meta": {"total": 1, "current_page": 1, "last_page": 1, "per_page": 2},
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
size is in bytes. duration comes from file metadata and may be null. sha256 and hash_status may be null; extra varies by file. Times use the team timezone. Success is HTTP 200 with code=0. Invalid filters, dates, or pagination return HTTP 422 and code=42200; an invalid key returns HTTP 401 and code=40100. Credit information may also appear in the response.
Use query parameters with GET, or send the same filter fields as JSON with POST.
The Team API Key determines the team, and repeated account_ids[] parameters filter team accounts. Data reflects collected reports; an empty array indicates no matching data.
| Method and path | Purpose |
|---|---|
GET / POST /v1/report/product |
Product ranking with current active, previous history, and ranking value |
GET / POST /v1/report/product/avg |
Product daily averages |
GET / POST /v1/report/product/day |
Product trends by day, week, or month |
GET /v1/report/article |
Post reports, including associated product and commerce metrics where available |
| Query parameter | Description |
|---|---|
start_date, end_date |
Date range, e.g. 2026-11-03 through 2026-11-09; subject to the team's plan history limit |
account_ids[] |
Repeated team account IDs |
time_type |
Optional: for product reports, 1 covers posts created during the period and 2 covers all historical posts; default 2. When supplied, use integer 1 or 2 |
sort |
Product sort: gmv, order_count, product_count, product_exposure_rate, or product_click_rate |
limit |
Product count, 1–50, default 5 |
period |
Trend granularity: day, week, or month, default day |
curl --get 'https://api.socialecho.net/v1/report/product' \
--data-urlencode 'start_date=2026-11-03' \
--data-urlencode 'end_date=2026-11-09' \
--data-urlencode 'time_type=2' \
--data-urlencode 'account_ids[]=123456' \
--header 'Authorization: Bearer se_your_team_api_key'
Product items include id, uuid, title, thumb, prices, and currency. Common active metrics include gmv, product_count, order_count, product_exposure_rate, and product_click_rate; daily averages use the _day suffix. Use the documented time_type values. Invalid date ranges, sorting, count, or period return HTTP 422, code=42200.
The API Key determines the team for these endpoints.
| Method and path | Purpose and parameters |
|---|---|
GET /v1/drive/tag |
List drive tags; optional page, per_page |
POST /v1/drive/tag |
Create: JSON title required; omit p_id or use 0 for a root, or specify a root ID for a child |
PUT / PATCH /v1/drive/tag/{id} |
Update: title required; omit p_id to preserve the parent, or pass 0/null for a root |
DELETE /v1/drive/tag/{id} |
Delete; deleting a root also deletes its children and clears material associations |
POST /v1/drive/tags |
Batch tagging with JSON drive_ids, tag_ids, and type |
Names are unique within team drive tags, at most 50 characters, and allow Unicode letters, combining marks, numbers, and ordinary spaces; at most two levels are supported. drive_ids contains 1–500 distinct team-owned material IDs, tag_ids contains 0–3 distinct team drive-tag IDs, and each material may have at most three tags. type=replace replaces tags, with an empty tag_ids array clearing them. type=append appends idempotently; if any material would exceed the limit, the batch is rejected. Filter materials using repeated tag_ids[] query parameters.
curl --request POST 'https://api.socialecho.net/v1/drive/tag' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Content-Type: application/json' \
--data '{"title":"Product Assets","p_id":0}'
curl --request POST 'https://api.socialecho.net/v1/drive/tags' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Content-Type: application/json' \
--data '{"drive_ids":[123],"tag_ids":[456],"type":"append"}'
curl --get 'https://api.socialecho.net/v1/drive' \
--data-urlencode 'tag_ids[]=456' \
--header 'Authorization: Bearer se_your_team_api_key'
Create/update returns tag id, title, and p_id; batch tagging returns data.affected. Invalid parameters, materials, or tags return HTTP 422, code=42200. Put GET parameters in the query string, with no request body.
GET /v1/upload/url)The normal flow is: obtain a presigned upload URL, upload the file using the returned method, then use public_url in publishing attachments.
| Parameter | Location | Required | Type | Description |
|---|---|---|---|---|
| X-Lang | header | No | string | Response language |
| content_type | query | Yes | string | MIME type of the file; must match the actual file |
| title | query | No | string | File name; maximum 255 characters |
Supported content_type values:
image/jpeg, image/jpg, image/png, image/gif, image/webp, image/bmp.video/mp4, video/avi, video/mov, video/wmv, video/flv, video/webm, video/mkv, video/3gp, video/quicktime.audio/mpeg, audio/mp3, audio/wav, audio/x-wav, audio/aac, audio/mp4, audio/m4a, audio/ogg, audio/webm, audio/flac.curl --request GET 'https://api.socialecho.net/v1/upload/url?content_type=video%2Fmp4&title=product-video.mp4' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Accept: application/json' \
--header 'X-Lang: en'
{
"code": 0,
"message": "Success",
"data": {
"upload_url": "https://oss.socialecho.net/team/TEAM_ABC123/20260828/AbCdEf1234567890AbCdEf1234567890.mp4?signature=example",
"method": "PUT",
"public_url": "https://oss.socialecho.net/team/TEAM_ABC123/20260828/AbCdEf1234567890AbCdEf1234567890.mp4",
"object_key": "team/TEAM_ABC123/20260828/AbCdEf1234567890AbCdEf1234567890.mp4",
"headers": {"Content-Type": "video/mp4"},
"expire_in": 600,
"file_id": 123456,
"file": {
"id": 123456,
"url": "https://oss.socialecho.net/team/TEAM_ABC123/20260828/AbCdEf1234567890AbCdEf1234567890.mp4",
"title": "product-video.mp4",
"extension": "mp4",
"mime": "video/mp4",
"type": "video",
"size": 0,
"status": "pending",
"extra": [],
"created_at": "2026-08-28 10:00:00 +08:00",
"updated_at": "2026-08-28 10:00:00 +08:00"
}
},
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
Use the returned method, upload_url, and headers exactly as provided. The signed upload_url expires and must not be modified, cached, or used for publishing.
curl --request PUT 'upload_url_from_previous_response' \
--header 'Content-Type: video/mp4' \
--upload-file './product-video.mp4'
After upload, use public_url in the publishing request. Audio upload support does not imply that every publishing platform and type accepts audio attachments.
Success returns HTTP 200 and code = 0. Missing, invalid, or overlong parameters return HTTP 422 and code = 42200. An unexpected error while generating the upload URL returns HTTP 500 and code = 50000. Submit only a MIME type listed above; unsupported MIME types currently return HTTP 500 and code = 50000.
GET /v1/reddit/communities)Use this endpoint to select a community before publishing to Reddit.
| Parameter | Location | Required | Type | Description |
|---|---|---|---|---|
| X-Lang | header | No | string | Response language |
| account_id | query | Yes | integer | Reddit social account ID |
curl --request GET 'https://api.socialecho.net/v1/reddit/communities?account_id=163751' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Accept: application/json' \
--header 'X-Lang: en'
{
"code": 0,
"message": "Success",
"data": [{
"id": 301,
"uuid": "t5_example",
"title": "example-community",
"attributes": {
"description": "Example community",
"avatar": "https://styles.redditmedia.com/example.png",
"subscribers": 12000,
"permissions": {
"release": true,
"type": ["text", "media", "link"]
}
},
"created_at": "2026-08-28 10:00:00",
"updated_at": "2026-08-28 10:00:00"
}],
"meta": {"total": 1, "current_page": 1, "last_page": 1, "per_page": 15},
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
When publishing to Reddit, use the integer data[].id as extra.category_id, not uuid. Verify attributes.permissions.release = true and that the target post type appears in attributes.permissions.type. The community list does not guarantee flair options. Omit extra.flair when no valid flair has been confirmed; do not submit an empty object.
GET /v1/pinterest/boards)Use this endpoint to select a board before publishing to Pinterest.
| Parameter | Location | Required | Type | Description |
|---|---|---|---|---|
| X-Lang | header | No | string | Response language |
| account_id | query | Yes | integer | Pinterest social account ID |
curl --request GET 'https://api.socialecho.net/v1/pinterest/boards?account_id=163751' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Accept: application/json' \
--header 'X-Lang: en'
{
"code": 0,
"message": "Success",
"data": [{
"id": 401,
"uuid": "987654321012345678",
"title": "Home Decor",
"attributes": {},
"created_at": "2026-08-28 10:00:00",
"updated_at": "2026-08-28 10:00:00"
}],
"meta": {"total": 1, "current_page": 1, "last_page": 1, "per_page": 15},
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
Use the integer data[].id as extra.category_id when publishing. Do not use the platform board uuid.
GET /v1/tiktokshop/products)Returns products synchronized for a TikTok Shop account. Before publishing a shoppable video or photo post, obtain the complete id, uuid, title, and thumb from this endpoint.
| Parameter | Location | Required | Type | Description |
|---|---|---|---|---|
| account_id | query | Yes | integer | TikTok Shop account ID from /v1/account |
| page | query | No | integer | Page number; default: 1 |
| per_page | query | No | integer | Items per page; 1-100; default: 20 |
| keyword | query | No | string | Product-title keyword; maximum 500 characters |
curl --request GET 'https://api.socialecho.net/v1/tiktokshop/products?account_id=123456&page=1&per_page=20&keyword=vase' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Accept: application/json' \
--header 'X-Lang: en'
{
"code": 0,
"message": "Success",
"data": [{
"id": 789,
"uuid": "1732443576158556877",
"title": "Ceramic Flower Vase",
"thumb": "https://oss.socialecho.net/team/TEAM_ABC123/20260828/product.jpg",
"status": 1,
"price": {"min": "68.88", "max": "68.88", "currency": "USD"}
}],
"meta": {"total": 1, "current_page": 1, "last_page": 1, "per_page": 20},
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
status = 1 means the product is currently available for publishing. If a localized keyword returns no result, try the product's English title or omit keyword to retrieve all products.
| HTTP status | Code | Scenario |
|---|---|---|
| 200 | 0 |
Product list returned successfully |
| 404 | 40400 |
TikTok Shop account does not exist, is unavailable or unauthorized, or does not belong to the team |
| 422 | 42200 |
Invalid account_id, pagination, or keyword parameter |
| 500 | 50000 |
Unexpected server error while querying products |
POST /v1/tiktokshop/products/sync)Requests an asynchronous refresh of products for the account. A successful response means the job entered the queue, not that synchronization has finished. Each account has an approximate 60-minute cooldown.
| Parameter | Location | Required | Type | Description |
|---|---|---|---|---|
| account_id | body | Yes | integer | TikTok Shop account ID |
curl --request POST 'https://api.socialecho.net/v1/tiktokshop/products/sync' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Content-Type: application/json' \
--header 'X-Lang: en' \
--data-raw '{"account_id":123456}'
{
"code": 0,
"message": "Product sync job submitted",
"data": {
"account_id": 123456,
"status": "queued"
},
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
| HTTP status | Code | Scenario |
|---|---|---|
| 200 | 0 |
Sync job queued |
| 404 | 40400 |
Account does not exist, is unavailable or unauthorized, or does not belong to the team |
| 422 | 42200 |
Missing account_id, or account type does not support product synchronization |
| 429 | 42900 |
Sync is running or cooling down; wait according to data.next_allowed_at, Retry-After when present, or the response message |
| 500 | 50000 |
Failed to submit the sync job; preserve request_id and contact support |
GET /v1/tiktokshop/music/genres)Returns genres supported by the trending-music endpoint. This endpoint has no business parameters.
curl --request GET 'https://api.socialecho.net/v1/tiktokshop/music/genres' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Accept: application/json' \
--header 'X-Lang: en'
Abbreviated response:
{
"code": 0,
"message": "Success",
"data": [
{"value": "ALL", "label": "All"},
{"value": "POP", "label": "Pop"},
{"value": "BGM", "label": "Background Music"}
],
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
Success returns HTTP 200 and code = 0. A business prerequisite such as insufficient credits returns HTTP 422 and code = 42200. Unexpected server errors return HTTP 500 and code = 50000. Authentication and method errors follow Section 4.
GET /v1/tiktokshop/music/trending)Returns available tracks from the TikTok Commercial Music Library. account_id may be an active TikTok Shop account ID or a directly authorized TikTok account ID in the current team. For a TikTok Shop account, the server resolves an associated or available TikTok authorization.
| Parameter | Location | Required | Type | Description |
|---|---|---|---|---|
| account_id | query | Yes | integer | TikTok Shop or authorized TikTok account ID |
| country_code | query | No | string | Two-letter country code, such as US; default: US |
| genre | query | No | string | Value returned by the genres endpoint; default: ALL |
| date_range | query | No | string | 1DAY, 7DAY, 30DAY, or 90DAY; default: 30DAY |
curl --request GET 'https://api.socialecho.net/v1/tiktokshop/music/trending?account_id=123456&country_code=US&genre=BGM&date_range=7DAY' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Accept: application/json' \
--header 'X-Lang: en'
{
"code": 0,
"message": "Success",
"data": [{
"uuid": "6817383821571262465",
"title": "A lovely acoustic song",
"artist": "Hiraoka",
"url": "https://example.tiktokcdn.com/music",
"cover": "https://example.tiktokcdn.com/cover.jpeg",
"duration": 81
}],
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
| Field | Type | Description |
|---|---|---|
| uuid | string | Unique music ID; publish it as extra.music.uuid |
| title | string | Track title |
| artist | string | Artist or performer |
| url | string | Audio preview URL |
| cover | string | Cover image URL |
| duration | integer | Duration in seconds |
selection, music_volume, and original_sound_volume are publishing controls and are not returned by the music endpoint. When music is selected, copy all six returned fields (url, uuid, cover, title, artist, and duration) unchanged into extra.music, then add the three publishing controls. Do not submit only a UUID or a reduced four-field object.
Complete music object:
{
"url": "https://sf16-ies-music-sg.tiktokcdn.com/obj/tos-alisg-ve-2102/oUNQD7eSEFCC1sggYZ9DQY0OdArrcwoj6BofBk",
"uuid": "7231997808928032770",
"cover": "https://p16-sg.tiktokcdn.com/aweme/100x100/tos-alisg-v-2774/oYHMADhIgAFdBaDftgrjLQoIsFZSsCeZEIpBAa.jpeg",
"title": "Boundless Worship",
"artist": "Josué Novais Piano Worship",
"duration": 715,
"selection": "trending_clip",
"music_volume": 50,
"original_sound_volume": 0
}
| HTTP status | Code | Scenario |
|---|---|---|
| 200 | 0 |
Trending music returned successfully |
| 404 | 40400 |
TikTok Shop account does not exist, or no TikTok authorization is available for the music query |
| 422 | 42200 |
Invalid account, country, genre, or date range |
| 429 | 42900 |
Rate limit reached; retry after Retry-After |
| 502 | 50200 |
Upstream TikTok music service failed |
| 500 | 50000 |
Other unexpected server error |
POST /v1/publish/article)Successful submission means SocialEcho accepted the request, not that the post is live. Save data.id as the publishing record ID and read the saved outcome with §5.13. Do not repeat the publishing POST to check status or as a default retry. For scheduling use status: 1 with a future scheduled_at including an offset; omit it for immediate submission. Check current attachment rules using §5.14.
This endpoint publishes across platforms. type, extra, and attachments are platform-specific.
| Parameter | Location | Required | Type | Description |
|---|---|---|---|---|
| X-Lang | header | No | string | Response language |
| account_id | body | Yes | integer | Social account ID used for publishing |
| type | body | Yes | string | Platform-specific publishing type |
| status | body | Yes | integer | 0 = draft; 1 = publish |
| scheduled_at | body | No | string | Schedule used only when status = 1; omit for immediate publishing. Values without an offset are parsed in the team timezone. |
| comment | body | No | string or string[] | Comments. A string is normalized to an array; clients should send an array. Maximum 10 on supported platforms. |
| content | body | Conditional | string | Main post text; required for some platforms and types |
| extra | body | Conditional | object | Platform-specific fields |
| attachments | body | Conditional | object[] | Platform-specific media list. Each item must include the uploaded file url; a video cover may be supplied as thumb. |
Attachment url and thumb must be recognized by the configured SocialEcho OSS. Use the public_url returned by GET /v1/upload/url. The server resolves media type, dimensions, size, duration, and frame rate from OSS; clients do not submit that metadata.
Supported type examples:
reels, post, storiesshorts, videoreels, post, storiesshort_post, long_postpostvideo, photovideo, photoposttext, link, mediapostpostThe table lists the primary validation rules enforced by the current external publishing endpoint. File limits apply per attachment. Media dimensions, frame rate, duration, and aspect ratio are resolved and validated by the server.
| Platform / type | content |
Important extra fields |
Attachment rules |
|---|---|---|---|
Facebook reels |
Optional; max 2,200 characters | No required extension fields | Exactly 1 video; max 1 GiB; min 540x540; 23-60 fps; 3-300 seconds |
Facebook post |
At least content or media; max 2,200 characters | No required extension fields | Optional: 1-10 images/GIFs or 1 video; images and video cannot be mixed |
Facebook stories |
Content not supported | No required extension fields | Exactly 1 image or video; image max 10 MiB; video max 2 GiB |
YouTube shorts |
Optional; max 5,000 characters and 60 hashtags | title required, max 100 characters; tags and containsSyntheticMedia optional |
Exactly 1 video; max 2 GiB; min 480x480; 1-180 seconds |
YouTube video |
Optional; max 5,000 characters; max 60 hashtags | title required, max 100 characters; tags and containsSyntheticMedia optional |
Exactly 1 video; max 2 GiB; 1-43,200 seconds |
Instagram reels |
Optional; max 2,200 characters and 30 hashtags | collaborators optional; max 3 usernames |
Exactly 1 video; max 300 MiB; 23-60 fps; 3-900 seconds; 9:16 |
Instagram post |
Optional; max 2,200 characters and 30 hashtags | collaborators optional; max 3 usernames |
1-10 images, GIFs, or videos |
Instagram stories |
Content and collaborators not supported | No required extension fields | Exactly 1 image or video; image max 10 MiB; video max 2 GiB |
X short_post |
Optional; max 280 characters | No required extension fields | Optional; max 4 images, GIFs, or videos |
X long_post |
Optional; max 25,000 characters | No required extension fields | Optional; max 4 images, GIFs, or videos |
LinkedIn post |
Optional; max 3,000 characters | No required extension fields | Optional; max 20 total; up to 20 images/GIFs and up to 1 video |
TikTok video |
Optional; max 2,200 UTF-16 code units | draft required boolean; is_ai_generated and music optional; title unsupported |
Exactly 1 video; max 1 GiB; min 360x360; 23-60 fps; 3-600 seconds |
TikTok photo |
Optional; max 4,000 UTF-16 code units | draft required boolean; title optional, max 90 UTF-16 code units; music optional |
1-35 jpg, jpeg, or webp images; max 20 MiB each |
TikTok Shop video |
Required; max 2,200 UTF-16 code units | Single-product mode requires title and product |
Exactly 1 video; max 500 MB; format restrictions apply |
TikTok Shop photo |
Optional; max 5,000 UTF-16 code units | Single-product mode requires title and product; per-image product mode uses post_type=3 and products |
Images only; at least 1; max 10 MiB each; ratio 9:16–16:9 |
Pinterest post |
Optional; max 500 characters | category_id required integer from board data[].id; title max 100 characters |
Exactly 1 image, GIF, or video |
Reddit text |
Required | title required, max 300 characters; category_id and flair optional |
Attachments prohibited |
Reddit link |
Optional | title and link required; category_id and flair optional |
Attachments prohibited |
Reddit media |
Optional | title required; category_id and flair optional |
1-20 total; up to 20 images/GIFs and up to 1 video |
Threads post |
Optional; max 500 characters | No required extension fields | Optional; max 20 images or videos; GIF unsupported |
Telegram post |
Optional; max 4,096 characters | No required extension fields | Optional; max 10 images or videos; comment unsupported |
YouTube extra.tags must be an array of strings with no empty values, duplicates, or control characters. The combined length under YouTube's comma-and-quote counting rules must not exceed 500. Supply a YouTube thumbnail through attachments[0].thumb; only jpg, jpeg, and png are supported, with a 2 MiB maximum.
Instagram extra.collaborators must be an array of username strings, with or without a leading @. Usernames may contain only letters, numbers, periods, and underscores, and must not be duplicated. For Reddit, omit extra.flair entirely when it is not needed. When supplied, both uuid and title are required.
curl --request POST 'https://api.socialecho.net/v1/publish/article' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Content-Type: application/json' \
--header 'X-Lang: en' \
--data @publish-payload.json
Complete these steps before publishing:
/v1/account and select an active TikTok Shop account ID./v1/tiktokshop/products and select the product to attach./v1/upload/url and upload the video or images to OSS.public_url returned by the upload endpoint.Video publish-payload.json example:
{
"account_id": 123456,
"type": "video",
"status": 1,
"content": "A simple statement piece for every cozy corner. #HomeDecor #TikTokShop",
"extra": {
"title": "Minimalist Ceramic Vase",
"product": {
"id": 789,
"uuid": "1732443576158556877",
"title": "Ceramic Flower Vase",
"thumb": "https://oss.socialecho.net/team/TEAM_ABC123/20260828/product.jpg"
},
"music": {
"url": "https://sf16-ies-music-sg.tiktokcdn.com/obj/tos-alisg-ve-2102/oUNQD7eSEFCC1sggYZ9DQY0OdArrcwoj6BofBk",
"uuid": "7231997808928032770",
"cover": "https://p16-sg.tiktokcdn.com/aweme/100x100/tos-alisg-v-2774/oYHMADhIgAFdBaDftgrjLQoIsFZSsCeZEIpBAa.jpeg",
"title": "Boundless Worship",
"artist": "Josué Novais Piano Worship",
"duration": 715,
"selection": "trending_clip",
"music_volume": 50,
"original_sound_volume": 0
}
},
"attachments": [{
"url": "https://oss.socialecho.net/team/TEAM_ABC123/20260828/product-video.mp4"
}],
"comment": []
}
Replace the illustrative OSS URLs with the public_url returned for the current upload. Product fields must use current values returned by the product-list endpoint.
Photo publish-payload.json example:
{
"account_id": 123456,
"type": "photo",
"status": 1,
"content": "A cozy update for your favorite corner. #HomeDecor #TikTokShop",
"extra": {
"title": "Minimalist Ceramic Vase",
"product": {
"id": 789,
"uuid": "1732443576158556877",
"title": "Ceramic Flower Vase",
"thumb": "https://oss.socialecho.net/team/TEAM_ABC123/20260828/product.jpg"
}
},
"attachments": [
{"url": "https://oss.socialecho.net/team/TEAM_ABC123/20260828/product-1.jpg"},
{"url": "https://oss.socialecho.net/team/TEAM_ABC123/20260828/product-2.jpg"}
],
"comment": []
}
TikTok Shop common requirements:
account_id must identify an active TikTok Shop account belonging to the current team.type supports only video or photo.extra.post_type omitted, 1, or "1"), extra.title is required. The server removes characters other than Unicode letters, combining marks, digits, and spaces; the cleaned title must be nonempty and at most 30 characters.extra.product is required. Copy id, uuid, title, and thumb from the product-list response.extra.post_type set to 3 or "3": provide a nonempty extra.products array with one item per attachment in matching order. Product IDs and UUIDs must be unique. Each cleaned product title must be nonempty and at most 30 characters; the shared extra.title is not required. Mode 3 is not supported for video.status = 1.extra.music is optional. When music is selected, include all nine fields: url, uuid, cover, title, artist, duration, selection, music_volume, and original_sound_volume.url, uuid, cover, title, artist, and duration unchanged from the current music-query result. Do not construct, truncate, or reduce the object to a UUID.extra.music.selection supports none, trending_clip, and full_track. The server requires uuid for a non-none selection; the integration convention is to provide all nine fields.music_volume and original_sound_volume must be integers from 0 to 100; the example uses 50 and 0.extra.music or send {"selection":"none"}.status = 1 without scheduled_at submits the post immediately.TikTok Shop video requirements:
content is required and must not exceed 2,200 UTF-16 code units.mp4, mov, mkv, wmv, webm, avi, 3gp, flv, mpeg, and mpg. Files of 10 MiB or more should use mp4, mov, or webm.extra.is_ai_generated is an optional boolean.TikTok Shop photo requirements:
content is optional and must not exceed 5,000 UTF-16 code units when supplied.attachments must contain at least one image and images only. The current API does not impose an image-count maximum, but TikTok Shop platform limits still apply.jpg, jpeg, png, webp, heic, and bmp. Each image must be larger than zero and no larger than 10 MiB.9:16 and 16:9.{
"code": 0,
"message": "Submitted successfully",
"data": {"id": 183308},
"request_id": "018f7f35-7c9a-7b82-a0f2-6a06b0b7d301"
}
data.id is the SocialEcho publishing-record ID. HTTP 200 with code = 0 means the job was submitted; it does not mean TikTok Shop has completed publishing. Platform processing and review are asynchronous.
| HTTP status | Code | Scenario |
|---|---|---|
| 200 | 0 |
Publishing job submitted |
| 403 | 40300 |
Team lacks draft permission when status = 0 |
| 404 | 40400 |
Team, account, or linked resource does not exist, or account does not belong to the team |
| 422 | 42200 |
Field, attachment, product, music, TikTok Shop rule, business prerequisite, or recoverable runtime validation failed |
| 500 | 50000 |
Other unexpected server error |
The asynchronous job is submitted after the publishing record is created. Therefore, an HTTP 422 or 500 during submission does not guarantee that no record was created. Do not immediately repeat the request. Preserve request_id, check the post list or back-office record, and retry only after confirming that no corresponding record exists.
GET /v1/publish/article/{publish_id})Query the current team's publishing record using the publishing-record ID returned as data.id by POST /v1/publish/article. This ID is different from article_id, the post ID returned by GET /v1/article, and a third-party platform post ID. The endpoint reads the status stored by SocialEcho; it does not request a fresh status from the platform or resubmit publication.
| Parameter | Location | Required | Description |
|---|---|---|---|
| publish_id | path | Yes | Positive publishing-record ID returned as data.id by the publish endpoint |
| Authorization | header | Yes | Bearer followed by the team's Team API Key |
| X-Lang | header | No | Response language, for example zh_CN or en |
curl --request GET 'https://api.socialecho.net/v1/publish/article/123456' \
--header 'Authorization: Bearer se_your_team_api_key' \
--header 'Accept: application/json' \
--header 'X-Lang: en'
Successful response example (illustrative values)
{
"code": 0,
"message": "Success",
"data": {
"id": 123456,
"article_id": 987654,
"account_id": 12345,
"status": {"value": 0, "label": "Draft"},
"state": "draft",
"is_published": false,
"is_under_review": false,
"url": null,
"failure_reason": null,
"scheduled_at": null,
"published_at": null,
"created_at": "2026-11-04T09:13:32+00:00",
"updated_at": "2026-11-04T09:48:01+00:00"
},
"request_id": "example-request-id"
}
| Field | Description |
|---|---|
| id | Publishing-record ID used in this endpoint's path |
| article_id | SocialEcho post ID, distinct from the publishing-record ID |
| account_id | Publishing account ID |
| status | Underlying status value and localized label; prefer state for business logic |
| state | Normalized state, listed below |
| is_published | Whether public publication has been confirmed; submission or delivery alone does not imply public publication |
| is_under_review | Whether the record is under review |
| url | Public URL when publication is confirmed and a URL is available; otherwise null |
| failure_reason | May contain a reason for failure or an unknown outcome; otherwise null |
| scheduled_at, published_at | Scheduled time and confirmed publication time, or null where not applicable |
| created_at, updated_at | Creation and update timestamps in UTC ISO 8601 format |
| state | Meaning |
|---|---|
| draft | Draft |
| under_review | Awaiting review |
| scheduled | Scheduled |
| queued | Submitted and waiting for processing |
| publishing | Publishing in progress |
| processing | Platform processing or awaiting confirmation |
| published | Confirmed publicly published |
| failed | Publication failed |
| outcome_unknown | Final outcome unknown; verify on the platform before resubmitting |
| inbox_delivered | Delivered to the TikTok draft inbox; public publication is not confirmed |
| split | Publishing task split state |
HTTP 2xx with business code = 0 confirms a successful query, not successful publication. Check state and is_published. A missing, inaccessible, or deleted record may return HTTP 404; authentication and permission failures use their corresponding HTTP status and business code. Preserve request_id for failures and do not immediately repeat a publication whose outcome is unknown.
Authenticate with the Team API Key and send no body. The response describes media requirements by platform and publishing type. It neither submits a post nor requests a third-party status refresh. Treat the static tables above as a quick reference, not the only validator.
Unlike the post list in §5.4, this reads post reports and their metrics. Filter by account_ids in the current team. Provide at least one date input (start_date, end_date, or date); prefer an explicit pair. For one day, use equal date boundaries. Optional time_type: 1 for posts created within the range, 2 for historical posts (default). Send query parameters with GET or JSON with POST; report permissions and history limits still apply.
Authenticate with the Team API Key. All paths below are relative to /v1/interaction. Use the comment ID to reply to a comment and the conversation ID to reply to a direct message.
| Method | Relative path | Purpose |
|---|---|---|
| GET | /comment/conversations | List comment conversations |
| GET | /comment/conversations/{conversation}/comments | List comments in a conversation |
| GET | /comment/{comment} | Get a comment |
| GET | /message/conversations | List direct-message conversations |
| GET | /message/conversations/{conversation} | Get a direct-message conversation |
| GET | /message/conversations/{conversation}/messages | List messages in a conversation |
| POST | /comment/{comment}/reply | Reply to a comment |
| POST | /message/conversations/{conversation}/reply | Reply in a direct-message conversation |
| GET | /replies/{reply} | Read the saved reply result |
account_id or account_ids[], app_id, dates, is_read, and is_replied; comment conversations also accept article_id. For unread only use is_read=0. List per_page must be 1–100. There is no separate mentions endpoint.content; direct-message replies optionally accept message_id. Attachments are unsupported. Send exactly one Idempotency-Key header (1–128 ASCII letters, digits, periods, underscores, colons or hyphens).id, state, billing_state, local_reply_id, and failure_reason. Look up that reply ID. HTTP 202 does not mean the platform sent the reply. For outcome_unknown, do not resend with a new key. Reuse the same key and request for the same operation; a replay does not settle that reply again. Check reply_window in the direct-message conversation details. A closed window or a per-window send limit returns HTTP 410 (41000).account_id for post, report, material-query, and publishing endpoints.page until meta.current_page >= meta.last_page.code, request_id, and key request parameters for troubleshooting.GET /v1/upload/url before assembling attachments.Retry-After. Use bounded backoff for read requests; do not assume publishing requests can be retried safely after a timeout. See §3.4 and §5.13.Q1: How do I determine whether a request succeeded?
Only HTTP 2xx with JSON code = 0 is successful. HTTP 4xx/5xx is a failure, but parse the response for code, error, data, and request_id. Treat HTTP 2xx with a non-zero code as a contract anomaly and record request_id.
Q2: How do I pass account_ids in the query string?
Repeat the bracketed key: account_ids[]=163956&account_ids[]=163955&account_ids[]=28.
Q3: How do I avoid HTTP 429?
Apply the route-specific limit in §3.4, and prefer Retry-After when present. For product-sync cooldown without that header, use data.next_allowed_at or the response message.
Q4: How do I confirm that an account is a TikTok Shop account?
Call /v1/account, verify app.title = "TikTokShop", and confirm status.value = 1.
Q5: Why does a product keyword return no results?
Some product titles are in English. Try the English title or omit keyword to retrieve all products and filter them locally.
Q6: Why is a new video not visible on TikTok immediately after the publishing request succeeds?
Success means the job was submitted. Upload, platform processing, and review are asynchronous. Save the publishing-record ID and request_id for troubleshooting.
Q7: What is the difference between upload_url and public_url?
upload_url is a temporary presigned OSS URL used only to upload the file. Use public_url as attachments[].url in the publishing request.
Q8: Why does the music endpoint not return volume fields?
The trending-music endpoint returns six media fields: url, uuid, cover, title, artist, and duration. Copy all six unchanged to extra.music, then add selection, music_volume, and original_sound_volume, for nine fields total. To play only the selected music on a TikTok Shop video, use music_volume = 50 and original_sound_volume = 0.
Q9: Should Pinterest boards and Reddit communities use id or uuid when publishing?
Use the integer data[].id as extra.category_id. uuid is the platform resource identifier, not the publishing category ID. Reddit flair is separate: when required, send both extra.flair.uuid and extra.flair.title.
Q10: Is an attachment url sufficient?
Yes. Each attachments[] item needs at least the public_url returned by the current OSS upload. Add thumb when a custom video cover is needed. The server fills in media type, size, dimensions, duration, and frame rate from OSS. External CDN URLs, upload_url, expired signed URLs, and URLs outside the configured SocialEcho OSS fail validation.
This document applies to SocialEcho OpenAPI v1. Platform limits may change; refer to the latest API documentation.