Support Get all tickets. Conversation

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

GET

List tickets Support Conversation -/support/tickets

Query method

GEThttp://apilocal.stableproxy.com/v2/support/tickets

Query parameters

IdentifierRegulationsExample
searchNot necessarilynullablestring61
per-pageNot necessarilynullableinteger91
pageNot necessarilynullableinteger69
sort-byNot necessarilynullablestringapp\_validators\_ex_in_rule""
sort-orderNot necessarilynullablestringin:asc, desc"asc"

Code examples

async function getSupportTickets() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/support/tickets?' + Object.entries({
         "search": 61,
         "per-page": 91,
         "page": 69,
         "sort-by": "",
         "sort-order": "asc"
      }).map(([key, value]) => key + "=" + value).join('&'), {
         method: 'GET',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Examples of answers

POST

Create ticket Support Conversation -/support/tickets

Query method

POSThttp://apilocal.stableproxy.com/v2/support/tickets

Query parameters

IdentifierRegulationsExample
messageNot necessarilyrequired_without:files283
filesNot necessarilyarraydistinct3
captcha-keyNot necessarilynullablestring"6Le6gTwUAAA ... secret ...tjbYd6IAYN_"
g-recaptcha-responserequiredrecaptchav3:support, 0.5, captcha-key"03AFcWeA690BhJU7VIxoIpsXXdDx7IVllNVz804lKvWNIBYmF42ALfY18TY4cjjQ0sY_...."
files..*requiredfiledistinct1852

Code examples

async function postSupportTickets() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/support/tickets', {
         method: 'POST',
         headers: {
            'Content-Type': 'application/json'
         },
         body: JSON.stringify({
            "message": 283,
            "files": 3,
            "captcha-key": "6Le6gTwUAAA ... secret ...tjbYd6IAYN_",
            "g-recaptcha-response": "03AFcWeA690BhJU7VIxoIpsXXdDx7IVllNVz804lKvWNIBYmF42ALfY18TY4cjjQ0sY_....",
            "files..*": 1852
         }),
      }
   );
   
   const res = await req.json();
}

Examples of answers

GET

View ticket Support Conversation -/support/tickets/{id}

Query method

GEThttp://apilocal.stableproxy.com/v2/support/tickets/{id}

Query parameters

IdentifierRegulationsExample
id1required80

Code examples

async function getSupportTickets() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/support/tickets/{id}'
      .replace("{id}", 80), {
         method: 'GET',
         headers: {
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Examples of answers