Skip to navigation

Create Credit Top Up

View as Markdown

Offer a credit top-up for this project’s organization; an agent pays payUrl from its own wallet.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

project_idstringRequired

Request

This endpoint expects an object.
amountUsdstringRequired<=20 characters
Whole cents, for example "20.00".

Response

Successful Response
amountUsdstring
expiresAtinteger

Unix seconds; the pay URL refuses payment after it.

idstring
payUrlstring
Pay with an agent wallet through HTTP 402 machine payment.
statusenum

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error