Skip to main content

Structuring Endpoint Reference

Reference for 3 Structuring endpoints of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.

Structuring pipeline — validation checks, approval gates with rules, result checks, pending approvals, and delivery triggers.

Every request needs an API key in the Authorization: Bearer header. Examples read the key from the TALONIC_API_KEY environment variable.

DELETE/v1/structuring/checks/{id}

Path parameters

id*string (uuid)Resource UUID.

curl

curl -X DELETE 'https://api.talonic.com/v1/structuring/checks/a1b2c3d4-e5f6-7890-abcd-ef1234567890' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/structuring/checks/a1b2c3d4-e5f6-7890-abcd-ef1234567890", {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Structuring check deleted.

{
  "deleted": true,
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
  • 401 — Missing or invalid API key.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
PUT/v1/structuring/gates/{id}

Path parameters

id*string (uuid)Resource UUID.

Request body (application/json)

name*string
descriptionstring
schema_idstring (uuid)

curl

curl -X PUT 'https://api.talonic.com/v1/structuring/gates/a1b2c3d4-e5f6-7890-abcd-ef1234567890' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "description": "string",
  "schema_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/structuring/gates/a1b2c3d4-e5f6-7890-abcd-ef1234567890", {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "string",
    "description": "string",
    "schema_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Approval gate updated.

{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "name": "string",
  "description": "string",
  "schema_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "rules": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "type": "string",
      "threshold": 1.5
    }
  ],
  "created_at": "2026-04-25T14:30:00.000Z",
  "updated_at": "2026-04-25T14:30:00.000Z"
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
DELETE/v1/structuring/gates/{id}

Path parameters

id*string (uuid)Resource UUID.

curl

curl -X DELETE 'https://api.talonic.com/v1/structuring/gates/a1b2c3d4-e5f6-7890-abcd-ef1234567890' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/structuring/gates/a1b2c3d4-e5f6-7890-abcd-ef1234567890", {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — Approval gate deleted.

{
  "deleted": true,
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
  • 401 — Missing or invalid API key.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.