← Reddit Post Checker
Your token

Reddit Post Checker API

Checking a post, the preview, the fixed copy and the downloads all run free in the browser and are not part of this API. The API runs the one metered step: rewriting a draft so it fits the subreddit.

Base URL: https://api.skillsafe.ai/v1/app-api. Every response is an envelope {"data": ..., "error": null} or {"data": null, "error": {"code", "message"}}.

The task field

This app has one task. Always send "task": "rewrite".

taskWhat it doesReply
rewriteRewrites the post for the subreddit, keeping the author's facts: three title options, a value-first body, a flair from the pasted rules, an optional first comment, what changed and what to check.One JSON object

The input

All values are strings. task is required; send "" for anything you do not have.

FieldWhat to send
task"rewrite"
subredditThe subreddit name without r/, e.g. running, or "".
goalshare, ask, promote, or "" to let the model judge from the draft.
titleThe draft title.
bodyThe draft body in Reddit Markdown. The page sends at most 12,000 characters, dropping the middle of a longer post with a marker.
findingsThe page's check, one per line: fix | ..., improve | ..., note | ... or good | ....
linksEvery web address in the draft, one per line.
rulesThe subreddit's rules as pasted (at most 3,000 characters), or "".
clip_noteEmpty, or a sentence saying what was left out of a long post or long rules.

The reply

job.output.output is text holding one JSON object: titles (three strings), body (Markdown), flair (a flair the rules name, or ""), first_comment (or ""), changes (strings) and watch (strings, things to check before posting). Before using it, check that every link in it is one you sent (or the same address with a referral or tracking parameter removed), that it adds no number or name your draft does not have, and that the flair appears in the rules. The page does exactly that, and shows what it refused.

Worked examples

The three examples on the page, each with the exact input the page sends and a model reply.

An ad-like launch post (with pasted rules)

Input:

{
  "task": "rewrite",
  "subreddit": "SaaS",
  "goal": "",
  "title": "I BUILT THE BEST INVOICE TOOL FOR FREELANCERS! 🚀🚀",
  "body": "Hey everyone!\n\nAfter 6 months of nights and weekends I finally launched Billowly, my invoicing app for freelancers.\n\nIt is a total game-changer for anyone who hates chasing late payments.\n\nFeatures:\n\n- Recurring invoices\n- Automatic payment reminders\n- Expense tracking\n\nCheck it out here: https://bit.ly/billowly-launch\n\nSign up this week and use code LAUNCH30 for 30% off your first year. Limited time only!\n\nIf you like it please upvote so more freelancers see it 🙏",
  "findings": "fix | The post asks for votes (\"upvote\"). That breaks Reddit's rules on vote manipulation and gets posts removed.\nfix | Shortened link (bit.ly). Reddit's spam filter often removes posts with link shorteners. Use the full address.\nfix | 4 sentences of 7 promote something (57%). Reddit's rule of thumb is 90% value, 10% promotion; this reads as an ad and is likely to be removed or downvoted.\nfix | The rules you pasted ban self-promotion, and this post promotes something. Remove the promotion or post it somewhere that allows it.\nimprove | The title is mostly capital letters. It reads as shouting; use normal case.\nimprove | The title has 2 emoji. Most subreddits read that as marketing; keep the title in words.\nimprove | The title promotes (says you made it). Lead with what readers get, not with what you sell.\nimprove | Nothing in the post asks readers anything. End with one specific question to start the replies.\nimprove | Ad words (game-changer) make it read like an advert. Say what it does in plain words.\nimprove | Sales calls to action (sign up, a discount code, a percentage off, urgency). On Reddit these read as an advert; if the sub allows it, one soft mention at the end is enough.\nnote | The rules mention flair. Pick the right flair when you post, or the post may be removed.",
  "links": "https://bit.ly/billowly-launch",
  "rules": "1. No self-promotion outside the weekly Share Your Startup thread.\n2. Every post needs a flair: Question, Discussion, Feedback or Share Your Startup.\n3. No low-effort posts.",
  "clip_note": ""
}

Reply:

