agents.writerslogic.com/api/v1/platform-text-fit
Checks up to 50 texts per call against a platform limit, for an agent writing a message, post, store listing, ad or push payload that must not be truncated or split. sms: GSM 7 bit vs UCS-2 and the exact segment boundaries per 3GPP TS 23.038 (extension characters cost 2 septets and never straddle a segment; an emoji is 2 UTF-16 units). x: weighted length per the open-source twitter-text config v3
POST
https://agents.writerslogic.com/api/v1/platform-text-fitUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/platform-text-fit", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"items":[{"text":"Your code is 123456","platform":"sms"},{"text":"Plan trips with friends and split every bill","field":"subtitle","platform":"app-store"},{"text":"Shipping today: https://example.com/release-notes","platform":"x"}]}),
});
console.log(await res.json());Example input
{
"items": [
{
"text": "Your code is 123456",
"platform": "sms"
},
{
"text": "Plan trips with friends and split every bill",
"field": "subtitle",
"platform": "app-store"
},
{
"text": "Shipping today: https://example.com/release-notes",
"platform": "x"
}
]
}