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
| 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
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
Success response
POST
Create ticket Support Conversation -/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
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
Success response
GET
View ticket Support Conversation -/support/tickets/{id}
Query method
GEThttp://apilocal.stableproxy.com/v2/support/tickets/{id}
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| id | 1required | 80 |
Code examples
JavaScript
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();
}