Support Tickets
Function-calling namespace: supportTickets
- Base URL:
https://api.aivida.in - Engine endpoint:
POST /api - Auth: Stack token middleware enabled in
optionalmode. - Send token in header:
x-stack-access-token: <access_token>(orAuthorization: Bearer <access_token>). - In
optionalmode: no token is allowed; invalid token is rejected with401.
create
Source: backend/endpoints/support-tickets/create
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
userId | string | Yes | - |
subject | string | Yes | - |
description | string | Yes | - |
priority | string | No | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "supportTickets",
"apiName": "create",
"data": {
"userId": "user_123",
"subject": "value",
"description": "value"
}
}'Example Response
{ "status": "ok", "data": {} }get
Source: backend/endpoints/support-tickets/get
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | Yes | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "supportTickets",
"apiName": "get",
"data": {
"id": "id_123"
}
}'Example Response
{ "status": "ok", "data": {} }getAllByUserID
Source: backend/endpoints/support-tickets/get-all-by-user-id
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
userId | string | No | - |
status | string | No | - |
page | integer | No | - |
pageSize | integer | No | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "supportTickets",
"apiName": "getAllByUserID",
"data": {
"status": "scheduled"
}
}'Example Response
{ "status": "ok", "data": {} }list
Source: backend/endpoints/support-tickets/list
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
page | integer | No | - |
pageSize | integer | No | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "supportTickets",
"apiName": "list",
"data": {
"page": 1,
"pageSize": 1
}
}'Example Response
{ "status": "ok", "data": {} }updateStatus
Source: backend/endpoints/support-tickets/update-status
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | Yes | - |
status | string | Yes | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token_optional>" \
-d '{
"namespace": "supportTickets",
"apiName": "updateStatus",
"data": {
"id": "id_123",
"status": "scheduled"
}
}'Example Response
{ "status": "ok", "data": {} }