An agent records an automatic action it carried out
POST
/api/v1/timeline
const url = 'https://deck.example.com/api/v1/timeline';const options = { method: 'POST', headers: {cookie: 'qd_auth=<qd_auth>', 'Content-Type': 'application/json'}, body: '{"account":null,"kind":"auto_action","refs":[],"text":"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/timeline \ --header 'Content-Type: application/json' \ --cookie qd_auth=<qd_auth> \ --data '{ "account": null, "kind": "auto_action", "refs": [], "text": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”quietdeck timeline add: agents post automatic actions they carried out.
Media typeapplication/json
Responses
Section titled “Responses”Media typeapplication/json
object
account
string | null
count
required
integer format: int64
created_at
required
string
id
required
integer format: int64
kind
required
read_at
string | null
refs
required
Array<string>
source
required
string
text
required
string
Example
{ "kind": "auto_action", "source": "runner"}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"}