For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
DocsAPI Reference
DocsAPI Reference
    • End Points
  • PARTNER
    • GETGet Orders
    • GETGet Order By ID
    • GETGet Webhooks
    • POSTRefresh Access Token
    • POSTCreate Widget URL
  • COUNTRIES
    • GETGet Countries
  • CURRENCIES
    • GETGet Crypto Currencies
    • GETGet Fiat Currencies
    • GETGet Price
    • GETVerify Wallet Address
  • TRANSAK WHITELABEL API
    • End Points
  • METAMASK Wrapper API
    • Overview
    • GETBuy Order by ID
    • GETSell Order by ID
    • GETBuy Orders
    • GETSell Orders
    • GETBuy Widget
    • GETSell Widget
    • GETBuy Quote
    • GETSell Quote
    • GETBuy Configuration
    • GETSell Configuration
Dashboard
LogoLogo

Buy Widget

||View as Markdown|
GET
/metamask/v1/buy/
GET
/metamask/v1/buy/
$curl -G https://api-stg.transak.com/metamask/v1/buy/ \
> -d apiKey= \
> -d redirectUrl= \
> -d amount=0 \
> -d payment= \
> -d crypto= \
> -d fiat=
This API provide the On Ramp Transak widget url with the specified params. ![Params](https://assets.transak.com/doc/Q2xlYW5TaG90IDIwMjUtMDMtMTMgYXQgMTIuMTkuNTFAMngucG5n.png)
Was this page helpful?
Previous

Sell Orders

Next

Sell Widget

Built with

This API provide the On Ramp Transak widget url with the specified params.

Params

Query parameters

apiKeystringRequired
Transak API key. Present in dashboard.transak.com
redirectUrlstringRequired
Url to redirect after order submission.
amountdoubleRequired
Fiat amount
paymentstringRequired
Payment method
cryptostringRequired
Crypto currency
fiatstringRequired
Fiat currency

Errors

400
Bad Request Error