Skip to content

Keep / Stop / Remind

POST
/v1/intel/trials/{id}/decision
curl --request POST \
--url https://api.trustysweep.com/v1/intel/trials/example/decision \
--header 'Content-Type: application/json' \
--cookie sweep_session=<sweep_session> \
--data '{ "decision": "keep", "remind_at": "2026-04-15T12:00:00Z" }'
id
required
string
/^trl_[0-9A-HJKMNP-TV-Z]{26}$/
Idempotency-Key
string
<= 255 characters

Unique key per logical operation. Same key + same body within 24h replays the original response with Idempotent-Replayed: true; same key + different body → 409 idempotency_key_reused.

Media typeapplication/json
object
decision
required
string
Allowed values: keep stop remind
remind_at
string format: date-time

OK

Media typeapplication/json
object
trial
required
object
id
required

Prefixed ULID (trl_…)

string
/^trl_[0-9A-HJKMNP-TV-Z]{26}$/
vendor
required
string
vendorDomain
One of:
string
product
One of:
string
startedAt
One of:
string format: date-time
endsAt
One of:
string format: date-time
postTrialAmountCents
One of:
integer
cadence
required
string
Allowed values: weekly monthly quarterly annual usage one_time unknown
annualizedCents
One of:
integer
cancellationPath
One of:
string
decision
required
string
Allowed values: undecided keep stop remind
remindAt
One of:
string format: date-time
evidenceLevel
required

CONFIRMED = direct platform/API/settlement evidence; DETECTED = reliable statement/email/invoice evidence; ESTIMATED = calculation from observable rates or incomplete evidence. An estimate is never presented as confirmed.

string
Allowed values: CONFIRMED DETECTED ESTIMATED
confidence
required
number
evidence
required
Array<object>
object
kind
required
string
Allowed values: email statement api invoice contract receipt user derived
ref
required
string
sourceId
string
observedAt
required
string format: date-time
excerpt
string
<= 300 characters
worthIt
One of:
object
daysRemaining
One of:
number
activeDays
One of:
integer
lastDetectedActivityAt
One of:
string format: date-time
estimatedCostPerActiveDayCents
One of:
integer
verdict
required
string
Allowed values: likely_worth_it unclear likely_not_worth_it
rationale
required
Array<string>
updatedAt
required
string format: date-time
action
required
string
Allowed values: none plan_created path_provided
plan_id
One of:

Prefixed ULID (pln_…)

string
/^pln_[0-9A-HJKMNP-TV-Z]{26}$/
path
One of:
string format: uri
Example
{
"trial": {
"id": "trl_01J8Z3K9M2Q4R6S8T0V2W4X6Y8",
"cadence": "weekly",
"decision": "undecided",
"evidenceLevel": "CONFIRMED",
"evidence": [
{
"kind": "email"
}
],
"worthIt": {
"verdict": "likely_worth_it"
}
},
"action": "none",
"plan_id": "pln_01J8Z3K9M2Q4R6S8T0V2W4X6Y8"
}
RateLimit-Limit
integer

Requests allowed in the current window.

RateLimit-Remaining
integer

Requests remaining in the current window.

RateLimit-Reset
integer

Seconds until the window resets.

Validation failed

Media typeapplication/problem+json

RFC 9457 problem details.

object
type
required
title
required
string
status
required
integer
detail
string
code
required

Machine-readable error code from errors.json

string
request_id
required
string
errors
Array<object>
object
path
required
string
message
required
string
Examplegenerated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"path": "example",
"message": "example"
}
]
}

Unauthenticated

Media typeapplication/problem+json

RFC 9457 problem details.

object
type
required
title
required
string
status
required
integer
detail
string
code
required

Machine-readable error code from errors.json

string
request_id
required
string
errors
Array<object>
object
path
required
string
message
required
string
Examplegenerated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"path": "example",
"message": "example"
}
]
}

Forbidden / action denied / step-up required

Media typeapplication/problem+json

RFC 9457 problem details.

object
type
required
title
required
string
status
required
integer
detail
string
code
required

Machine-readable error code from errors.json

string
request_id
required
string
errors
Array<object>
object
path
required
string
message
required
string
Examplegenerated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"path": "example",
"message": "example"
}
]
}

Not found

Media typeapplication/problem+json

RFC 9457 problem details.

object
type
required
title
required
string
status
required
integer
detail
string
code
required

Machine-readable error code from errors.json

string
request_id
required
string
errors
Array<object>
object
path
required
string
message
required
string
Examplegenerated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"path": "example",
"message": "example"
}
]
}

Conflict (state, stale plan, idempotency key reuse)

Media typeapplication/problem+json

RFC 9457 problem details.

object
type
required
title
required
string
status
required
integer
detail
string
code
required

Machine-readable error code from errors.json

string
request_id
required
string
errors
Array<object>
object
path
required
string
message
required
string
Examplegenerated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"path": "example",
"message": "example"
}
]
}

Rate limited

Media typeapplication/problem+json

RFC 9457 problem details.

object
type
required
title
required
string
status
required
integer
detail
string
code
required

Machine-readable error code from errors.json

string
request_id
required
string
errors
Array<object>
object
path
required
string
message
required
string
Examplegenerated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"path": "example",
"message": "example"
}
]
}
Retry-After
integer

Seconds to wait before retrying.

RateLimit-Limit
integer

Requests allowed in the current window.

RateLimit-Remaining
integer

Requests remaining in the current window.

RateLimit-Reset
integer

Seconds until the window resets.

Internal error

Media typeapplication/problem+json

RFC 9457 problem details.

object
type
required
title
required
string
status
required
integer
detail
string
code
required

Machine-readable error code from errors.json

string
request_id
required
string
errors
Array<object>
object
path
required
string
message
required
string
Examplegenerated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"code": "example",
"request_id": "example",
"errors": [
{
"path": "example",
"message": "example"
}
]
}