Your First Component
There is another first-connector walkthrough in these docs — Build a Custom Connector, which has you scaffold the files by hand with appmixer init example to learn the anatomy. This chapter does the opposite: an agent writes the files against a real API while you read what it produces.
By the end you will have one component that talks to a live service from your machine, through the same authentication your users will use. Nothing is published yet — that needs a decision that belongs in chapter 4.
Decide the auth type before you prompt
Read the service's API documentation for one thing first: how a third-party app is meant to authenticate. Decide that once, before the first prompt — changing it on a connector people already use breaks every existing account (Day-to-Day Work).
Eventbrite offers a private token and OAuth 2.0. A private-token connector works — each user pastes their own token — but on Eventbrite a user can only get one by registering an application first. With OAuth you register one application and your users click Connect. This guide uses OAuth 2.0.
Register the app first
Create an application in the service's developer portal. Most portals ask for metadata that is not checked — Eventbrite wants an Application URL and a Description, and neither has to be real. Leave the OAuth redirect field empty for now; its value does not exist until the connector does.
Eventbrite then issues four values on one screen, with no explanation:
API Key
The OAuth client id — what -c wants
Client Secret
The OAuth client secret — what -s wants
Private Token
Not used by an OAuth connector
Public Token
Not used at all
Nothing on that screen says "client id". Write the mapping down before you start.
Choose a component that cannot come back empty
Do not start with a list. On a new account a list returns nothing, and an empty result is indistinguishable from a broken component — agents and people misread it alike.
Start with an endpoint that always returns exactly one object: /users/me, /me, /account, /whoami. It proves authentication, transport and output mapping in one run. It is also the endpoint your auth module will use to name and validate accounts, so the work is reused.
The prompt
I want to build an Appmixer connector for Eventbrite. Documentation is on eventbrite.com/platform/docs. Start with one component to get my user profile. Authentication is OAuth 2.0.
Four things carry weight: the service, the docs URL, one named component, and the auth type. Add your vendor if it is not appmixer — the agent will not ask, and names everything under the scaffolder's default otherwise. Scope and Research explains why it matters.
The agent then works unattended for a few minutes: it reads the skill's design rules, researches the API, scaffolds the connector, writes the component, reviews its own work and runs appmixer connector validate. When a documentation site renders with JavaScript, as Eventbrite's does, the agent may fall back on other sources or its own knowledge; it should say so, and the live test below settles it.
What it built
Basic Structure explains the hierarchy and the Manifest reference documents every key. Check three things:
auth.jsdeclarestype: 'oauth2'and the authorize and token endpoints, and holds no client id or secret.quota.jsholds limits the service documents — for Eventbrite, 2,000 calls an hour and 48,000 a day. A limit tighter than the service's own fails in ways that look like the service's fault.The icon is a placeholder. The real one is yours to supply — see Scope and Research.
connector validate reports one failing rule, connector-has-makeapicall: every connector is expected to carry a generic "call any endpoint" component. Chapter 3 adds it.
The first human gate
The agent stops with a question like:
Ready to plan and run CLI tests for
eventbrite. Shall I go ahead?
Everything so far touched only your disk; the next step makes real API calls, and the skills draw the line there. Before you say yes, the test needs a token — and getting one is yours to do.
Authorize locally
appmixer test auth login starts a local server on port 2300, opens the consent screen in your browser, and stores the token it gets back for the component tests:
Run it in a terminal of your own. The command line carries your client secret and the CLI prints the access token in full. An agent may suggest running it with Claude Code's ! prefix — that puts both into the conversation.
The redirect URI: read it, do not build it
The service only redirects to a URI you registered, matching byte for byte. The CLI builds it as:
where <service> is the service part of the name, with no vendor and no colon: acme:eventbrite gives /auth/eventbrite/callback, appmixer:google:gmail gives /auth/google/callback.
Do not assemble it yourself, and do not take an agent's word for it — agents get it wrong. The CLI prints the exact value on the line after Opening authentication URL in browser:, as the redirect_uri parameter. Register that, then run the login again. (Running the login with made-up credentials just to see the URL stores them as your client id and secret; run the real login afterwards.)
If the service rejects the redirect URI
A bare 403 page, often from CloudFront. Some providers refuse loopback redirect URIs, Eventbrite among them. Use a hostname that resolves to your machine but is not loopback:
-u (or TEST_SERVER_URL) changes the host in the redirect URI; the local server still listens on that port. lvh.me and 127-0-0-1.nip.io both resolve to 127.0.0.1. Register the rewritten URI.
Redirect URI hostnames must match. Eventbrite shows this when the registered value differs from the one sent in any part, the path included. Compare the two strings character by character.
Once the login succeeds, tell the agent, and answer yes to its question.
Verify
One message on the out port, carrying your own profile with every field the manifest declares, and exit code 0. The agent picks the component name from your prompt; use the directory it created.
That one green run proves the credential, the redirect URI, the stored token, the request and the declared output all at once.
Do not publish this yet
Publishing fixes your vendor — the namespace in every component name — and changing it later renames everything and strands the old copies on the instance. That decision, and the rights to publish, are in chapter 4.
Next: Scope and Research.
Last updated
Was this helpful?
