Skip to main content
POST
/
api
/
v1
/
token
Create a new token
curl --request POST \
  --url https://api.paylora.org/api/v1/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "USDT",
  "address": "0xAbC123...",
  "decimals": 18,
  "network": "ARB_SEPOLIA",
  "status": "whitelisted"
}
'
{
  "success": true,
  "data": {
    "uuid": "<string>",
    "name": "<string>",
    "address": "<string>",
    "network": "ARB_SEPOLIA",
    "decimals": 18,
    "status": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

The name of the token

Example:

"USDT"

address
string
required

The contract address of the token

Example:

"0xAbC123..."

decimals
number
required

The number of decimal places for the token

Example:

18

network
string
required

The network of the transaction

Example:

"ARB_SEPOLIA"

status
enum<string>
required

The status of the token

Available options:
whitelisted,
not_whitelisted
Example:

"whitelisted"

Response

Resource model

success
boolean
required

Indicates if the request was successful

Example:

true

data
object
required

The data returned by the API