credits
Create a credit top-up
Changed onCreates a USDC checkout for the amount and returns its x402_url for an agent to pay. Credits land once the payment settles; poll the status route or morph billing topup-status --wait. Organization keys top up the organization and require an organization admin.
post/api/v1/credits/topups
Request
- Base URLhttps://api.morphllm.com
- AuthHTTP bearer
Request body
Example request
{
"amount": "25.00",
"idempotencyKey": "3b241101-e2bb-4255-8caf-4136c566a962"
}Response
Top-up created.
Example response
{
"checkoutId": "6ae3c4f9b78e569c621631be",
"status": "ACTIVE",
"amount": "25.00",
"currency": "USDC",
"x402_url": "https://api.cdp.coinbase.com/platform/v2/payment-sessions/paymentSession_9a323500-bd94-47f5-9ca8-2dc60e19a8e9/authorizations/x402",
"url": "https://payments.coinbase.com/payment-sessions/paymentSession_9a323500-bd94-47f5-9ca8-2dc60e19a8e9"
}Changes
- info
endpoint added
- info