Documentation

Quickstart for an AI: set up the agent product

For the buyer's own AI: every step of the agent product in order, with the call or tool for each. The AI may do every step; the person types a card and clicks an OAuth consent.

Quickstart for an AI: set up the agent product for a person

You may do every step for the person. The person does two things only: types a card on the payment page, and clicks an OAuth consent when a step needs one. Every payment is the person's: the card, money added, a seller's invoice. You give the one link. When a step needs the person on another site (a Claude routine on claude.ai, in step 8), give ONE link and stay with the person. You stay in charge: give the link, check the result, and go on. The agent product is on https://agent.linkio.com. Linkio's agents do the link work for the person's brand. You drive the account for the person.

The steps, in order

  1. Sign up. POST https://agent.linkio.com/api/signup with email, password, name, website and firstMessage (the person's sentence). The answer is 202. Do not use www.linkio.com: it makes another product. Every answer: Sign up as an agent.
  2. Verify. Ask the person for the code in the mail "Verify Your Email Address - Linkio", and tell them not to click the link. POST https://agent.linkio.com/api/signup/verify with {"token":"<the code>"}. The answer is 201 with apiKey (it starts with acc_). Keep it in a file or an environment variable, never in the chat.
  3. Connect. claude mcp add --transport http linkio https://mcp.linkio.com/mcp --header "Authorization: Bearer <your key>". Other clients: server URL https://mcp.linkio.com/mcp, header Authorization: Bearer <your key>.
  4. account_me. It gives the account and the brands. Ids come from tool results.
  5. Setup. Save what the person told you: the brand with client_create (name, website), and its pages with target_pages_add (autoGenerate: false: keyword writing is a paid step). The market context and the brand brief are two different things. client_market_context_update saves the market context (what the brand sells, and to whom). brand_brief_save saves the brand brief that writers read, and brand_brief_get reads it. Tell the person which one you saved.
  6. The plan. The plan comes from the setup chat: our agent reasons the mix of pages there. You talk to the setup chat with your key. agents_setup_start gives the id of the chat (conversation_id in its answer) (the chat starts at verify when the sign-up had a firstMessage). agents_conversation reads our agent's answer, and agents_reply answers for the person, with their words and choices. Each answer of our agent takes a few minutes: you can do step 7 meanwhile. Our agent makes the draft plan there. Read the plan with link_plan_get. The person can open the same chat on https://agent.linkio.com/account/agents with the password you used at sign-up.
  7. Payment. GET https://agent.linkio.com/api/account/agent-connections with your key gives agentPlan.planId. POST https://agent.linkio.com/api/subscriptions/checkout with {"planId":"<agentPlan.planId>","isSelfServe":true} answers checkoutUrl, a Stripe page. Give the person that one link. They type the card there. Then read agentPlan.subscribed from the same GET each minute, and go on when it is true. A 404 or a 410 means the agent plan is not open for this account yet: tell the person to write to info@linkio.com. A 409 means the plan is paid already.
  8. Runtime and Claude login. Our agents run on a Claude login of the person. activation_status says where the account stands and names the next step in next. There are two ways. If you run in the person's Claude Code with the Linkio plugin, you can be the runtime. Call agent_connection_add with kind "claude_code" (over HTTP: POST https://agent.linkio.com/api/account/agent-connections with {"runnerTypeKey":"claude_code_pull"}). It needs no routine and no token, and it is Live at once. Then run the plugin's skill linkio-run-agent-jobs on a schedule, for example every 15 minutes. Each run takes the next job with agent_jobs_pull and works it. The agents run while that computer runs the skill. Or use a Claude routine of the person on claude.ai. Give the person one link, https://agent.linkio.com/account/agents/activate: it shows each click, and the routine takes about 5 minutes. Stay with the person. Then save the routine id and its token with agent_connection_add, start the test with agent_connection_test, and read the result with agent_connection_status. Do not repeat the token in your messages, logs or files. The agents start after the payment and a Live Claude login. Call activation_status after each step and do the step that it names.
  9. Mailbox. For outreach from the person's own mailbox, ask one time for the address and its app password. mail_settings_lookup finds the mail servers, and own_sender_connect connects it. If this is not open for the account yet, the tool says so. Do not repeat the password in your messages, logs or files.
  10. Limits. usage_limits_get reads them. The default monthly budget is $50, a hard stop: paid work stops there. Tell the person this before the agents start. After the person's yes, you change a limit with usage_limits_update (PUT https://agent.linkio.com/api/account/usage-limits): the key from sign-up holds the scope billing:write. A 403 SCOPE_DENIED means that your key does not hold the scope (a key from before 2026-11-24, or a key that the person made without it). Then use the account sign-in: the person signs in and allows Linkio one time (an OAuth consent). In claude.ai or ChatGPT that is the Linkio connector (Connect an agent). In Claude Code, a sign-in without the key header is not tested yet. Without the sign-in, the person sets the limit on one link, https://agent.linkio.com/billing#limits.
  11. First sites. Each month our agents search for the plan's sites, check each one and bring it with its price. Before the first paid search of the month our agent asks one time, with the cost on the card: "Find the sites" or "Not this month". account_waiting_list shows the question. Tell the person the cost and wait for their yes. Then answer with account_waiting_answer (optionIndex 0 starts the search). The usage limits apply the same way as for a tap in the app. Then you read the sites and go on.
  12. The daily loop. account_waiting_list and account_waiting_answer list and answer the questions of sellers. The questions from our agents: agents_needs_me lists them, agents_answer gives the button that the person chose (a note can go with it), and agents_reply writes an answer as a sentence. All of these work with your key: it acts as the account owner (scope agents:answer; the key from sign-up has it), and each answer is recorded as made with an API key. Tell the person what waits and what you suggest. To give our agent an instruction for a brand ("Tell your agent"), send {"text":"<the instruction>"} to POST https://agent.linkio.com/api/account/agent-home/brands/<brand id>/tell with your key.
  13. The report. client_report_sends_list gives the weekly reports, and account_activity_feed gives what happened.

Before a paid step, tell the person the cost and wait for their yes. That is a question, not a stop: The rules your agent gets.

Money

Free: the sign-up, the setup chat, the brand, the pages and the draft plan. No card. Paid: the agent plan ($99 a month, with a $30 plan allowance each paid month), each link at its site's price, and the person's own paid claude.ai plan with Claude Code. All of it: The agent plan and what you pay.

What you tell the person

  • At the card: "Here is the Stripe page for the Linkio agent plan, $99 a month: <checkoutUrl>. Type your card there. I will see when it is paid and go on."
  • At an OAuth consent: "A window from Linkio is open. Please sign in and allow Linkio one time, so I can do this step for you."
  • When the person must open a link: "Please open this one link: <link>. I will go on when it is done." Give one link at a time, and say what you do meanwhile. Do not tell the person that you cannot go further.

This page as markdown: /docs/agents/quickstart-for-ai.md. All pages for agents: /llms.txt.