flayr API
Markdown ยท Full LLM docsPublish, schedule and read your posts from your own code. Every request carries an API key.
Publish or schedule a post
One request posts to your connected accounts now, or books it for later. It needs the Agency plan or higher and a key with the publish scope.
Create a key under API keys (you sign in first), then send it as a Bearer token.
curl -X POST https://flayr.social/api/v2/publish \
-H "Authorization: Bearer $FLAYR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Fresh sourdough is out of the oven. Open until 6.",
"platforms": [
"instagram",
"facebook"
],
"scheduledAt": "2030-01-15T15:00:00Z",
"idempotencyKey": "sourdough-2030-01-15"
}'
- This posts to your real connected accounts.
- scheduledAt must be in the future. Leave it out to post now.
- Send the same idempotencyKey on a retry and the post is not sent twice.
- The full list of fields and answers is under POST /api/v2/publish below.