Agent sign-up
Verify a sign-up code
Check the code the person read back and get an API key with every permission.
POST
Verify a sign-up code
No key needed. See Sign up from an AI agent for the whole flow.
- A new address gets a new account, made now: its own workspace (with the
timezonesent for the code), and the email marked verified.new_accountistrue. While the account is in its first week,first_week_ends_atsays 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_accountisfalse. - 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).
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_keyin 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.
Related
- Send a sign-up code: the step before.
- Create a connect link: connect the person’s social accounts next.
Authorizations
Body
application/json
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.