Skip to content

Mark all postings seen

POST
/api/new/seen
curl --request POST \
--url http://127.0.0.1:8765/api/new/seen

Mark all seen: move the “new since” anchor to now. The one anchor GET /api/new and gigai scout new read. It never moves back: last_checked_at is the anchor after the call, previous what it was (null before the first check).

Success.

Media typeapplication/json
object
schema_version
required
Allowed value: scout-new-seen:1
key
additional properties
any
Example
{
"last_checked_at": "2026-10-03T09:30:00.000000Z",
"previous": "2026-10-01T14:02:00.000000Z",
"schema_version": "scout-new-seen:1",
"set_by": "mark_all_seen"
}

Forbidden / forbidden_origin: loopback peer and Host 127.0.0.1:<port> or localhost:<port> only (Origin too on writes).

Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Examplegenerated
{
"error": {
"allowed_keys": [
"example"
],
"code": "example",
"message": "example"
}
}

Target_unavailable

Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Example
{
"error": {
"code": "target_unavailable",
"message": "..."
}
}

Unsupported_media_type: writes need Content-Type: application/json.

Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Examplegenerated
{
"error": {
"allowed_keys": [
"example"
],
"code": "example",
"message": "example"
}
}

Unknown_key

Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Example
{
"error": {
"code": "unknown_key",
"message": "..."
}
}