Tokens

API tokens let you access the Vaultoro services, create orders and more.

get
Get Tokens

https://api.vaultoro.com/v1/tokens
This endpoint allows you to get your API tokens.
Request
Response
Request
Headers
VTOKEN
required
string
Your API token to authenticate requests.
Response
200: OK
API tokens successfully retrieved.
{
"data": [
{
"createdAt": 1595449201,
"expires": 1595535601,
"scopes": [
"api"
]
},
{
"createdAt": 1595449192,
"expires": 1595535592,
"scopes": [
"api"
]
}
]
}
404: Not Found
Could not find any tokens.
{
"data": []
}

post
Create Token

https://api.vaultoro.com/v1/tokens
Create API tokens for your account. Make a note of the token that is returned since you cannot access this again. Currently you can only create tokens within the Vaultoro dashboard.
Request
Response
Request
Path Parameters
expires
optional
number
The number of seconds before the token expires.
Headers
Authorization
optional
string
Your main bearer token
Response
200: OK
{
"data": {
"expires": 1595535601,
"referenceId": "fe22dc78-f266-4584-9071-95bbffd08429",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
}
}

delete

https://api.vaultoro.com/v1/tokens/:referenceId
Delete any of your API tokens.
Request
Response
Request
Path Parameters
referenceId
optional
string
The referenceId of the token you want to delete
Headers
Authorization
optional
string
Your main API token
Response
200: OK
{"data":{"success":true}}