Skip to main content
POST
Submit a case

Authorizations

X-API-Key
string
header
required

A tenant-scoped API key provisioned by Frayme.

Body

application/json
workflowId
string
required

The workflow to route this case through. Provisioned for you by Frayme.

type
enum<string>
required

The case type. Determines which subject sub-struct is required.

Available options:
KYC,
KYB,
Transaction
payload
object
required

Validated against the workflow's input schema. Fields and types are dictated by the workflow you target; a payload that does not match the schema returns 400.

subject
object
required

Typed business attributes used for entity resolution and review. Set exactly one sub-struct, and it must match type: transaction for Transaction, person for KYC, business for KYB.

workflowVersion
integer

Pin the version your client expects. If omitted, the workflow's current published version is used.

metadata
object

Free-form audit fields; surfaced in the portal and event log.

idempotencyKey
string

If provided and a case with the same key already exists, the existing case is returned with 200 OK instead of 201 Created.

eventTimestamp
string<date-time>

ISO-8601 timestamp of the originating business event.

Response

A case already existed for the supplied idempotencyKey.

caseId
string
requestId
string
status
string

Lifecycle status of the newly-created case (e.g. received).