Skip to main content
POST

Authorizations

Authorization
string
header
required

Identify accepts a workspace API key (sk_…). Loom accepts either a short-lived session token (direct) or a workspace API key (relay).

Headers

Idempotency-Key
string

Makes this POST safe to retry. The first call does the work and its response is stored; a retry with the same key returns that stored response with Idempotency-Replayed: true, without charging again. Same key with a different body is rejected. Keys expire after 24 hours.

Maximum string length: 255

Query Parameters

wait
string

Omit for an immediate 202. true/1 holds until done or the 25s deadline; a number holds min(n, 25s). Finished within the hold → 200 with the result; otherwise 202.

Body

application/json

Pass template, schema, or both — an inline schema overlays the type.

document
object
required
template
string

A saved schema type id (sch_…) to fill against, or auto to let us pick. With auto we read the document, match it against the schema types in your workspace, fill the one that fits, and return the match and our confidence. Nothing fits → result is unmatched.

schema
object

An inline restricted JSON Schema. Sent alone, or as an overlay merged onto template.

Response

Completed within the wait deadline.

status
string
required
Allowed value: "success"
data
object
required