API reference
1 endpoint, served at https://orbitwrite.com/api/v1. Each one lists the credentials it accepts, its parameters and every response it can give.
Fetches an RSS/Atom feed, Ghost blog or WordPress site, samples its most recent item, and returns the merge tokens available to a post template built from it.
An API key or OAuth access token as a bearer token, or a signed-in session.
200TriggerDiscoveryTokens discovered on the source
tokensDiscoveredToken[]RequiredtokenstringRequiredMerge token as it appears in a template, e.g. {{title}}.
previewValuestringRequiredThe value this token resolved to on the sampled item, truncated for display.
kindstringRequired"text""url""image""date""list"sampleSourcestringRequiredHuman-readable label for the item the tokens were sampled from, e.g. First feed item · How I built X.
curl -X POST "https://orbitwrite.com/api/v1/triggers/discover" \
-H "Authorization: Bearer $ORBITWRITE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"source": "rss",
"url": "https://example.com"
}'{
"tokens": [
{
"token": "string",
"previewValue": "string",
"kind": "text"
}
],
"sampleSource": "string"
}