Skip to main content
POST
Send a sign-up code
No key needed. This is how an AI agent gets a person’s first key. See Sign up from an AI agent for the whole flow.
Emails a 6-digit code to the address. The person reads it back to the agent, who sends it to Verify a sign-up code and gets an API key. Before asking for the address, the agent tells the person: “By signing up you agree to PostSyncer’s Terms and Privacy Policy.” Then it asks for the email, and nothing else.
  • The answer is the same whether or not the address has an account. No account is made here: it’s made when the code is verified.
  • A code works for 10 minutes and once. Asking again replaces it: the earlier code stops working.
  • Send the agent’s own name in agent. When PostSyncer knows it (Claude Code, Codex, Cursor, OpenClaw, Gemini CLI, Claude, ChatGPT, VS Code, Windsurf, Hermes, Grok Bot, Grok), the email says “Enter it in Claude Code”. Any other name is “your AI agent”.
  • Send the computer’s time zone in timezone, read from the system. A new account’s workspace gets it.
The email’s subject and first line are Your PostSyncer code is 482913, so Gmail offers to copy the code.

Limits

Over a limit, no email is sent and the answer is 429 with error: rate_limited. PostSyncer also sends a set number of codes a day in all; past it, the answer is the same 429.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string<email>
required

The person's email address. Ask them for it; ask for nothing else.

Maximum string length: 254
agent
string
required

Your own name, such as Claude Code, Codex, Cursor, OpenClaw or Gemini CLI. The email and the key are named after it when PostSyncer knows the name; any other name is "your AI agent" in the email and "AI agent" on the key.

Maximum string length: 60
timezone
string | null

The computer's time zone, as an IANA name such as Europe/Berlin. Read it from the system; don't ask. A new account's workspace gets it; otherwise UTC. A name that isn't a time zone is left out, not refused.

language
string | null

The person's language code, such as en. A new account's workspace gets it; otherwise en.

Maximum string length: 10

Response

The code is on its way. The same answer whether or not the address has an account.

A sign-up code was sent.

message
string
required

Plain words to pass on to the person.

expires_in
integer
required

Seconds the code works for: 600.