User Tickets API

Retrieve all tickets for the authenticated user

Support

User Tickets API

Retrieve all support tickets created by the currently authenticated user. View ticket history, status, and details.

User's Tickets

Personal ticket list.

History

All past tickets.

Status Tracking

Monitor progress.


Endpoint Overview

QUERY/graphql

Retrieve all tickets created by the currently authenticated user.

Authentication:Bearer Token
Required scopes:user

GraphQL Query

query userTickets {
  userTickets {
    id
    subject
    text
    category
    status
    createdAt
  }
}

Variables:

{}

HTTP Request:

curl -X POST https://api.orbnet.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{
    "query": "query userTickets { userTickets { id subject text category status createdAt } }",
    "variables": {}
  }'

Response

200User Tickets Retrieved Successfully
{
  "data": {
    "userTickets": [
      {
        "id": 1,
        "subject": "Issue with login",
        "text": "Unable to login with my credentials.",
        "category": "Technical",
        "status": "Open",
        "createdAt": "2024-08-11T14:32:00Z"
      },
      {
        "id": 2,
        "subject": "Payment issue",
        "text": "The payment did not go through.",
        "category": "Billing",
        "status": "Closed",
        "createdAt": "2024-08-10T09:20:00Z"
      }
    ]
  }
}

Response Fields

idInt!

Unique identifier for the ticket.

subjectString!

Brief subject or title of the ticket.

textString!

Detailed description of the issue or request.

categoryString!

Category of the ticket (e.g., Technical, Billing).

statusString!

Current status (e.g., Open, Closed, Pending).

createdAtDateTime!

Timestamp when the ticket was created.



Authentication Required

This endpoint returns tickets only for the authenticated user. Ensure a valid bearer token is provided.

Need Help?

Create a new support ticket to get assistance.

Create Ticket