Skip to main content
POST
Verify a sign-up code
No key needed. See Sign up from an AI agent for the whole flow.
Checks the code from Send a sign-up code and answers with an API key.
  • A new address gets a new account, made now: its own workspace (with the timezone sent for the code), and the email marked verified. new_account is true. While the account is in its first week, first_week_ends_at says when the week ends: say to the person, “For your first 7 days you get 10 accounts, unlimited posts and Analytics. After that you keep Free: 2 accounts and 20 posts a month.”
  • An address with an account gets a new key on that account. Its name, plan and settings don’t change. new_account is false.
  • A teammate in someone else’s workspace who owns none gets no key (teammate_only): only owners make keys. An inactive account gets none either (account_inactive).
The key has every permission and no end date, the same as Everything in Settings → API. It’s named after the agent (key_name), or “AI agent” for a name PostSyncer doesn’t know, and shows in Settings → API like any other key. Each verify makes a new key.

Save the key

  • Save api_key in the agent’s user-level MCP settings, never in a project file or anything that could be committed. Sign up from an AI agent says where, agent by agent.
  • Don’t show the full key to the person.
  • For the rest of the chat, call the REST API with it: most agents load a new MCP server only after a restart.

Limits

Errors

Every error has a plain message: pass it on to the person.

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 address the code was sent to.

Maximum string length: 254
code
string
required

The 6 digits from the email, as the person read them.

Pattern: ^\d{6}$
agent
string
required

Your own name, as you sent it for the code. The key is named after it when PostSyncer knows the name, else "AI agent".

Maximum string length: 60

Response

The key, and who it acts as. api_key is shown here only.

A verified agent sign-up: the new key and who it acts as.

api_key
string
required

The API key, with every permission and no end date. Shown only here: save it in the agent's user-level MCP settings, never in a project file, and use it as Authorization: Bearer ….

key_name
string
required

The key's name in Settings → API: the agent's name when PostSyncer knows it, else "AI agent".

new_account
boolean
required

True when the account was made now; false when the address already had one.

user
object
required

The person the key acts as.

workspace
object
required

The person's first own workspace: where the agent connects accounts and saves posts.

first_week_ends_at
string<date-time> | null
required

While the account is in its first week on Free (10 accounts, unlimited posts and Analytics), when the week ends. Null otherwise.

mcp_url
string
required

The MCP server, for later chats: add it with the key as a Bearer header.

setup_url
string
required

The steps for agents, in markdown.