Skip to main content

Processes Endpoint Reference

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

The Process Plane: processes that govern what happens to documents and items (reading, look-ups, calls, sign-offs, forms, mail, AI steps) and who signs. Not an app: every route needs the key's person to hold a Process Plane permission in the workspace (process_view to read, process_run to start, process_sign to sign), read live on each call.

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

GET/v1/processes

curl

curl -X GET 'https://api.talonic.com/v1/processes' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes", {
  method: 'GET',
  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 — The processes.

{
  "data": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "string",
      "liveVersion": 1,
      "folder": "string",
      "tags": [
        "string"
      ],
      "steps": 1,
      "editedAt": "2026-01-15T09:30:00Z"
    }
  ]
}
  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
POST/v1/processes

Request body (application/json)

descriptionstring
workflowobject
namestring
draftobject

curl

curl -X POST 'https://api.talonic.com/v1/processes' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "description": "string",
  "workflow": {},
  "name": "string",
  "draft": {}
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "description": "string",
    "workflow": {},
    "name": "string",
    "draft": {}
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { id, name, steps, explanation, questions, stillOpen, notes }.

  • 400 — The request is invalid.
  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
GET/v1/processes/people

curl

curl -X GET 'https://api.talonic.com/v1/processes/people' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/people", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { roles, groups }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
GET/v1/processes/mailboxes

curl

curl -X GET 'https://api.talonic.com/v1/processes/mailboxes' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/mailboxes", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { data: [{ id, name, type, canSend, ownership, mine, usable }] }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
PUT/v1/processes/mailboxes/{mailboxId}/ownership

Path parameters

mailboxId*string (uuid)

Request body (application/json)

ownership*string ("individual", "company")

curl

curl -X PUT 'https://api.talonic.com/v1/processes/mailboxes/3fa85f64-5717-4562-b3fc-2c963f66afa6/ownership' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "ownership": "individual"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/mailboxes/3fa85f64-5717-4562-b3fc-2c963f66afa6/ownership", {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "ownership": "individual"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { id, ownership }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
GET/v1/processes/secrets

curl

curl -X GET 'https://api.talonic.com/v1/processes/secrets' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/secrets", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { data: [name] }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
PUT/v1/processes/secrets/{name}

Path parameters

name*string

Request body (application/json)

value*string

curl

curl -X PUT 'https://api.talonic.com/v1/processes/secrets/name' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "value": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/secrets/name", {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "value": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Stored.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
DELETE/v1/processes/secrets/{name}

Path parameters

name*string

curl

curl -X DELETE 'https://api.talonic.com/v1/processes/secrets/name' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/secrets/name", {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Removed.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
GET/v1/processes/lookup-data

curl

curl -X GET 'https://api.talonic.com/v1/processes/lookup-data' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/lookup-data", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { state, indexes: [{ name, fields, rows, ready }] }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
POST/v1/processes/runs/{runId}/retry

Path parameters

runId*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/processes/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/retry' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/retry", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { retried }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
GET/v1/processes/runs

Query parameters

statestring ("running", "completed", "failed", "stuck")
processstring (uuid)
waitingForMestring ("0", "1")Only runs with a sign-off or form waiting for the key's person.
pageinteger

curl

curl -X GET 'https://api.talonic.com/v1/processes/runs' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/runs", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { runs, page, more }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
GET/v1/processes/waiting

curl

curl -X GET 'https://api.talonic.com/v1/processes/waiting' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/waiting", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { data: [{ processId, process, stepId, step, waiting }] }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
GET/v1/processes/{id}

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: The process.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
DELETE/v1/processes/{id}

Path parameters

id*string (uuid)

curl

curl -X DELETE 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Deleted.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
PATCH/v1/processes/{id}

Required scope: processes:write

Path parameters

id*string (uuid)

Request body (application/json)

namestring
folderstring
tagsstring[]

curl

curl -X PATCH 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "folder": "string",
  "tags": [
    "string"
  ]
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "string",
    "folder": "string",
    "tags": [
      "string"
    ]
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: The process.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
  • 422 — An empty name.
