EndpointsSupport Tickets

Support Tickets

Function-calling namespace: supportTickets

  • Base URL: https://api.aivida.in
  • Engine endpoint: POST /api
  • Auth: Stack token middleware enabled in optional mode.
  • Send token in header: x-stack-access-token: <access_token> (or Authorization: Bearer <access_token>).
  • In optional mode: no token is allowed; invalid token is rejected with 401.

create

Source: backend/endpoints/support-tickets/create

Input Fields

FieldTypeRequiredConstraints
userIdstringYes-
subjectstringYes-
descriptionstringYes-
prioritystringNo-

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

FieldTypeRequiredConstraints
idstringYes-

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

FieldTypeRequiredConstraints
userIdstringNo-
statusstringNo-
pageintegerNo-
pageSizeintegerNo-

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

FieldTypeRequiredConstraints
pageintegerNo-
pageSizeintegerNo-

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

FieldTypeRequiredConstraints
idstringYes-
statusstringYes-

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": {} }