API reference
2 endpoints, served at https://orbitwrite.com/api/v1. Each one lists the credentials it accepts, its parameters and every response it can give.
Ideas to write about, each with a draft to start from: body marks what to fill in as {{label: hint, hint}} (also parsed into fields), and a bracketed line opening with Attach or Add is a note to act on and delete. Replace every field before publishing; one left in is reported as a template_field issue on the post. Filter with category and q (title and description). Any credential is served, whatever its scopes.
An API key or OAuth access token as a bearer token, or a signed-in session.
categorystring"behind-the-scenes""story""lesson""how-to""opinion""question""list""promote"qstringAt most 200 characters.
200objectThe categories, in display order, and the matching templates
categoriesobject[]Requiredtemplatesobject[]RequiredidstringRequiredemojistringRequiredtitlestringRequireddescriptionstringRequiredcategorystringRequired"behind-the-scenes""story""lesson""how-to""opinion""question""list""promote"bodystringRequiredThe draft. {{label: hint, hint}} marks a field to replace; a bracketed line opening with Attach or Add is a note to act on and delete.
curl -X GET "https://orbitwrite.com/api/v1/post-templates" \
-H "Authorization: Bearer $ORBITWRITE_API_KEY"{
"categories": [
{
"id": "behind-the-scenes",
"label": "string"
}
],
"templates": [
{
"id": "string",
"emoji": "string",
"title": "string",
"description": "string",
"category": "behind-the-scenes",
"body": "string",
"fields": [
{
"label": "string",
"hints": [
"string"
]
}
]
}
]
}One template by id. Same shape as an entry of GET /post-templates.
An API key or OAuth access token as a bearer token, or a signed-in session.
idstringRequired200objectThe template
templateobjectRequiredidstringRequiredemojistringRequiredtitlestringRequireddescriptionstringRequiredcategorystringRequired"behind-the-scenes""story""lesson""how-to""opinion""question""list""promote"bodystringRequiredThe draft. {{label: hint, hint}} marks a field to replace; a bracketed line opening with Attach or Add is a note to act on and delete.
curl -X GET "https://orbitwrite.com/api/v1/post-templates/{id}" \
-H "Authorization: Bearer $ORBITWRITE_API_KEY"{
"template": {
"id": "string",
"emoji": "string",
"title": "string",
"description": "string",
"category": "behind-the-scenes",
"body": "string",
"fields": [
{
"label": "string",
"hints": [
"string"
]
}
]
}
}