On this page
- Request
- SupportCase
- SupportThreadMessage
- SupportAction
- SupportAuditEvent
- ResourceMeta
- SupportRequester
- SupportDecision
- SupportSourceRecord
- SupportEvidence
- SupportActor
- SupportChannelReply
- SupportRemedyRequest
- SupportEscalation
- SupportOverdue
- SupportDeadline
- SupportTrack
- Response
- SupportReconciliationException
- Errors
- Examples
Import a support case
Imports inert history with unchanged source IDs/keys/tombstones, full-record hashes and explicit migration exceptions.
This method is not served on the public API.
api.sylphx.comdoes not route this call: its backend is not deployed behind the public API, or does not implement the call. This page documents the contract. It is kept out of the sidebar and of search engines.
Imports inert history with unchanged source IDs/keys/tombstones, full-record hashes and explicit migration exceptions. It sends nothing, runs no agent and meters no resolution.
Not available yet. This method answers 501 with the problem code UNIMPLEMENTED.
- Path
POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/support_cases:import - Scope
notify:support:import - Effect
write— a successful call changes state. - Collection support_cases
- Validate-only
validate_only=trueruns every check and writes nothing
Request
| Field | Type | What it is |
|---|---|---|
parent | string | Authenticated destination environment. Required. |
source | string | Stable source namespace and migration run identity. |
support_cases | SupportCase[] | Original case records and typed projections; at most 500. |
messages | SupportThreadMessage[] | Original thread records, including internal messages and erasure tombstones. |
actions | SupportAction[] | Original actions/keys/receipts; ambiguous prior sends remain UNCERTAIN. Suppression never blocks inert CANCELLED/SUCCEEDED/UNCERTAIN history; import admits no PENDING/IN_FLIGHT action under suppression and sends nothing. |
audit_events | SupportAuditEvent[] | Original audit records; absent historical versions are not invented. |
source_sha256 | string | Full source-record hash of this batch; changed replay is refused. |
request_id | string | Stable UUID for this batch. |
validate_only | bool | Validate and compare without writing. |
SupportCase
| Field | Type | What it is |
|---|---|---|
name | string | The canonical resource name. |
meta | ResourceMeta | Strong ETag and common metadata. |
inbox | string | The queue owning this case. Required. |
display_number | string | Original customer-visible case number, including legacy CS numbers. |
subject | string | Case subject; untrusted customer content. Never returned again. |
requester | SupportRequester | Masked case-scoped requester snapshot; Knowledge owns mutable contacts. Required. |
tenant_subject | string | Tenant product/account reference. It conveys no verified account ownership. Never returned again. |
decision | SupportDecision | Current primary decision, including the required owner and next action. Required. |
receive_time | timestamp | First source-reported received time, preserved through import. Required. |
source_records | SupportSourceRecord[] | Exact source identities and protected full-record evidence references. |
source_state | string | Raw source state/priority/category are preserved rather than collapsed. |
priority | string | Case-level priority is separate from state and issue classification. |
last_inbound_time | timestamp | Last inbound activity, if known. |
last_outbound_time | timestamp | Last confirmed outbound activity, if known. |
last_activity_time | timestamp | Last activity, including internal notes. |
resolve_time | timestamp | Original resolution time, if known; FINAL_NO_REPLY is still ingestible. |
evidence | SupportEvidence[] | Source evidence, including admission-refused/automated records when linked. |
spam | SupportSpamDisposition | Spam suppression survives incoming evidence/payment/notices until a verdict. One of suppressed, review_required, not_spam, confirmed_customer. |
pending_proof | SupportPendingProof | Required migration proof before legacy pending may mean WAITING_CUSTOMER. One of last_outbound, staff_action, source_history. |
SupportThreadMessage
| Field | Type | What it is |
|---|---|---|
name | string | Canonical thread message name. |
meta | ResourceMeta | Timestamps and metadata. |
source_key | string | Immutable source-scoped event identity; changed replays are refused. Required. |
visibility | SupportMessageVisibility | Explicit audience; internal notes never enter the customer timeline. Required. One of public, internal. |
author | SupportActor | Verified author; never inferred from a claimed From address. |
body | string | Text body or evidence projection; untrusted personal content. Never returned again. |
evidence | SupportEvidence[] | Source evidence, including explicitly untrusted HTML and attachments. |
channel_id | string | Existing channel-link ID, not a credential. |
thread_keys | string[] | Original provider message identity and ancestry. |
action | string | Related business action, never a notification delivery state alias. |
erased | bool | Tombstone; source keys/ancestry survive authorized erasure. |
source_records | SupportSourceRecord[] | Original IDs/records for lossless migration. |
direction | string | Source direction: inbound, outbound or internal; independent of visibility. |
SupportAction
| Field | Type | What it is |
|---|---|---|
name | string | Canonical action name. |
meta | ResourceMeta | Strong ETag and creation/update times. |
idempotency_key | string | Exact stable caller/source key; never replaced on retry or cutover. |
payload_sha256 | string | SHA-256 of immutable admitted intent bytes; changed-key reuse is refused. |
track_id | string | Related action/issue track in the same case. |
reply | SupportChannelReply | Reply using an existing channel authority. One of the intent group. |
remedy | SupportRemedyRequest | Request the tenant's own remedy API; Support never writes product data. One of the intent group. |
escalation | SupportEscalation | Notify an accountable reviewer through an existing API. One of the intent group. |
source_records | SupportSourceRecord[] | Source outbox ID/key/payload/leases/attempts retained as protected evidence. |
SupportAuditEvent
| Field | Type | What it is |
|---|---|---|
name | string | Canonical audit name. |
meta | ResourceMeta | Committed timestamps. |
actor | SupportActor | Verified actor/decider for this event. |
before | SupportDecision | Previous complete primary decision, including tracks and deadlines. |
after | SupportDecision | New complete primary decision. |
before_version | int64 | Previous aggregate version, checked before applying the event. |
version | int64 | New aggregate version; exactly before_version + 1 for a transition. |
source_key | string | Source event key; repeated delivery cannot create another transition. |
overdue | SupportOverdue | Typed overdue fact, when this is a due-scan event instead of a transition. |
source_records | SupportSourceRecord[] | Protected original historical event, when importing old audit without versions. |
ResourceMeta
| Field | Type | What it is |
|---|---|---|
labels | map<string, string> | Caller-writable, indexed labels (AIP-122 label rules). |
annotations | map<string, string> | Caller-writable, unindexed annotations. |
display_name | string | Caller-writable human-readable name. |
SupportRequester
| Field | Type | What it is |
|---|---|---|
contact | string | Permission-scoped Knowledge contact resource, when available. |
masked_identity | string | Masked contact address or channel identity for ordinary case reads. |
display_name | string | Source display name; treated as personal data. Never returned again. |
link_state | string | none, suggested, confirmed or cleared; an unconfirmed link grants nothing. |
tenant_subject | string | Tenant-owned subject mapping, not a Support-issued user identity. Never returned again. |
link_actor | SupportActor | Who verified or cleared the link, if known. |
link_time | timestamp | When the source link was verified or cleared, if known. |
source_records | SupportSourceRecord[] | Original requester identity and source record, including tombstones. |
SupportDecision
| Field | Type | What it is |
|---|---|---|
state | SupportCaseState | Exactly one primary state. Required. One of act_now, scheduled, waiting_customer, waiting_review, final_no_reply. |
owner | string | Accountable Access principal; required even while waiting or final. Required. |
reason | SupportDecisionReason | Typed cause of this decision or reopen. Required. One of policy, operator, new_evidence, new_payment, legal_notice, regulatory_notice, due, migration, spam_reclassification, not_spam, confirmed_customer, institutional_notice. |
explanation | string | Customer-safe explanation; no credentials or unrestricted product records. Required. |
next_action_at | timestamp | Required for every state, including FINAL_NO_REPLY. Never a delivery retry. Required. |
deadlines | SupportDeadline[] | May be empty when no hard deadline applies; each entry keeps its basis. |
tracks | SupportTrack[] | Independent linked issues and actions; mixed cases cannot drop an issue. |
reopen_triggers | SupportReopenTrigger[] | Required triggers. On spam they request reclassification review only; no customer-facing reopen or outbound action occurs before a clearing verdict. Required. One of new_evidence, new_payment, legal_notice, regulatory_notice. |
policy_version | string | Immutable tenant-policy API resource and version that produced the decision. Required. |
time_zone | string | IANA tenant time zone used for business-hours/deadline arithmetic. Required. |
settlement_buffer | duration | Nonnegative settlement buffer used in that calculation. Required. |
evidence_ids | string[] | Evidence IDs used by the decider, never evidence invented by a model. |
SupportSourceRecord
| Field | Type | What it is |
|---|---|---|
source | string | Stable source namespace, retained across retries and migration phases. |
source_table | string | Original relation or event kind. |
source_id | string | Unchanged source primary key, including numeric case/message/outbox IDs. |
evidence | SupportEvidence | Evidence holding the full canonical source record, not a lossy projection. |
source_version | int64 | Original source version, if present; zero means absent, not fabricated. |
SupportEvidence
| Field | Type | What it is |
|---|---|---|
id | string | Stable evidence identity in the tenant environment. |
authority | string | Authenticated source, not a caller-selected trust claim. |
resource | string | Permissioned public API resource containing the bytes; never a credential URL. |
sha256 | string | SHA-256 of the original evidence bytes, lowercase hexadecimal. |
media_type | string | Registered media type of the original bytes. |
size_bytes | int64 | Exact byte length, not the number of Unicode characters. |
receive_time | timestamp | Source-reported received time. |
erased | bool | Erasure keeps identity/hash/dedupe tombstones, never resurrects source content. |
SupportActor
| Field | Type | What it is |
|---|---|---|
principal | string | Acting Access principal or authenticated external source identity. Required. |
delegated_for | string | Delegating principal, when the grant records one. |
authority | string | Public source authority for a workload or channel event. |
SupportChannelReply
| Field | Type | What it is |
|---|---|---|
transport | string | Permissioned channel resource; deployment and provider host are irrelevant. |
recipient | string | Channel-scoped recipient/conversation identity, not verified tenant identity. Never returned again. |
body | string | Public reply body; legal/permission checks precede action admission. Never returned again. |
subject | string | Threading subject, when the channel has one. Never returned again. |
local_message_id | string | Exact original local message identity and provider ancestry. |
in_reply_to | string | Nearest parent provider message identity. |
references | string[] | Original ancestry in order. |
SupportRemedyRequest
| Field | Type | What it is |
|---|---|---|
operation | string | Published tenant operation resource or API endpoint, under the caller grant. |
request | SupportEvidence | Content-addressed, permissioned request evidence; contains no credentials. |
authorization_receipt | string | Tenant authorization/verification receipt binding exact remedy arguments. |
SupportEscalation
| Field | Type | What it is |
|---|---|---|
reviewer | string | Accountable principal or reviewer group. |
destination | string | Permissioned destination API resource. |
brief | string | Review brief; internal, never a customer message. Never returned again. |
SupportOverdue
| Field | Type | What it is |
|---|---|---|
kind | string | next_action, track_next_action or deadline; exact target ID accompanies it. |
target_id | string | Deadline/track identity, or empty for the primary next action. |
due_time | timestamp | Time that was missed, never silently advanced by the scan. |
detect_time | timestamp | When the miss was detected. |
SupportDeadline
| Field | Type | What it is |
|---|---|---|
id | string | Immutable obligation identity within the case. Required. |
kind | SupportDeadlineKind | Legal, platform, contract or internal obligation. Required. One of legal, platform, contract, internal. |
jurisdiction | string | Applicable jurisdiction, or an explicit internal/platform scope. Required. |
basis | string | Exact rule, law, platform term or contract establishing the deadline. Required. |
due_time | timestamp | Absolute computed deadline; never extended by transport retry. Required. |
track_id | string | Related issue/action track; empty for a case-wide obligation. |
SupportTrack
| Field | Type | What it is |
|---|---|---|
id | string | Immutable identity within the case. Required. |
kind | SupportTrackKind | ISSUE or ACTION; never a competing case/thread identity. Required. One of issue, action. |
category | string | Tenant's issue category, for example payment, privacy or technical. Required. |
state | SupportCaseState | Independent track state; primary state cannot hide outstanding tracks. Required. One of act_now, scheduled, waiting_customer, waiting_review, final_no_reply. |
owner | string | Accountable principal for this track. Required. |
next_action_at | timestamp | Required follow-up for this track. Required. |
linked_track_ids | string[] | Other track IDs in the same case; no cross-tenant links. |
action | string | Action resource associated with an action track, when admitted. |
evidence_ids | string[] | Evidence IDs relevant to this issue, not all case personal data. |
reason | string | Classification reason for this track. Required. |
Response
| Field | Type | What it is |
|---|---|---|
source | string | Source namespace echoed for verification. |
imported | int64 | Inserted records, counted across every supplied kind. |
replayed | int64 | Exact unchanged replays; no duplicate effect is created. |
target_sha256 | string | Full canonical destination batch hash. |
exceptions | SupportReconciliationException[] | Every missing classification/proof/source mismatch, not a truncated sample. |
SupportReconciliationException
| Field | Type | What it is |
|---|---|---|
resource | string | Affected case/action/source resource, scoped by the authenticated query. |
kind | string | unowned, unscheduled, overdue, uncertain_action, intake_late or source_mismatch. |
reason | string | Actionable explanation with no unrestricted customer content. |
due_time | timestamp | Earliest related missed action or obligation, when applicable. |
Errors
UNAUTHENTICATED— No valid key or token was presented.PERMISSION_DENIED— The key lacks the method's permission.INVALID_FIELD— A field failed validation.RESOURCE_NOT_FOUND— The named Resource does not exist or is not visible.ETAG_MISMATCH— The etag sent does not match the Resource's current etag.INVALID_STATE— The Resource is in a state that forbids the call.UNAVAILABLE— The Resource store, the owning service's backend, or the key verifier's snapshot is unavailable; retry after Retry-After.UNIMPLEMENTED— The path or method is not served (yet) at this version.IDEMPOTENCY_KEY_REUSED— An Idempotency-Key was reused with another body.IDEMPOTENCY_IN_PROGRESS— The first call with this Idempotency-Key is still running.
Every error arrives in the body Errors describes.
Examples
curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/support_cases:import" \
-H "Authorization: Bearer $SYLPHX_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'