---
title: "Opt in to ticket activity notifications"
method: POST
path: "/api/v1/ticket-notifications/{userId}/opt-in"
tags: ["tickets"]
---

# Opt in to ticket activity notifications

`POST /api/v1/ticket-notifications/{userId}/opt-in`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/ticket-notifications/{userId}/opt-in`
- Auth: HTTP bearer

Opt in to ticket activity notifications

## Path parameters

- `userId` string, required

## Response `200`

Default Response

- object
  - `success` true, required
  - `data` object, required
    - `userId` string, required
    - `optedOut` boolean, required
    - `message` string, required
  - `meta` object, required
    - `timestamp` number, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/farmersonly/apis/farmersonly-club-api.md) - [All operations](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/llms.txt) - [OpenAPI document](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/revisions/b4fa9123ba90?raw)