{
  "titles": [
    "How do freelancers deal with chasing late invoice payments?",
    "What helps you stop chasing late payments as a freelancer?",
    "Freelancers, how do you handle recurring invoices and payment reminders?"
  ],
  "body": "Hey everyone!\n\nI have been thinking about invoicing for freelancers, and chasing late payments seems to be the part people hate most.\n\nA few things I would like to hear about:\n\n- Recurring invoices for clients who pay on a regular basis\n- Automatic payment reminders instead of writing each follow-up by hand\n- Keeping track of expenses next to your invoices\n\nWhich of these actually saves you time, and which turned out to be more hassle than it was worth? And is there a way of dealing with late payers that works better than all of them?",
  "flair": "Question",
  "first_comment": "",
  "changes": [
    "Turned the launch announcement into a question about late payments, because the pasted rules ban self-promotion.",
    "Removed the product name, the bit.ly link, the discount code and the upvote request.",
    "Replaced the all-caps, emoji title with three plain titles about chasing late invoice payments.",
    "Turned the feature list into discussion topics and ended with a specific open question."
  ],
  "watch": [
    "The rules allow promotion only in the weekly Share Your Startup thread, so post your app there with the full link.",
    "The draft link was a bit.ly shortener, so add the full address if you share it in that thread.",
    "Add what you have already tried with late payers, so readers can give more useful answers."
  ]
}

On the page, every title, the body and the first comment are checked against the draft (no new link, number or name, no vote requests, emoji or hashtags), the flair against the pasted rules, and the rewrite is run through the same free check as the draft.

A vague question

Input:

{
  "task": "rewrite",
  "subreddit": "HomeImprovement",
  "goal": "",
  "title": "Help?",
  "body": "Brown stain spreading on the kitchen ceiling under the upstairs bathroom.\n\nIt feels soft when I press it.",
  "findings": "improve | The title is very short. Say what the post is about, so the right people stop for it.\nimprove | The body is only 18 words. Add the details someone needs to answer or reply.",
  "links": "",
  "rules": "",
  "clip_note": ""
}

Reply:

{
  "titles": [
    "Brown stain spreading on kitchen ceiling under the upstairs bathroom, soft to the touch",
    "Soft brown stain on my kitchen ceiling below the upstairs bathroom, what should I check first?",
    "Kitchen ceiling stain is spreading and feels soft, right under the upstairs bathroom"
  ],
  "body": "There's a brown stain spreading on my kitchen ceiling, right under the upstairs bathroom.\n\nThe spot feels soft when I press on it.\n\nWhat should I check first, and is this something to fix myself or a job for a pro?",
  "flair": "",
  "first_comment": "",
  "changes": [
    "Replaced the one-word title \"Help?\" with titles that name the brown stain, the kitchen ceiling and the upstairs bathroom.",
    "Turned the two bare lines into a short first-person post that keeps the stain, its spreading and the soft spot.",
    "Added a closing question about what to check first and whether to hire a pro, so readers know how to answer."
  ],
  "watch": [
    "Add how long the stain has been there and whether it has grown, since commenters will ask.",
    "Say whether the upstairs bathroom has any known leak or recent plumbing work, if you know.",
    "Consider adding a photo of the ceiling, because it helps people judge the damage."
  ]
}

On the page, every title, the body and the first comment are checked against the draft (no new link, number or name, no vote requests, emoji or hashtags), the flair against the pasted rules, and the rewrite is run through the same free check as the draft.

A long story with a link

Input:

