Api tokens

A list of all publicly available methods for interacting with the API.

GET

List API Tokens

/user/api-tokens

Obtain a list of the user's API tokens.

This method requires authorization!
You can use your own API key, which can be obtained at control panel.
This method - requires permissions -api-tokens.read
When creating an API token in your control panel, you can choose certain permissions (for example: prevent the token from placing orders).
You can also find a list of permissions in our documentation.

Query method

GEThttps://api.stableproxy.com/v2/user/api-tokens

Query parameters

IdentifierRegulationsExample
searchNot necessarilynullablestring144
per-pageNot necessarilynullableinteger73
pageNot necessarilynullableinteger18
sort-byNot necessarilynullablestringapp\_validators\_ex_in_rule""
sort-orderNot necessarilynullablestringin:asc, desc"asc"

Code examples

1const baseUrl = "https://api.stableproxy.com/v2";
2const response = await fetch(baseUrl + "/user/api-tokens", {
3 method: "GET",
4 headers: {
5 "Authorization": "API-Token [YOUR TOKEN]",
6 "Content-Type": "application/json"
7 }
8});
9const data = await response.json();

Examples of answers

Success response200application/json
{
  "data": {
    "current_page": 1,
    "data": [
      {
        "id": 75,
        "tokenable_id": 1,
        "name": "",
        "type": "api",
        "abilities": [
          "*"
        ],
        "last_used_at": "2023-12-21T13:41:38.000000Z",
        "created_at": "2023-10-31T23:55:08.000000Z",
        "updated_at": "2023-12-21T13:41:38.000000Z",
        "expires_at": null,
        "deleted_at": null,
        "is_current": true
      }
    ],
    "first_page_url": "http://apidev.stableproxy.com/v2/user/api-tokens?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://apidev.stableproxy.com/v2/user/api-tokens?page=1",
    "next_page_url": null,
    "path": "http://apidev.stableproxy.com/v2/user/api-tokens",
    "per_page": 25,
    "prev_page_url": null,
    "to": 20,
    "total": 20
  },
  "good": true,
  "timestamp": 1703166098,
  "cause": {
    "type": "api",
    "user_id": 1,
    "token_id": 75,
    "token_sign": "63992323944b77852d3b2b901498fc57"
  }
}