Skip to main content
POST
Buy one-time Agent Credits

Authorizations

Authorization
string
header
required

User keys begin with darwin_. Application service-account keys begin with darwin_sa_ and are restricted to linked agents.

Headers

Idempotency-Key
string
required

A caller-generated key, unique to this operation and payload.

Required string length: 1 - 200

Path Parameters

agentId
string
required

Body

application/json
credits
enum<integer>
required
Available options:
500,
1000,
2500,
5000,
10000,
20000,
50000

Response

A hosted checkout URL.

checkoutUrl
string<uri>
required