Accounts
Update an account
PATCH
https://postifuse.com/v1/accounts/{id}Moves an account to another profile (it keeps its id, posts and receipts), or decides once what an agent may do on it, without approving each post.
curl --request PATCH \
--url 'https://postifuse.com/v1/accounts/id_1' \
--header 'Authorization: Bearer pf_live_…' \
--header 'Content-Type: application/json' \
--data '{
"agent_mode": "queue_only"
}'
const res = await fetch("https://postifuse.com/v1/accounts/id_1", {
method: "PATCH",
headers: {
"Authorization": "Bearer pf_live_…",
"Content-Type": "application/json"
},
body: JSON.stringify({
"agent_mode": "queue_only"
}),
});
const data = await res.json();
import requests
res = requests.patch(
"https://postifuse.com/v1/accounts/id_1",
headers={"Authorization": "Bearer pf_live_…"},
json={
"agent_mode": "queue_only"
},
)
print(res.json())
{
"id": "acc_tt",
"network": "tiktok",
"profile": "prf_martin",
"agent_mode": "queue_only",
"status": "active"
}
{
"error": "workspace_not_active",
"message": "The workspace for this key is not active yet.",
"docs": "https://postifuse.com/docs/errors/"
}
Headers
AuthorizationstringrequiredBearer followed by a workspace key, a profile key or an OAuth token. See authentication.
Example Bearer pf_live_…
Path parameters
idstringrequiredThe account id.
Body application/json
profilestringMove the account to this profile.
Example prf_martin
agent_modestringdirect (default): agent posts go out. queue_only: they stay drafts or scheduled until a person publishes them. private_first: YouTube uploads private, TikTok posts visible only to the creator.
One of direct queue_only private_first
Example queue_only
Response
200The account
403Workspace not active