Skip to content

List assets

GET/v1/assets

Every asset an invoice may offer in the key’s environment. A publishable key may call this operation (x-publishable-key); it is one of the few on this API that accept one.

Send your API key as a bearer token in the Authorization header. Secret API key: Authorization: Bearer ctp_live_sk_…. A publishable key (ctp_…_pk_…) is accepted by these operations only, which serve reference data: getRate, listAssets, listNetworks (each marked x-publishable-key: true). Every other operation refuses it with 403 publishable_key_not_allowed, whatever Origin the request carries: that header binds browsers, not other clients, and nothing on this API relies on it.

Name Type Description
limit integer Number of items to return (1 to 100). Default 50. Minimum 1, maximum 100.
starting_after string Return items after this id: pass next_cursor of the previous page. At most 100 characters.
network string Network slug. At most 32 characters.
Terminal window
curl "https://api.ctpeway.com/v1/assets" \
-H "Authorization: Bearer $CTPEWAY_API_KEY"
Field Type Description
data array of objects
data[].id string 24 hexadecimal characters.
data[].asset string Symbol, e.g. USDT.
data[].network string Network slug.
data[].name optional string
data[].kind string One of native, token.
data[].contract optional string
data[].decimals integer
data[].min_amount string Smallest amount an invoice option may ask for, base units. A whole number written as a string of digits.
data[].livemode boolean
has_more boolean Whether more items exist after this page.
next_cursor string or null Pass as starting_after to get the next page; null on the last page.
{
"data": [
{
"id": "0123456789abcdef01234567",
"asset": "string",
"network": "string",
"name": "string",
"kind": "native",
"contract": "string",
"decimals": 0,
"min_amount": "1000000",
"livemode": true
}
],
"has_more": true,
"next_cursor": "string"
}

The values are placeholders generated from the schema. They show the shape, not real data.

A failed request answers with the error format described under Errors.

Besides the codes any endpoint can return, this endpoint can answer with these code values: