Download OpenAPI specification:Download
OpenAPI specification for StickQR Platform.
The GraphQl query for this endpoint is:
mutation UpdateChannel($cid: uuid, $telegram_id: String) {
update_telegram_channel(where: {id: {_eq: $cid}}, _set: {used: true, telegram_id: $telegram_id, connected_at: "now()"}) {
affected_rows
}
}
| cid | string[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
| telegram_id | string |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| cid | string or null (uuid) [a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
| telegram_id | string or null (String) |
{- "cid": "string",
- "telegram_id": "string"
}{- "update_telegram_channel": {
- "affected_rows": 0
}
}The GraphQl query for this endpoint is:
query CheckUid($uid: String) {
telegram_channel(where: {unique_code: {_eq: $uid}, used: {_eq: false}}) {
user
id
}
}
| uid | string |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| uid | string or null (String) |
{- "uid": "string"
}{- "telegram_channel": [
- {
- "id": "string",
- "user": "string"
}
]
}The GraphQl query for this endpoint is:
query GetBrowserChannel($is_app: Boolean = false) {
browser_channel(where: {is_app: {_eq: $is_app}}) {
browser
active
created_at
device_id
id
os
device_token
}
}
| is_app | boolean Default: false |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| is_app | boolean or null (Boolean) Default: false |
{- "is_app": false
}{- "browser_channel": [
- {
- "active": true,
- "browser": "string",
- "created_at": null,
- "device_id": "string",
- "device_token": "string",
- "id": "string",
- "os": "string"
}
]
}The GraphQl query for this endpoint is:
query GetUsersFirebaseToken($user: uuid) {
browser_channel(limit: 10, where: {user: {_eq: $user}}) {
device_token
}
android_channel(limit: 10, where: {user: {_eq: $user}}) {
device_token
}
}
| user | string[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| user | string or null (uuid) [a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
{- "user": "string"
}{- "android_channel": [
- {
- "device_token": "string"
}
], - "browser_channel": [
- {
- "device_token": "string"
}
]
}The GraphQl query for this endpoint is:
mutation RegisterAndroidChannel($device_id: String, $device_name: String, $device_token: String, $os: String) {
insert_android_channel_one(object: {device_id: $device_id, device_name: $device_name, device_token: $device_token, os: $os}) {
id
}
}
| device_id | string |
| device_name | string |
| device_token | string |
| os | string |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| device_id | string or null (String) |
| device_name | string or null (String) |
| device_token | string or null (String) |
| os | string or null (String) |
{- "device_id": "string",
- "device_name": "string",
- "device_token": "string",
- "os": "string"
}{- "insert_android_channel_one": {
- "id": "string"
}
}The GraphQl query for this endpoint is:
mutation UpdateQRCode($code: String) {
update_qr_code(where: {integration_code: {_eq: $code}}, _set: {integration_code: $code}) {
affected_rows
}
}
| code | string |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| code | string or null (String) |
{- "code": "string"
}{- "update_qr_code": {
- "affected_rows": 0
}
}The GraphQl query for this endpoint is:
mutation UpdateQRCode($code: String) {
update_qr_code(where: {integration_code: {_eq: $code}}, _set: {integration_code: $code}) {
affected_rows
}
}
| code | string |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| code | string or null (String) |
{- "code": "string"
}{- "update_qr_code": {
- "affected_rows": 0
}
}The GraphQl query for this endpoint is:
mutation DeleteAndroidChannel($id: uuid!) {
delete_android_channel_by_pk(id: $id) {
id
}
}
| id | string[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... "id" is required (enter it either in parameters or request body) |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| id | string (uuid) [a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
{- "id": "string"
}{- "delete_android_channel_by_pk": {
- "id": "string"
}
}Get session profile*** The GraphQl query for this endpoint is:
query MyQuery {
profile(limit: 1) {
id
name
avatar
}
}
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
{- "profile": [
- {
- "avatar": "string",
- "id": "string",
- "name": "string"
}
]
}The GraphQl query for this endpoint is:
mutation CreateTelegramChannel($unique_code: String) {
insert_telegram_channel_one(object: {unique_code: $unique_code}) {
id
}
}
| unique_code | string |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| unique_code | string or null (String) |
{- "unique_code": "string"
}{- "insert_telegram_channel_one": {
- "id": "string"
}
}The GraphQl query for this endpoint is:
query GetAndroidChannels {
android_channel {
active
created_at
device_id
device_name
device_token
id
os
updated_at
user
}
}
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
{- "android_channel": [
- {
- "active": true,
- "created_at": null,
- "device_id": "string",
- "device_name": "string",
- "device_token": "string",
- "id": "string",
- "os": "string",
- "updated_at": null,
- "user": "string"
}
]
}The GraphQl query for this endpoint is:
query GetQRCodeAvailibility($code: String) {
qr_code(limit: 1, where: {integration_code: {_eq: $code}, used_by: {_is_null: true}}) {
id
}
}
| code | string |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| code | string or null (String) |
{- "code": "string"
}{- "qr_code": [
- {
- "id": "string"
}
]
}The GraphQl query for this endpoint is:
mutation insertNewQR($slug: String!, $integration_code: String!) {
insert_qr_code(objects: {slug: $slug, integration_code: $integration_code}) {
affected_rows
returning {
id
integration_code
slug
created_at
}
}
}
| integration_code | string "integration_code" is required (enter it either in parameters or request body) |
| slug | string "slug" is required (enter it either in parameters or request body) |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| integration_code | string (String) |
| slug | string (String) |
{- "integration_code": "string",
- "slug": "string"
}{- "insert_qr_code": {
- "affected_rows": 0,
- "returning": [
- {
- "created_at": null,
- "id": "string",
- "integration_code": "string",
- "slug": "string"
}
]
}
}The GraphQl query for this endpoint is:
query GetAllMessages($offset: Int = 0) {
notification_message(limit: 10, offset: $offset, order_by: {created_at: desc}) {
created_at
from
from_user {
profile {
name
avatar
}
id
}
id
message
object_id
to
object {
id
type
title
}
}
}
| offset | integer Default: 0 |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| offset | integer or null (Int) Default: 0 |
{- "offset": 0
}{- "notification_message": [
- {
- "created_at": null,
- "from": "string",
- "from_user": {
- "id": "string",
- "profile": {
- "avatar": "string",
- "name": "string"
}
}, - "id": "string",
- "message": "string",
- "object": {
- "id": "string",
- "title": "string",
- "type": "string"
}, - "object_id": "string",
- "to": "string"
}
]
}The GraphQl query for this endpoint is:
mutation UpdateQRCodeStatus($object_id: uuid!, $qr_id: uuid!) {
update_object_by_pk(pk_columns: {id: $object_id}, _set: {qr_id: $qr_id}) {
id
}
update_qr_code_by_pk(pk_columns: {id: $qr_id}, _set: {used_by: $object_id}) {
id
}
}
| object_id | string[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... "object_id" is required (enter it either in parameters or request body) |
| qr_id | string[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... "qr_id" is required (enter it either in parameters or request body) |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| object_id | string (uuid) [a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
| qr_id | string (uuid) [a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
{- "object_id": "string",
- "qr_id": "string"
}{- "update_object_by_pk": {
- "id": "string"
}, - "update_qr_code_by_pk": {
- "id": "string"
}
}The GraphQl query for this endpoint is:
mutation UpdateObject($id: uuid, $active: Boolean, $custom_message: Boolean, $messages: [String!], $show_owner: Boolean, $sub_title: String, $title: String, $type: String) {
update_object(where: {id: {_eq: $id}}, _set: {active: $active, custom_message: $custom_message, messages: $messages, show_owner: $show_owner, sub_title: $sub_title, title: $title, type: $type}) {
affected_rows
}
}
| active | boolean |
| custom_message | boolean |
| id | string[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
| show_owner | boolean |
| sub_title | string |
| title | string |
| type | string |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| active | boolean or null (Boolean) |
| custom_message | boolean or null (Boolean) |
| id | string or null (uuid) [a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
| messages | Array of strings or null (String) |
| show_owner | boolean or null (Boolean) |
| sub_title | string or null (String) |
| title | string or null (String) |
| type | string or null (String) |
{- "active": true,
- "custom_message": true,
- "id": "string",
- "messages": [
- "string"
], - "show_owner": true,
- "sub_title": "string",
- "title": "string",
- "type": "string"
}{- "update_object": {
- "affected_rows": 0
}
}The GraphQl query for this endpoint is:
query channel {
channel(order_by: {active: desc}) {
active
created_at
description
id
name
updated_at
}
}
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
{- "channel": [
- {
- "active": true,
- "created_at": null,
- "description": "string",
- "id": "string",
- "name": "string",
- "updated_at": null
}
]
}The GraphQl query for this endpoint is:
query GetMessagesByObjectId($offset: Int = 0, $objectId: uuid) {
notification_message(limit: 10, offset: $offset, order_by: {created_at: desc}, where: {object_id: {_eq: $objectId}}) {
created_at
from
from_user {
profile {
name
avatar
}
id
}
id
message
object_id
to
object {
id
type
title
}
}
}
| objectId | string[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
| offset | integer Default: 0 |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| objectId | string or null (uuid) [a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
| offset | integer or null (Int) Default: 0 |
{- "objectId": "string",
- "offset": 0
}{- "notification_message": [
- {
- "created_at": null,
- "from": "string",
- "from_user": {
- "id": "string",
- "profile": {
- "avatar": "string",
- "name": "string"
}
}, - "id": "string",
- "message": "string",
- "object": {
- "id": "string",
- "title": "string",
- "type": "string"
}, - "object_id": "string",
- "to": "string"
}
]
}The GraphQl query for this endpoint is:
query GetObjectDetail($oId: uuid) {
object(limit: 1, where: {id: {_eq: $oId}}) {
active
anonymous
created_at
custom_message
id
image
last_message
messages
qr_code {
slug
id
}
show_owner
sub_title
title
type
updated_at
}
}
| oId | string[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| oId | string or null (uuid) [a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
{- "oId": "string"
}{- "object": [
- {
- "active": true,
- "anonymous": true,
- "created_at": null,
- "custom_message": true,
- "id": "string",
- "image": "string",
- "last_message": null,
- "messages": [
- "string"
], - "qr_code": {
- "id": "string",
- "slug": "string"
}, - "show_owner": true,
- "sub_title": "string",
- "title": "string",
- "type": "string",
- "updated_at": null
}
]
}The GraphQl query for this endpoint is:
mutation InsertObjectOne($active: Boolean, $custom_message: Boolean, $messages: [String!], $show_owner: Boolean, $sub_title: String, $title: String, $type: String) {
insert_object_one(object: {active: $active, custom_message: $custom_message, messages: $messages, show_owner: $show_owner, sub_title: $sub_title, title: $title, type: $type}) {
id
}
}
| active | boolean |
| custom_message | boolean |
| show_owner | boolean |
| sub_title | string |
| title | string |
| type | string |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| active | boolean or null (Boolean) |
| custom_message | boolean or null (Boolean) |
| messages | Array of strings or null (String) |
| show_owner | boolean or null (Boolean) |
| sub_title | string or null (String) |
| title | string or null (String) |
| type | string or null (String) |
{- "active": true,
- "custom_message": true,
- "messages": [
- "string"
], - "show_owner": true,
- "sub_title": "string",
- "title": "string",
- "type": "string"
}{- "insert_object_one": {
- "id": "string"
}
}The GraphQl query for this endpoint is:
mutation UpdateAndroidToken($deviceId: String, $device_token: String) {
update_android_channel(where: {device_id: {_eq: $deviceId}}, _set: {device_token: $device_token}) {
affected_rows
}
}
| deviceId | string |
| device_token | string |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| deviceId | string or null (String) |
| device_token | string or null (String) |
{- "deviceId": "string",
- "device_token": "string"
}{- "update_android_channel": {
- "affected_rows": 0
}
}The GraphQl query for this endpoint is:
mutation DeleteBrowserChannel($id: uuid = "") {
delete_browser_channel_by_pk(id: $id) {
id
}
}
| id | string[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... Default: "" |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| id | string or null (uuid) [a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... Default: "" |
{- "id": ""
}{- "delete_browser_channel_by_pk": {
- "id": "string"
}
}The GraphQl query for this endpoint is:
query object {
object(order_by: {active: desc}) {
active
created_at
id
last_message
title
type
updated_at
qr_id
}
}
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
{- "object": [
- {
- "active": true,
- "created_at": null,
- "id": "string",
- "last_message": null,
- "qr_id": "string",
- "title": "string",
- "type": "string",
- "updated_at": null
}
]
}The GraphQl query for this endpoint is:
mutation DeleteTelegramChannel($id: uuid!) {
delete_telegram_channel_by_pk(id: $id) {
id
}
}
| id | string[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... "id" is required (enter it either in parameters or request body) |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| id | string (uuid) [a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
{- "id": "string"
}{- "delete_telegram_channel_by_pk": {
- "id": "string"
}
}The GraphQl query for this endpoint is:
mutation RequestDeleteAccount($user: uuid) {
update_user(where: {id: {_eq: $user}}, _set: {status: "REQUEST_DELETE"}) {
affected_rows
}
}
| user | string[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
Query parameters can also be provided in the request body as a JSON object
| user | string or null (uuid) [a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB]... |
{- "user": "string"
}{- "update_user": {
- "affected_rows": 0
}
}The GraphQl query for this endpoint is:
query GetTelegramChannel {
telegram_channel {
active
connected_at
created_at
id
telegram_id
unique_code
updated_at
used
user
}
}
| Authorization | string Your Bearer Token, will be used for authentication of the API request. |
{- "telegram_channel": [
- {
- "active": true,
- "connected_at": null,
- "created_at": null,
- "id": "string",
- "telegram_id": "string",
- "unique_code": "string",
- "updated_at": null,
- "used": true,
- "user": "string"
}
]
}