GET/v1/processes/{id}/check

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/check' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/check", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { canPublish, stillNeeded: [{ stepId, key, message }], problems }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
GET/v1/processes/{id}/changes

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/changes' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/changes", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { changes: [{ type, stepId, text }] }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
GET/v1/processes/{id}/versions

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/versions' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/versions", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: The versions

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
POST/v1/processes/{id}/versions/{n}/rollback

Path parameters

id*string (uuid)
n*integer

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/versions/1/rollback' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/versions/1/rollback", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: The version now live.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
POST/v1/processes/{id}/change

Path parameters

id*string (uuid)

Request body (application/json)

change*string
stepIdstring
confirmedboolean

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/change' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "change": "string",
  "stepId": "string",
  "confirmed": true
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/change", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "change": "string",
    "stepId": "string",
    "confirmed": true
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { status: changed, explanation, changes, questions, stillOpen }, { status: needs_confirmation, reductions } or { status: refused, why }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
PUT/v1/processes/{id}/draft

Path parameters

id*string (uuid)

Request body (application/json)

draft*object
expectedUpdatedAt*string (date-time)
confirmedboolean

curl

curl -X PUT 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/draft' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "draft": {},
  "expectedUpdatedAt": "2026-01-15T09:30:00Z",
  "confirmed": true
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/draft", {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "draft": {},
    "expectedUpdatedAt": "2026-01-15T09:30:00Z",
    "confirmed": true
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { status: changed, editedAt, stillOpen } or { status: needs_confirmation, reductions }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
  • 409 — The draft was changed by someone else in the meantime.
POST/v1/processes/{id}/publish

Path parameters

id*string (uuid)

Request body (application/json)

reasonstring

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/publish' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/publish", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "reason": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { version, changed }.

  • 400 — The draft still needs something; the answer lists it.
  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
POST/v1/processes/{id}/test-run

Path parameters

id*string (uuid)

Request body (application/json)

documentIds*string (uuid)[]

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/test-run' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "documentIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ]
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/test-run", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "documentIds": [
      "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ]
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { processId, endsAt, runId }; follow it with GET /v1/processes/{processId}/status.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
GET/v1/processes/{id}/address

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/address' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/address", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { exists, createdAt, signedWith, test: { exists, createdAt } }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
PUT/v1/processes/{id}/address

Path parameters

id*string (uuid)

Request body (application/json)

testboolean
replaceboolean

curl

curl -X PUT 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/address' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "test": true,
  "replace": true
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/address", {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "test": true,
    "replace": true
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { token, path }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
  • 409 — The address exists and replace was not sent.
PUT/v1/processes/{id}/address/signing

Path parameters

id*string (uuid)

Request body (application/json)

secretName*string

curl

curl -X PUT 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/address/signing' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "secretName": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/address/signing", {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "secretName": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: Set.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
GET/v1/processes/{id}/items

Path parameters

id*string (uuid)

Query parameters

runstring (uuid)Default: the latest run.

curl

curl -X GET 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/items' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/items", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { runId, items: [{ documentId, name, state, at }] }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
POST/v1/processes/{id}/items

Path parameters

id*string (uuid)

Request body (application/json)

values*object

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/items' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "values": {
    "Vendor": "Acme"
  }
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/items", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "values": {
      "Vendor": "Acme"
    }
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { runId, process, reply? }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
  • 422 — A field name the process does not have (the answer lists its fields).
POST/v1/processes/{id}/run

Path parameters

id*string (uuid)

Request body (application/json)

documentIds*string (uuid)[]

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/run' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "documentIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ]
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/run", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "documentIds": [
      "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ]
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { runId, pipelineIds }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
GET/v1/processes/{id}/status

Path parameters

id*string (uuid)

Query parameters

