Unsubscribe from Ticket events

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Unsubscribe from Ticket Events

Cancels the active webhook subscription for the authenticated account, stopping all future ticket event notifications to the previously registered callback URL. The request body is empty — the subscription to remove is determined by the authenticated user's credentials.

Endpoint

POST /api/v1/tickets/unsubscribe

Authentication

Basic HTTP Authentication required.
Encode username:password in Base64 and pass in the Authorization header:

Authorization: Basic {base64(username:password)}

When to use

Use this endpoint when decommissioning an integration, changing the callback URL, or temporarily disabling ticket notifications. To update a callback URL, call unsubscribe first and then call POST /api/v1/tickets/subscribe with the new URL.

Request Body

This endpoint accepts an empty JSON object. No fields are required.

{}

Response

200 OK

FieldTypeDescription
requestIdintegerInternal request tracking ID.
successbooleantrue if the subscription was removed successfully.
errorstringError message if the operation failed.
validationErrorsarrayList of field-level validation issues.
{
  "requestId": 98133,
  "success": true,
  "error": null,
  "validationErrors": []
}

Error Codes

CodeWhen it happens
400Malformed request body.
401Invalid or missing Basic Auth credentials.
403User does not have permission for this operation.
404No active subscription found for this account.
500Internal server error.

Common Mistakes

  • Omitting the Content-Type: application/json header even though the body is empty — the server may reject requests without it.
  • Calling unsubscribe when no subscription exists — this may return a 404 error depending on server behavior.
  • Not following up with a new POST /api/v1/tickets/subscribe call when the intent is to change the callback URL rather than permanently stop notifications.

Related Endpoints

  • POST /api/v1/tickets/subscribe — Register a new webhook callback URL for ticket events.
  • GET /api/v1/tickets/getTickets — Fall back to polling if no subscription is active.
  • GET /api/v1/tickets/getCommentsByTicketId — Manually poll for comments without webhook support.

Example

curl -X POST https://hq.staging.netevia.dev/api/v1/tickets/unsubscribe \
  -H "Authorization: Basic $(echo -n 'username:password' | base64)" \
  -H "Content-Type: application/json" \
  -d '{}'
Body Params
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Response

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/json