---
title: "Start Trial Checkout"
method: POST
path: "/api/credits/trial"
tags: ["trials"]
---

# Start Trial Checkout

`POST /api/credits/trial`

## Headers

- `x-datafast-visitor-id` string, nullable
- `x-datafast-session-id` string, nullable

## Request body

- TrialCheckoutRequest
  - `offer_token` string, required
  - `return_to` 'onboarding' | 'billing'

## Response `200`

Successful Response

- TrialCheckoutResponse
  - `url` string, required

## Other responses

- `401` — Authentication required
- `409` — Trial offer unavailable
- `422` — Validation Error
- `502` — Stripe checkout unavailable
- `503` — Billing return URL not configured

## Changes

- **2026-09-09** `a9d43961f114` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/changes/api/credits/trial/post.md)

---

[API](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/revisions/5f27fa9d6c03?raw)