runstring (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/status' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/status", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: The run's status by step.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
GET/v1/processes/{id}/runs/{runId}/items/{itemKey}

Path parameters

id*string (uuid)
runId*string (uuid)
itemKey*string

curl

curl -X GET 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/items/itemKey' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/items/itemKey", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { steps: [{ stepId, name, kind, status, startedAt, endedAt, note, canRetry }], values: [{ name, value }] }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
POST/v1/processes/{id}/runs/{runId}/holds/{stepId}/release

Path parameters

id*string (uuid)
runId*string (uuid)
stepId*string

Request body (application/json)

itemsstring[]Item keys; default every waiting item.
decisionstring

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/holds/3fa85f64-5717-4562-b3fc-2c963f66afa6/release' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "items": [
    "string"
  ],
  "decision": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/holds/3fa85f64-5717-4562-b3fc-2c963f66afa6/release", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "items": [
      "string"
    ],
    "decision": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { released, alreadySigned }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
POST/v1/processes/{id}/runs/{runId}/holds/{stepId}/send-back

Path parameters

id*string (uuid)
runId*string (uuid)
stepId*string

Request body (application/json)

items*string[]
reason*string

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/holds/3fa85f64-5717-4562-b3fc-2c963f66afa6/send-back' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "items": [
    "string"
  ],
  "reason": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/holds/3fa85f64-5717-4562-b3fc-2c963f66afa6/send-back", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "items": [
      "string"
    ],
    "reason": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { sentBack }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
POST/v1/processes/lookup-data/build

Required scope: processes:write

curl

curl -X POST 'https://api.talonic.com/v1/processes/lookup-data/build' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/lookup-data/build", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { queued }.

  • 400 — The request is invalid.
  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
POST/v1/processes/groups

Required scope: processes:write

Request body (application/json)

name*string
descriptionstring
member_idsstring (uuid)[]

curl

curl -X POST 'https://api.talonic.com/v1/processes/groups' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "description": "string",
  "member_ids": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ]
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/groups", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "string",
    "description": "string",
    "member_ids": [
      "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ]
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { id, name, description, members: [{ id, name, email }] }.

  • 400 — The request is invalid.
  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 409 — A group with that name exists.
DELETE/v1/processes/groups/{groupId}

Required scope: processes:write

Path parameters

groupId*string (uuid)

curl

curl -X DELETE 'https://api.talonic.com/v1/processes/groups/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/groups/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { deleted: true }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
PATCH/v1/processes/groups/{groupId}

Required scope: processes:write

Path parameters

groupId*string (uuid)

Request body (application/json)

namestring
descriptionstring

curl

curl -X PATCH 'https://api.talonic.com/v1/processes/groups/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "description": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/groups/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "string",
    "description": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: The group with its members.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
  • 409 — A group with that name exists.
PUT/v1/processes/groups/{groupId}/members

Required scope: processes:write

Path parameters

groupId*string (uuid)

Request body (application/json)

member_ids*string (uuid)[]

curl

curl -X PUT 'https://api.talonic.com/v1/processes/groups/3fa85f64-5717-4562-b3fc-2c963f66afa6/members' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "member_ids": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ]
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/groups/3fa85f64-5717-4562-b3fc-2c963f66afa6/members", {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "member_ids": [
      "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ]
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: The group with its members.

  • 400 — The request is invalid.
  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
GET/v1/processes/{id}/export

Required scope: read

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/export' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/export", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { format: talonic-process, version: 1, name, exportedAt, doc }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
GET/v1/processes/{id}/resources

Required scope: read

Path parameters

id*string (uuid)

Query parameters

versioninteger

curl

curl -X GET 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/resources' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/resources", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { data: [{ kind, id, version, stepIds, madeByProcess }] }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
POST/v1/processes/{id}/extract-pipeline

Required scope: processes:write

Path parameters

id*string (uuid)

Request body (application/json)

namestringName of the new pipeline.

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/extract-pipeline' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/extract-pipeline", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { process, pipeline }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
  • 422 — The draft has no document steps to move, or it is already a pipeline.
POST/v1/processes/{id}/try

Required scope: processes:write

Path parameters

id*string (uuid)

Request body (application/json)

valuesobject
choicesobject

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/try' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "values": {},
  "choices": {}
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/try", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "values": {},
    "choices": {}
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { path: [stepId], stop }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
GET/v1/processes/{id}/form-preview/{stepId}

