Skip to content

Retire a chat session

POST
/chat-session/retire
curl --request POST \
--url https://auth.example.invalid/chat-session/retire \
--header 'Content-Type: application/json' \
--data '{ "idpToken": "example", "actor": "example", "lifecycleUid": "example", "holderProof": "example" }'

Fresh JSON IdP proof derives owner. Body is closed; unknown or missing fields are 400 before proof verification. Requires holderProof and exact lifecycleUid. HTTP 200 may have outcome=failed with pending work; inspect outcome. Origin is refused. Effect failures preserve native code and outcome; missing native outcome means unknown. Retain the same holder on an uncertain retry. Credential verification and native dispatch failures share the public peer refusal budget.

UTF-8 JSON; maximum 65536 bytes. An Authorization header does not replace the JSON proof.

Media typeapplication/json
object
idpToken
required
string
>= 1 characters
actor
required
string
lifecycleUid
required
string
holderProof
required
string

Examplegenerated

{
"idpToken": "example",
"actor": "example",
"lifecycleUid": "example",
"holderProof": "example"
}

Successful response.

Media typeapplication/json
object
outcome
required
string
Allowed values: retired alreadyRetired notStarted failed
pending
string

Example

{
"outcome": "retired"
}

Native refusal where code and outcome are supplied by the chat handler. Pre-dispatch method, Origin, media type and shape refusals are not-executed. Native outcome may be not-executed, executed or unknown. JSON parse/size errors and public admission/deadline errors have only error, without code or outcome.

Media typeapplication/json
One of:
object
error
required
string

Example

{
"outcome": "not-executed"
}

Native refusal where code and outcome are supplied by the chat handler. Pre-dispatch method, Origin, media type and shape refusals are not-executed. Native outcome may be not-executed, executed or unknown. JSON parse/size errors and public admission/deadline errors have only error, without code or outcome.

Media typeapplication/json
One of:
object
error
required
string

Example

{
"outcome": "not-executed"
}

Native refusal where code and outcome are supplied by the chat handler. Pre-dispatch method, Origin, media type and shape refusals are not-executed. Native outcome may be not-executed, executed or unknown. JSON parse/size errors and public admission/deadline errors have only error, without code or outcome.

Media typeapplication/json
One of:
object
error
required
string

Example

{
"outcome": "not-executed"
}

Native refusal where code and outcome are supplied by the chat handler. Pre-dispatch method, Origin, media type and shape refusals are not-executed. Native outcome may be not-executed, executed or unknown. JSON parse/size errors and public admission/deadline errors have only error, without code or outcome.

Media typeapplication/json
One of:
object
error
required
string

Example

{
"outcome": "not-executed"
}

JSON error. Route guards run before proof evaluation; parser failures are 400 and byte overflow is 413. An unexpected failure is 400 unless a route handles it separately.

Media typeapplication/json
object
error
required
string
code
string
outcome
string
Allowed values: not-executed executed unknown

Example

{
"outcome": "not-executed"
}

Native refusal where code and outcome are supplied by the chat handler. Pre-dispatch method, Origin, media type and shape refusals are not-executed. Native outcome may be not-executed, executed or unknown. JSON parse/size errors and public admission/deadline errors have only error, without code or outcome.

Media typeapplication/json
One of:
object
error
required
string

Example

{
"outcome": "not-executed"
}

Native refusal where code and outcome are supplied by the chat handler. Pre-dispatch method, Origin, media type and shape refusals are not-executed. Native outcome may be not-executed, executed or unknown. JSON parse/size errors and public admission/deadline errors have only error, without code or outcome.

Media typeapplication/json
One of:
object
error
required
string

Example

{
"outcome": "not-executed"
}

Native refusal where code and outcome are supplied by the chat handler. Pre-dispatch method, Origin, media type and shape refusals are not-executed. Native outcome may be not-executed, executed or unknown. JSON parse/size errors and public admission/deadline errors have only error, without code or outcome.

Media typeapplication/json
One of:
object
error
required
string

Example

{
"outcome": "not-executed"
}

Native refusal where code and outcome are supplied by the chat handler. Pre-dispatch method, Origin, media type and shape refusals are not-executed. Native outcome may be not-executed, executed or unknown. JSON parse/size errors and public admission/deadline errors have only error, without code or outcome.

Media typeapplication/json
One of:
object
error
required
string

Example

{
"outcome": "not-executed"
}

Native refusal where code and outcome are supplied by the chat handler. Pre-dispatch method, Origin, media type and shape refusals are not-executed. Native outcome may be not-executed, executed or unknown. JSON parse/size errors and public admission/deadline errors have only error, without code or outcome.

Media typeapplication/json
One of:
object
error
required
string

Example

{
"outcome": "not-executed"
}

Native refusal where code and outcome are supplied by the chat handler. Pre-dispatch method, Origin, media type and shape refusals are not-executed. Native outcome may be not-executed, executed or unknown. JSON parse/size errors and public admission/deadline errors have only error, without code or outcome.

Media typeapplication/json
One of:
object
error
required
string

Example

{
"outcome": "not-executed"
}

Native refusal where code and outcome are supplied by the chat handler. Pre-dispatch method, Origin, media type and shape refusals are not-executed. Native outcome may be not-executed, executed or unknown. JSON parse/size errors and public admission/deadline errors have only error, without code or outcome.

Media typeapplication/json
One of:
object
error
required
string

Example

{
"outcome": "not-executed"
}

Public admission cap (64 in flight), 10 second request deadline, or a route-specific unavailable read/effect. A service authority 503 may follow a binding; retain the request identity.

Media typeapplication/json
object
error
required
string
code
string
outcome
string
Allowed values: not-executed executed unknown

Example

{
"outcome": "not-executed"
}