Skip to main content
This endpoint requires authentication. Users can only view their own support requests.

Endpoint

GET /support-request/{id}

Authentication

This endpoint requires a valid JWT token. Include the token in the Authorization header:
Authorization: Bearer YOUR_JWT_TOKEN

Path Parameters

id
integer
required
The unique identifier of the support request to retrieve

Response

success
boolean
required
Indicates whether the request was successful
message
string
required
A human-readable message describing the result
data
object
required
The response data object

Response Examples

{
  "success": true,
  "message": "Support request retrieved successfully",
  "data": {
    "supportRequest": {
      "id": 1,
      "user_id": 1,
      "date": "2026-03-15T10:30:00.000000Z",
      "location": "Building A, Room 305",
      "detail": "Network connectivity issues in the conference room. Unable to connect to WiFi.",
      "created_at": "2026-03-08T14:22:10.000000Z",
      "updated_at": "2026-03-08T14:22:10.000000Z",
      "deleted_at": null
    }
  }
}

Code Examples

curl -X GET https://api.example.com/support-request/1 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Accept: application/json" \
  -H "Accept-Language: en"

Error Responses

401 Unauthorized
Returned when the request is made without a valid JWT token or the token has expired
404 Not Found
Returned when:
  • The support request with the specified ID does not exist
  • The support request belongs to a different user (ownership check)

Notes

  • Users can only retrieve their own support requests
  • If a user attempts to access another user’s support request, a 404 Not Found error is returned (not 403 Forbidden) for security reasons
  • The endpoint uses Laravel’s route model binding for automatic model retrieval

Build docs developers (and LLMs) love