Apiosk Connect (Marketplace)
Apiosk Connect is the marketplace track. It lets a third-party marketplace plug its own merchants into the Apiosk payment rail without every merchant integrating the gateway directly. The marketplace owns the customer relationship; Apiosk provides embeddable onboarding, wallet verification, a per-call paywall, and the payout split. Connect is distinct from standalone publishing (see /guides/publishers). A merchant’s billable product is called a skill, and every paid skill call is split three ways: the merchant, the marketplace, and Apiosk’s 2% platform fee.Connect skills are private. They are reachable only through their own
charge_url and never appear in the public catalog (/v1/apis) or in agent
discovery. The two tracks share the payment rail, not the catalog.Keys
A marketplace mints two kinds of key from the portal:| Key | Prefix | Where it lives | Use |
|---|---|---|---|
| Secret key | apk_live_ | server-side only | Register skills, read fees (server-to-server) |
| Publishable key | apk_pub_ | safe to embed in a web page | Powers the “Connect with Apiosk” embed |
1. Set up the marketplace
Create a marketplace in the portal and mint the keys. The first key mint activates the marketplace.2. Onboard a merchant, “Connect with Apiosk”
Drop the embed on your own site. The publishable key identifies the marketplace; the embed opens a hosted, signed onboarding session in the Apiosk portal.POST /v1/connect/embed/start, which validates the publishable
key and returns a short-lived merchant session. The portal wizard then walks
the merchant through three steps:
- Profile,
POST /v1/merchants/profilesaves display name and contact email. - Wallet,
POST /v1/siwe/noncethenPOST /v1/siwe/verifyprove control of an EVM payout address via a Sign-In-With-Ethereum signature. - Activate,
POST /v1/merchants/activaterequires a verified wallet and flips the merchant toactive.
A merchant can only earn once it is active and has a verified payout wallet.
Skill creation and every charge re-check this, an unverified merchant’s skills
cannot be charged.
3. Publish a skill
With the merchant onboarded, register that merchant’s billable product server-to-server with your secret key. Include anIdempotency-Key so retries
never create duplicates.
id and a charge_url. A skill snapshots the fee
split and the merchant’s wallet at creation, so later config changes never
silently re-price an existing product. Use PUT /v1/skills/{id} to change price
or the active flag.
4. Charge a skill and split the payment
An agent calls the skill’scharge_url. Unpaid, it returns an x402 402 that
advertises the gross price and the split; with a valid x-payment proof the
gateway verifies and settles.
| Party | Share |
|---|---|
| Merchant | gross − marketplace fee − 2% |
| Marketplace | its configured fee |
| Apiosk | 2% platform fee |
Connect settles once to the platform wallet and splits at payout time, there is
no on-chain splitter contract to integrate.
Related links
- Publishers (standalone): /guides/publishers
- Payment model: /overview/payment-model
- Boundaries: /guides/boundaries