Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the AffiliateRail API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Faffiliaterail.com%2Faffiliaterail" | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Faffiliaterail.com%2Faffiliaterail" | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with AffiliateRail API.
Create and update partners, groups, and tracking links within a program
Record clicks, referrals, and sales and attribute earnings through commission rules
Approve, reject, or create manual commissions and read what matures between two dates
Generate payout batches, mark payouts paid, and read balances per partner
Register signed webhook endpoints, replay deliveries, and rotate signing secrets
GET STARTED
Find and save prospect brands, reveal a prospect's email, and move prospects through a recruitment pipeline
Patterns agents use AffiliateRail API for, with concrete tasks.
★ Agent-Managed Affiliate Operations via Jentic
An AI agent can run the day-to-day of an affiliate program instead of a human clicking through a dashboard. Through Jentic the agent records a sale, lets commission rules attribute the earning, approves the commission once it is valid, and later generates a payout batch, each write carrying an idempotency key so a retry never double-counts.
Record a sale for a partner, approve the resulting commission once it is valid, and generate a payout batch for all approved commissions
Commission and Payout Lifecycle
AffiliateRail tracks earnings from attribution to payment. Commission rules compute earnings on sales in integer minor units with an explicit currency, commissions can be approved or rejected and queried for what matures between two dates, and balances roll up into payouts and generated payout batches that can be marked paid.
List the commissions maturing in a date range, then generate a payout batch and mark its payouts paid once settled
Partner Recruitment with Finder
The finder surface helps grow a program by sourcing new affiliates. An agent searches prospect brands, saves promising ones, reveals a prospect's email, adds notes, and moves prospects through pipeline stages and lanes, with credit balances tracking email reveals so recruitment stays within budget.
Search finder prospects for matching brands, save the best ones, reveal a prospect's email, and move it to the next pipeline stage
151 endpoints — the affiliaterail api runs an affiliate and partner program over one consistent rest contract, exposing every object in the product as an addressable resource.
METHOD
PATH
DESCRIPTION
/v1/partners
List partners
/v1/partners
Create a partner
/v1/commissions
List commissions
/v1/commissions/{id}/approve
Approve a commission
/v1/sales
List sales
/v1/payout_batches
Generate a payout batch
/v1/links
List links
/v1/partners
List partners
/v1/partners
Create a partner
/v1/commissions
List commissions
/v1/commissions/{id}/approve
Approve a commission
/v1/sales
List sales
/v1/payout_batches
Generate a payout batch
/v1/links
List links
What agents get from Jentic-routed access to this vendor.
Setup
Wiring AffiliateRail by hand means learning its bearer key with the rail_live_ or rail_test_ prefix, passing program_id on every list, and sending an Idempotency-Key on writes so a retry does not record the same sale twice. Through Jentic you install once, import AffiliateRail from the API Directory, store the key once, and your agent manages partners and commissions.
Permission scoping
AffiliateRail puts the partner id in the URL path (/v1/partners/{id}), so a rule can pin your agent to one partner and the operations you choose, such as reading sales and approving commissions. You decide which operations it may call, so deleting partners or marking payouts paid stays out unless you add it.
Credential isolation
Your AffiliateRail key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
Intent-based discovery
Agents search Jentic by intent such as 'approve an affiliate commission' or 'generate a payout batch', and Jentic returns the matching AffiliateRail operation with its input schema so the agent calls the right endpoint directly.
Alternatives and complements available in the Jentic catalogue.
Specific to using AffiliateRail API through Jentic.
What authentication does the AffiliateRail API use?
The AffiliateRail API authenticates with a key sent as a bearer token in the Authorization header, per its OpenAPI spec. A test-mode key stamps responses as test but reads and writes the same data as a live key, so the prefix labels the key rather than separating the rows. Through Jentic the key is stored encrypted on your own instance and injected at call time.
Is there an AffiliateRail MCP server?
You don't need an MCP server to give your agent AffiliateRail. Jentic connects it directly from the API Directory: import AffiliateRail, store your key once, and your agent manages partners, commissions, and payouts straight away. Operations are discovered on demand, so no extra server's tool definitions sit in your agent's context.
Can I limit what my agent is allowed to do with the AffiliateRail API?
Yes. Because the partner id travels in the URL path, you can write a rule that allows only reading sales and approving commissions on one partner, so the agent handles that partner and nothing else. Deleting partners or marking payouts paid stays out of the rule unless you add it, and every call the agent makes is logged.
Can I manage commissions and payouts with the AffiliateRail API?
Yes. Commission rules attribute earnings on recorded sales in integer minor units with an explicit currency, and commissions can be approved, rejected, or created manually. You can read what matures between two dates, generate a payout batch from approved commissions, and mark individual payouts paid.
What are the rate limits for the AffiliateRail API?
The AffiliateRail OpenAPI spec does not publish numeric request rate limits. It does support an Idempotency-Key header on writes so a retried request replays the first response for 24 hours instead of running the work twice. Check the AffiliateRail documentation at https://docs.affiliaterail.com for current limits.
How do I approve a commission with the AffiliateRail API through Jentic?
Search the Jentic API Directory for an intent like 'approve an affiliate commission', import AffiliateRail, and store your key once. Your agent then lists pending commissions and approves the valid ones through Jentic. To run it on your own infrastructure, install Jentic One from its GitHub repo.
For Agents
Create partners and tracking links, record clicks and sales, attribute and approve commissions, generate payouts, and recruit prospects. Authenticates with a bearer key.
Use for: I need to create a new affiliate partner in a program, Record a sale and attribute its commission, Approve a pending commission for a partner, Generate a payout batch for approved commissions
Not supported: Does not handle card payment processing, tax filing, or ad campaign buying. Use for affiliate program, partner, commission, and payout management only.
The AffiliateRail API runs an affiliate and partner program over one consistent REST contract, exposing every object in the product as an addressable resource. It creates partners, groups, tracking links, and coupons, records clicks, referrals, and sales, and attributes earnings through commission rules that can be approved, rejected, or added manually. Earnings flow into balances, payouts, and generated payout batches, while campaigns and sequences nurture partners and signed webhook endpoints stream events to your systems. A partner-finder surface adds prospect discovery, email reveal, notes, and a recruitment pipeline, and idempotency keys keep a retried write from recording the same action twice.
This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.
Base layer of spec validity and structural soundness.
Aggregated quality score from linter diagnostics, weighted by severity.
Percentage of `$ref` references that resolve successfully.
Checks whether the API description parses successfully and conforms to its declared specification (e.g., OpenAPI).
Structural correctness score based on schema issues using logarithmic dampening.
Clarity, completeness, and ingestion readiness for developers and tooling.
How richly the API is illustrated with examples.
Percentage of examples that conform to their schemas.
Percentage of operations with complete response definitions (success, client error, server error).
Health of API ingestion, bundling, and resolution within Jentic pipelines.
Semantic breadth, depth, and agent comprehension for AI systems.
Coverage of descriptions across API elements.
Coverage of RFC 9457 Problem Details for error responses.
Coverage, uniqueness, and casing consistency of operationIds for AI inference.
Coverage of summaries across operations/tags/info.
Functional utility, complexity comfort, and AI orchestration readiness.
Agent comfort level based on API operational and structural complexity.
Trust, risk posture, and security compliance.
Average quality of security schemes based on authentication method strength (weakest link for OAuth2).
Findability, semantic richness, and reasoning readiness.
Clarity and depth of descriptions across API elements.
Score it yourself
Every API in the directory is allowlisted, so you can re-score it with no key required.
npx @jentic/api-scorecard-cli score <openapi-url>