API Endpoints
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
Successful Operation
application/json
ResponseanyExample:
{"statusCode":200,"data":{"subjectOptions":["Support","Suggestions"]}}401
Failed because the authentication token is not sent or it has already expired.
application/json
404
An error occurred while sending the request to the external service.
application/json
get
/supports/subject-optionsGET /supports/subject-options HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"statusCode": 200,
"data": {
"subjectOptions": [
"Support",
"Suggestions"
]
}
}post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequiredExample:
John SmithemailstringRequiredExample:
[email protected]subjectstringRequiredExample:
SuggestionbodystringRequiredExample:
Lorem Ipsum is simply dummy text of the printing and typesetting industryResponses
201
Successful Operation
application/json
401
Failed because the authentication token is not sent or it has already expired.
application/json
404
An error occurred while sending the request to the external service.
application/json
post
/supports/create-ticketPOST /supports/create-ticket HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 160
{
"name": "John Smith",
"email": "[email protected]",
"subject": "Suggestion",
"body": "Lorem Ipsum is simply dummy text of the printing and typesetting industry"
}{
"statusCode": 201
}get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
Successful Operation
application/json
ResponseanyExample:
{"statusCode":200,"data":{"tickets":[{"requestId":1,"subject":"Suggestion","description":"Lorem Ipsum is simply dummy text of the printing and typesetting industry","status":"Open","createdAt":"2022-08-20T22:55:29Z"}]}}401
Failed because the authentication token is not sent or it has already expired.
application/json
404
An error occurred while sending the request to the external service.
application/json
get
/supports/ticketsGET /supports/tickets HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"statusCode": 200,
"data": {
"tickets": [
{
"requestId": 1,
"subject": "Suggestion",
"description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry",
"status": "Open",
"createdAt": "2022-08-20T22:55:29Z"
}
]
}
}Last updated
Was this helpful?