Omit mediaItems entirely (or send an empty array) and the request is treated as a text post. The content field is required and must not be blank: a whitespace-only caption counts as empty. The example response below is the Threads text post; mediaType is text and mediaUrls and fileIds are empty arrays.
const API_BASE_URL = 'https://api.wahdx.com';
const API_KEY = process.env.WAHDX_API_KEY;
const headers = {
'X-API-Key': API_KEY,
'Content-Type': 'application/json'
};
// Threads text-only post
await fetch(API_BASE_URL + '/api/content/post', {
method: 'POST',
headers,
body: JSON.stringify(
{
"platform": "threads",
"accountId": "THREADS_ACCOUNT_ID",
"content": "Threads text-only post with no media attached",
"threadsSettings": {
"who_can_reply": "everyone"
}
}
)
});
// Facebook Page text-only post
await fetch(API_BASE_URL + '/api/content/post', {
method: 'POST',
headers,
body: JSON.stringify(
{
"platform": "facebook",
"accountId": "FACEBOOK_ACCOUNT_ID",
"content": "Facebook Page text-only post with no media attached"
}
)
});
import os
import requests
API_BASE_URL = 'https://api.wahdx.com'
API_KEY = os.environ['WAHDX_API_KEY']
headers = {
'X-API-Key': API_KEY,
'Content-Type': 'application/json',
}
# Threads text-only post
response = requests.post(
API_BASE_URL + '/api/content/post',
headers=headers,
json={
'platform': 'threads',
'accountId': 'THREADS_ACCOUNT_ID',
'content': 'Threads text-only post with no media attached',
'threadsSettings': {
'who_can_reply': 'everyone'
}
},
timeout=30,
)
# Facebook Page text-only post
response = requests.post(
API_BASE_URL + '/api/content/post',
headers=headers,
json={
'platform': 'facebook',
'accountId': 'FACEBOOK_ACCOUNT_ID',
'content': 'Facebook Page text-only post with no media attached'
},
timeout=30,
)
# Threads text-only post
curl -X POST "https://api.wahdx.com/api/content/post" \
-H "X-API-Key: $WAHDX_API_KEY" \
-H "Content-Type: application/json" \
--data-raw '{
"platform": "threads",
"accountId": "THREADS_ACCOUNT_ID",
"content": "Threads text-only post with no media attached",
"threadsSettings": {
"who_can_reply": "everyone"
}
}'
# Facebook Page text-only post
curl -X POST "https://api.wahdx.com/api/content/post" \
-H "X-API-Key: $WAHDX_API_KEY" \
-H "Content-Type: application/json" \
--data-raw '{
"platform": "facebook",
"accountId": "FACEBOOK_ACCOUNT_ID",
"content": "Facebook Page text-only post with no media attached"
}'
Example response · 200
{
"success": true,
"requestId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"requestStatus": "succeeded",
"accountId": "THREADS_ACCOUNT_ID",
"platform": "threads",
"status": "PUBLISH_COMPLETE",
"data": {
"id": "17890000000000001",
"success": true,
"publish_id": "17890000000000001",
"public_post_url": "https://www.threads.com/@wahdx_threads/post/CxText"
},
"mediaType": "text",
"mediaUrls": [],
"fileIds": [],
"public_post_url": "https://www.threads.com/@wahdx_threads/post/CxText"
}