Tokens

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

Get Tokens

GET https://api.vaultoro.com/v1/tokens

This endpoint allows you to get your API tokens.

Headers

NameTypeDescription

Authorization

string

Your main bearer token.

{
    "data": [
        {
            "expires": 1654870020,
            "scopes": [
                "api"
            ],
            "createdAt": 1623334020,
            "referenceId": "20c96eaf-4e40-44ae-b697-650e0ae64d5e"
        }
    ]
}

Create Token

POST 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.

Headers

NameTypeDescription

Authorization

string

Your main bearer token

Request Body

NameTypeDescription

expires

number

The unix epoch time at which the token expires.

scope

string

The scope in which the token works in, 'read' or 'write'.

captcha

string

The value of the captcha on the Vaultoro dashboard.

{
    "data": {
        "expires": 1595535601,
        "referenceId": "fe22dc78-f266-4584-9071-95bbffd08429",
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
    }
}

Delete Token

DELETE https://api.vaultoro.com/v1/tokens/:referenceId

Delete any of your API tokens.

Path Parameters

NameTypeDescription

referenceId

string

The referenceId of the token you want to delete

Headers

NameTypeDescription

Authorization

string

Your main bearer token

{"data":{"success":true}}

Last updated