Watch a thread
POST
/api/v1/watches
const url = 'https://deck.example.com/api/v1/watches';const options = { method: 'POST', headers: {cookie: 'qd_auth=<qd_auth>', 'Content-Type': 'application/json'}, body: '{"account":"example","subject":null,"thread_key":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://deck.example.com/api/v1/watches \ --header 'Content-Type: application/json' \ --cookie qd_auth=<qd_auth> \ --data '{ "account": "example", "subject": null, "thread_key": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Watch a thread from the card’s menu: replies on it may ping.
Media typeapplication/json
Watch a thread from the card’s menu: replies on it may ping.
object
account
required
string
subject
string | null
thread_key
required
string
Responses
Section titled “Responses”Media typeapplication/json
object
account
required
string
active
required
boolean
created_at
required
string
id
required
integer format: int64
subject
string | null
thread_key
required
string
Example generated
{ "account": "example", "active": true, "created_at": "example", "id": 1, "subject": "example", "thread_key": "example"}default
Section titled “default”An error, with its message.
Media typeapplication/json
Every error the REST API returns, with an HTTP status.
object
error
required
string
Example generated
{ "error": "example"}