Required scope: read

Path parameters

id*string (uuid)
stepId*string

curl

curl -X GET 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/form-preview/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/form-preview/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { title, intro, submitLabel, needsCode, fields: [{ key, label, help, required, kind, choices }] }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
GET/v1/processes/{id}/examples

Required scope: read

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/examples' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/examples", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { data: [{ id, itemKey, label, note, createdAt, steps }] }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
POST/v1/processes/{id}/examples

Required scope: processes:write

Path parameters

id*string (uuid)

Request body (application/json)

runId*string (uuid)
itemKey*string
notestring

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/examples' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "runId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "itemKey": "string",
  "note": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/examples", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "runId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "itemKey": "string",
    "note": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { kept: true }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
  • 409 — The item has not been through any step yet.
DELETE/v1/processes/{id}/examples/{exampleId}

Required scope: processes:write

Path parameters

id*string (uuid)
exampleId*string (uuid)

curl

curl -X DELETE 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/examples/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/examples/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { removed }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
POST/v1/processes/{id}/evaluate

Required scope: read

Path parameters

id*string (uuid)

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/evaluate' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/evaluate", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { total, same, changed: [{ exampleId, label, was, now, partsAt, stop }] }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
GET/v1/processes/{id}/scripts

Required scope: read

Path parameters

id*string (uuid)

curl

curl -X GET 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/scripts' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/scripts", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { [stepId]: { tested?, approved? } }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
POST/v1/processes/{id}/steps/{stepId}/script/draft

Required scope: processes:write

Path parameters

id*string (uuid)
stepId*string

Request body (application/json)

purpose*string

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/steps/3fa85f64-5717-4562-b3fc-2c963f66afa6/script/draft' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "purpose": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/steps/3fa85f64-5717-4562-b3fc-2c963f66afa6/script/draft", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "purpose": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { lua, hash, explanation }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
  • 422 — The step writes no fields yet, or no script could be written.
  • 503 — Script writing is unavailable for the moment; try again.
POST/v1/processes/{id}/steps/{stepId}/script/test

Required scope: processes:write

Path parameters

id*string (uuid)
stepId*string

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/steps/3fa85f64-5717-4562-b3fc-2c963f66afa6/script/test' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/steps/3fa85f64-5717-4562-b3fc-2c963f66afa6/script/test", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { hash, ok, results }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
  • 409 — No records to test on yet.
  • 504 — The test did not finish in time; try again.
POST/v1/processes/{id}/steps/{stepId}/script/approve

Required scope: processes:write

Path parameters

id*string (uuid)
stepId*string

Request body (application/json)

hash*string

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/steps/3fa85f64-5717-4562-b3fc-2c963f66afa6/script/approve' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "hash": "string"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/steps/3fa85f64-5717-4562-b3fc-2c963f66afa6/script/approve", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "hash": "string"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { approved: true, hash }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
  • 409 — The script changed since the hash was read, or it has no passing test.
GET/v1/processes/{id}/sign-offs/{stepId}

Required scope: read

Path parameters

id*string (uuid)
stepId*string

curl

curl -X GET 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/sign-offs/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/sign-offs/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 200: no JSON body

Response 200: { process, step, canSign, items: [{ runId, documentId, name, since, values, alreadySigned }], history }.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
POST/v1/processes/{id}/runs/{runId}/steps/{stepId}/items/{itemKey}/retry

Required scope: processes:write

Path parameters

id*string (uuid)
runId*string (uuid)
stepId*string
itemKey*string

curl

curl -X POST 'https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/steps/3fa85f64-5717-4562-b3fc-2c963f66afa6/items/itemKey/retry' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/processes/3fa85f64-5717-4562-b3fc-2c963f66afa6/runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/steps/3fa85f64-5717-4562-b3fc-2c963f66afa6/items/itemKey/retry", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
// 201: no JSON body

Response 201: { retried }; false when the step had not failed.

  • 403 — The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
  • 404 — The requested resource was not found.
  • 422 — This step cannot be tried again; run the item again instead.