Support
A list of all publicly available methods for interacting with the API.
GET
List tickets -/support/tickets
Query method
GEThttp://apilocal.stableproxy.com/v2/support/tickets
Query parameters
Identifier | Regulations | Example |
---|---|---|
searchNot necessarily | nullablestring | 61 |
per-pageNot necessarily | nullableinteger | 91 |
pageNot necessarily | nullableinteger | 69 |
sort-byNot necessarily | nullablestringapp\_validators\_ex_in_rule | "" |
sort-orderNot necessarily | nullablestringin:asc, desc | "asc" |
Code examples
JavaScript
1async function getSupportTickets() {
2 const baseUrl = 'http://apilocal.stableproxy.com/v2';
3 const req = await fetch(baseUrl + '/support/tickets?' + Object.entries({
4 "search": 61,
5 "per-page": 91,
6 "page": 69,
7 "sort-by": "",
8 "sort-order": "asc"
9 }).map(([key, value]) => key + "=" + value).join('&'), {
10 method: 'GET',
11 headers: {
12 'Authorization': 'API-Token [YOUR TOKEN]',
13 'Content-Type': 'application/json'
14 }
15 }
16 );
17
18 const res = await req.json();
19}
Examples of answers
Success response
POST
Create ticket -/support/tickets
Query method
POSThttp://apilocal.stableproxy.com/v2/support/tickets
Query parameters
Identifier | Regulations | Example |
---|---|---|
messageNot necessarily | required_without:files | 283 |
filesNot necessarily | arraydistinct | 3 |
captcha-keyNot necessarily | nullablestring | "6Le6gTwUAAA ... secret ...tjbYd6IAYN_" |
g-recaptcha-response | requiredrecaptchav3:support, 0.5, captcha-key | "03AFcWeA690BhJU7VIxoIpsXXdDx7IVllNVz804lKvWNIBYmF42ALfY18TY4cjjQ0sY_...." |
files..* | requiredfiledistinct | 1852 |
Code examples
JavaScript
1async function postSupportTickets() {
2 const baseUrl = 'http://apilocal.stableproxy.com/v2';
3 const req = await fetch(baseUrl + '/support/tickets', {
4 method: 'POST',
5 headers: {
6 'Content-Type': 'application/json'
7 },
8 body: JSON.stringify({
9 "message": 283,
10 "files": 3,
11 "captcha-key": "6Le6gTwUAAA ... secret ...tjbYd6IAYN_",
12 "g-recaptcha-response": "03AFcWeA690BhJU7VIxoIpsXXdDx7IVllNVz804lKvWNIBYmF42ALfY18TY4cjjQ0sY_....",
13 "files..*": 1852
14 }),
15 }
16 );
17
18 const res = await req.json();
19}
Examples of answers
Success response
GET
View ticket -/support/tickets/{id}
Query method
GEThttp://apilocal.stableproxy.com/v2/support/tickets/{id}
Query parameters
Identifier | Regulations | Example |
---|---|---|
id | 1required | 80 |
Code examples
JavaScript
1async function getSupportTickets() {
2 const baseUrl = 'http://apilocal.stableproxy.com/v2';
3 const req = await fetch(baseUrl + '/support/tickets/{id}'
4 .replace("{id}", 80), {
5 method: 'GET',
6 headers: {
7 'Content-Type': 'application/json'
8 }
9 }
10 );
11
12 const res = await req.json();
13}