Partner integration guide

Offer one task through Agentrial. Your product runs the job, the user gets the result, and an upgrade can be traced back to the trial.

Define one trial offer

Choose a task someone can finish on their first visit. Specify the input your product accepts, the file it returns, and the allowance you can fund. The example below shows what to bring to a pilot discussion.

Example offer · Background removal

Input
One product photo in JPEG or PNG format.
Result
One transparent PNG, labeled “Created with” your product name.
Allowance
Five successful exports per guest. A retry of the same job uses the original export.
Upgrade
The customer continues on your checkout with the original trial referral.

For a time-based offer, specify the duration and what starts the clock. For a credit-based offer, define the unit and when a job consumes it. Agree on file limits, processing time, and how long the result stays available.

Connect your product

Partner integrations are onboarded individually. Share your API documentation, a test environment, a sample request and its expected output. During onboarding we map the following operations to your API and agree on credentials and delivery details.

OperationAgentrial sendsYour product returns
Open or resume a trialA stable guest reference, offer ID and Agentrial referral reference.A provider trial ID, expiry or remaining credits, and the same trial on a repeat request.
Run the jobThe trial ID, task input and a unique request ID reused on retries.The finished result, or a provider job ID while processing.
Deliver the resultThe job ID for a status check if the task runs asynchronously.Completion or failure status. On success, return the file or a download URL, filename, media type and any link expiry.
Continue after the trialThe original trial or referral reference.A checkout URL that preserves attribution and shows the customer your terms.

Agentrial uses the provider’s job receipt to identify who created the result. For a failed or timed-out request, return enough status information to let us resume the job without submitting it twice. Exchange API credentials privately during onboarding.

Attribute a paid upgrade

Record Agentrial as the referral source when the guest trial opens. Keep that reference when the guest creates an account or moves to checkout. You own billing and the customer relationship.

Agree on the commission, qualifying purchase, attribution window, refund handling and payout schedule before launch. When a purchase qualifies, report it through the affiliate platform or authenticated server event agreed for the pilot.

Illustrative conversion record
{
  "referral_id": "ref_example_01",
  "provider_trial_id": "trial_example_01",
  "order_id": "order_example_01",
  "currency": "USD",
  "net_amount_minor": 2500
}

In this example, 2500 means US$25.00. The referral identifies the originating trial. The order ID lets both teams reconcile the sale and count a retried notification once. Field names and the reporting channel are agreed for each integration.

Test and submit your offer

Before listing a pilot, both teams verify the full path with test data.

  • Open a trial twice for the same guest and confirm both requests resolve to the same trial.
  • Run a task, open the returned file, and check its type and provider credit.
  • Retry the same job, then exhaust or expire the trial. Verify the allowance and the checkout handoff.
  • Complete a test upgrade. Match it to the original referral, then replay its notification and verify that only one conversion is recorded.

Apply with your product website, one task, the trial allowance and a work email. Keep the reference number shown after submission so we can find your offer.

Offer a trial