{
  "task": "rewrite",
  "subreddit": "running",
  "goal": "",
  "title": "From the couch to my first half marathon in 14 months: what actually worked for me",
  "body": "Two years ago I could not run to the end of my street without stopping. Last Sunday I finished my first half marathon in 2:11, and a few people at my club asked what I did, so here is the honest version.\n\nI started with run-walk intervals: one minute running, two minutes walking, three times a week. It felt silly at first.\n\nI kept every run slow enough to talk, and I only made one thing harder each week, either a bit more time or one more day, never both.\n\nWhat made the biggest difference:\n\n1. Running at conversation pace for almost every run. My easy runs got faster on their own after about four months.\n2. Going to bed at the same time every night. I missed far fewer runs once I stopped staying up late.\n3. Strength work twice a week, just squats, lunges and calf raises for fifteen minutes. My knee pain went away.\n4. Signing up for a race eight weeks out, so I had a date to aim at.\n\nWhat did not help: buying expensive gear early, chasing pace on group runs, and trying a fancy plan that had me running six days a week. I got shin splints in week three of that plan and lost a month.\n\nFor the last twelve weeks I followed a free beginner plan I found here: https://trailnotes.example/half-plan?ref=tom22 and I mostly stuck to it, except I swapped the Friday run for a long walk when my legs felt heavy. Race day was harder than I expected after mile ten, but I never walked, which was my only real goal. I cried a little at the finish, not going to lie.\n\nIf you are starting from zero, my advice is to go slower than feels right and to keep showing up, even for twenty minutes. Consistency beat every clever trick I tried.\n\nFor those of you who have done a few halves: what should I change for the next one, if I want to get closer to two hours?",
  "findings": "improve | At 341 words, add a one-line TL;DR at the top or bottom for people who skim.\nimprove | 1 link carries a referral or affiliate code (ref). Many subreddits remove referral links; take the code out or say plainly that it is yours.\ngood | The post ends with a question, which gives people a reason to reply.",
  "links": "https://trailnotes.example/half-plan?ref=tom22",
  "rules": "",
  "clip_note": ""
}

Reply:

{
  "titles": [
    "From the couch to my first half marathon in 14 months: what actually worked for me",
    "Finished my first half marathon in 2:11 after starting from zero, here is what helped",
    "Couch to half marathon: the slow, boring things that worked for me"
  ],
  "body": "TL;DR: Two years ago I could not run to the end of my street. Last Sunday I finished my first half marathon in 2:11. Going slow, sleeping on a schedule, a little strength work and a race date did more than any clever trick.\n\nTwo years ago I could not run to the end of my street without stopping. Last Sunday I finished my first half marathon in 2:11, and a few people at my club asked what I did, so here is the honest version.\n\nI started with run-walk intervals: one minute running, two minutes walking, three times a week. It felt silly at first.\n\nI kept every run slow enough to talk, and I only made one thing harder each week, either a bit more time or one more day, never both.\n\nWhat made the biggest difference:\n\n1. Running at conversation pace for almost every run. My easy runs got faster on their own after about four months.\n2. Going to bed at the same time every night. I missed far fewer runs once I stopped staying up late.\n3. Strength work twice a week, just squats, lunges and calf raises for fifteen minutes. My knee pain went away.\n4. Signing up for a race eight weeks out, so I had a date to aim at.\n\nWhat did not help: buying expensive gear early, chasing pace on group runs, and trying a fancy plan that had me running six days a week. I got shin splints in week three of that plan and lost a month.\n\nFor the last twelve weeks I followed a free beginner plan I found here: https://trailnotes.example/half-plan and I mostly stuck to it, except I swapped the Friday run for a long walk when my legs felt heavy. Race day was harder than I expected after mile ten, but I never walked, which was my only real goal. I cried a little at the finish, not going to lie.\n\nIf you are starting from zero, my advice is to go slower than feels right and to keep showing up, even for twenty minutes. Consistency beat every clever trick I tried.\n\nFor those of you who have done a few halves: what should I change for the next one, if I want to get closer to two hours?",
  "flair": "",
  "first_comment": "",
  "changes": [
    "Added a one-line TL;DR at the top, since the post is long and people skim.",
    "Removed the ref=tom22 referral code from the beginner plan link and left the rest of the address as written.",
    "Kept your story, numbers, list and closing question as they were, since they already read like a real runner talking."
  ],
  "watch": [
    "You did not paste any rules for r/running, so check its rules on links and post format before posting.",
    "Readers may want to know your weekly mileage near the end of training, which the draft does not say."
  ]
}

On the page, every title, the body and the first comment are checked against the draft (no new link, number or name, no vote requests, emoji or hashtags), the flair against the pasted rules, and the rewrite is run through the same free check as the draft.

Errors

HTTPWhat to do
401The token is missing, expired or a guest token on a run. Get a personal token on the token page.
402The balance is below what the run reserves. Top up at skillsafe.ai/account/billing.
400The body is not a JSON object of the fields above.
429Wait and retry with the same Idempotency-Key.

Step 1 — a tiny client helper

One function that sends JSON and unwraps the {data, error} envelope.

BASE="https://api.skillsafe.ai/v1/app-api"
TOKEN="paste-your-token-here"   # from https://reddit-post-checker.skillsafe.ai/tokens.html
api() { # api METHOD PATH [JSON-BODY]
  curl -s -X "$1" "$BASE$2" -H "Content-Type: application/json" \
    ${TOKEN:+-H "Authorization: Bearer $TOKEN"} ${3:+--data "$3"}
}

Step 2 — a token

A guest token is enough for /me and /estimate. A run is metered, so it needs your personal token: sign in on the token page and copy it.

# a guest token (enough for /me and /estimate); a run needs your personal token from /tokens.html
TOKEN=$(curl -s -X POST "$BASE/guest" -H "Content-Type: application/json" -d '{"slug":"reddit-post-checker"}' | jq -r '.data.token')

Step 3 — who am I, and my balance

subject_type is guest or user; credits is the balance (1 credit = $0.0001).

api GET /me | jq '.data | {subject_type, credits}' 

Step 4 — price a run for free

/estimate charges nothing and starts no job. hold_credits is the amount reserved while a run is in flight, not the price; the run is charged what it uses.

# input.json: the run input object - {"task": "rewrite", "subreddit": "running", "goal": "", "title": "From the couch to my first half marathon in 14 months: what actually worked for me", "body": "Two years ago I could not run to the end of my street without stopping. Last Sunday I finished my first half marathon in 2:11, and a few people at my club asked what I did, so here is the honest version.\n\nI started with run-walk intervals: one minute running, two minutes walking, three times a week. It felt silly at first.\n\nI kept every run slow enough to talk, and I only made one thing harder each week, either a bit more time or one more day, never both.\n\nWhat made the biggest difference:\n\n1. Running at conversation pace for almost every run. My easy runs got faster on their own after about four months.\n2. Going to bed at the same time every night. I missed far fewer runs once I stopped staying up late.\n3. Strength work twice a week, just squats, lunges and calf raises for fifteen minutes. My knee pain went away.\n4. Signing up for a race eight weeks out, so I had a date to aim at.\n\nWhat did not help: buying expensive gear early, chasing pace on group runs, and trying a fancy plan that had me running six days a week. I got shin splints in week three of that plan and lost a month.\n\nFor the last twelve weeks I followed a free beginner plan I found here: https://trailnotes.example/half-plan?ref=tom22 and I mostly stuck to it, except I swapped the Friday run for a long walk when my legs felt heavy. Race day was harder than I expected after mile ten, but I never walked, which was my only real goal. I cried a little at the finish, not going to lie.\n\nIf you are starting from zero, my advice is to go slower than feels right and to keep showing up, even for twenty minutes. Consistency beat every clever trick I tried.\n\nFor those of you who have done a few halves: what should I change for the next one, if I want to get closer to two hours?", "findings": "improve | At 341 words, add a one-line TL;DR at the top or bottom for people who skim.\nimprove | 1 link carries a referral or affiliate code (ref). Many subreddits remove referral links; take the code out or say plainly that it is yours.\ngood | The post ends with a question, which gives people a reason to reply.", "links": "https://trailnotes.example/half-plan?ref=tom22", "rules": "", "clip_note": ""}
api POST /estimate "$(cat input.json)" | jq '.data | {hold_credits, min_credits, model, model_alias, markup_bps, warnings}' 

Step 5 — run it and wait for the job

Send an Idempotency-Key derived from the input: a retry with the same key is never billed twice.

KEY="reddit-post-checker:rewrite:$(shasum -a 256 input.json | cut -c1-16):a1"
JOB=$(curl -s -X POST "$BASE/run" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: $KEY" --data @input.json | jq -r '.data.job_id')
while :; do
  J=$(api GET "/jobs/$JOB"); S=$(echo "$J" | jq -r '.data.status')
  case "$S" in succeeded|failed|cancelled) break;; esac; sleep 2
done
echo "$J" | jq -r '.data.output.output' > reply.json   # one JSON object: titles, body, flair, first_comment, changes, watch
echo "$J" | jq '.data | {charged_credits, truncated}' 

Step 6 — or stream it

/run-stream sends Server-Sent Events while the job runs and the finished job at the end.

# Server-Sent Events: tick/delta events while the job runs, then a final event with the job
curl -N -s -X POST "$BASE/run-stream" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: reddit-post-checker:rewrite:$(shasum -a 256 input.json | cut -c1-16):a1" --data @input.json