Niah

App · 25 actions

Put questions to panels of Niah's AI agents, chat with Niah models, run Niah automations and manage tasks.

Actions

ActionWhat it does
Cancel consultationStop a consultation that is still running.
Complete taskMark a task as done.
Create consultationAsk a panel of Niah's AI agents a question; they answer in the background.
Create taskAdd a to-do or reminder in Niah.
Delete taskDelete a task.
Get accountGet your Niah organization, this key's permissions, plan limits and this month's spend.
Get automationGet one automation's details.
Get automation runGet one run of an automation.
Get batchGet how far a batch of consultations has got.
Get consultationGet a consultation's status and, once it is complete, Niah's summary of the answers.
Get taskGet one task with its subtasks and comments.
Get usageGet what your organization spent on Niah over a period, in total and by person.
List automation runsList an automation's runs, with their status and results.
List automationsList your organization's Niah automations.
List batchesList your organization's batches of consultations, filtered by status or date.
List consultation answersList each agent's answer to a consultation.
List consultationsList your organization's consultations, filtered by status or date.
List membersList the people in your Niah organization.
List modelsList the Niah models your organization can chat with.
List panelsList the panels of AI agents your organization can consult.
List task listsList the task lists the key's creator can see.
List tasksList the tasks the key's creator can see, filtered as you choose.
Run automationStart a Niah automation now, with details for it to work on.
Send chat messageAsk a Niah model for a reply to a conversation.
Update taskChange a task's title, notes, due date or other details.

Cancel consultation

Stop a consultation that is still running.

Inputs

ConsultationidtextRequired
The consultation to stop. Pick one, or use an ID from List consultations.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": {
      "analysis": "Across the panel, the consensus was to pilot it with one team first.",
      "completed_at": "2026-07-29T18:35:00Z",
      "created_at": "2026-07-29T18:30:00Z",
      "current_round": 1,
      "id": "b1a2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "poll_url": "https://api.niah.si/v1/consultations/b1a2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "response_count": 5,
      "started_at": "2026-07-29T18:30:02Z",
      "status": "cancelled",
      "target_agent_count": 5,
      "title": "Should we adopt a 4-day work week?"
    }
  }
}

Complete task

Mark a task as done.

Inputs

TaskidtextRequired
The task to complete. Pick one, or use an ID from List tasks.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": {
      "assignee_ids": [
        "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
      ],
      "comments": [
        {
          "body": "Draft is in the shared folder.",
          "created_at": "2026-07-29T18:30:00Z",
          "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
          "updated_at": "2026-07-29T18:35:00Z",
          "user_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
        }
      ],
      "completed_at": "2026-11-30T16:00:00Z",
      "created_at": "2026-07-29T18:30:00Z",
      "description": "Include the hiring plan.",
      "due_at": "2026-12-05T17:00:00Z",
      "flagged": false,
      "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
      "pinned": false,
      "reporter_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
      "subtasks": [
        {
          "completed_at": "2026-11-30T16:00:00Z",
          "created_at": "2026-07-29T18:30:00Z",
          "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
          "position": 0,
          "title": "Send the Q3 board pack",
          "updated_at": "2026-07-29T18:35:00Z"
        }
      ],
      "task_list_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
      "title": "Send the Q3 board pack",
      "type": "todo",
      "updated_at": "2026-07-29T18:35:00Z",
      "user_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
    }
  }
}

Create consultation

Ask a panel of Niah's AI agents a question; they answer in the background.

Inputs

QuestiontitletextRequired
The question or topic to put to the agents.
Contextdescriptiontext
Background the agents should weigh.
Number of agentstarget_agent_countnumber
How many agents to ask. Niah's default is 5.At least 1.
Panelagent_panel_idtext
A panel of agents to ask, instead of letting Niah choose. Pick one, or use an ID from List panels.
Professionprofession_filtertext
Only ask agents of this profession, such as Economist.
Agentsagent_idslist
The IDs of particular agents to ask.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": {
      "analysis": "",
      "completed_at": "2026-07-29T18:35:00Z",
      "created_at": "2026-07-29T18:30:00Z",
      "current_round": 1,
      "id": "b1a2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "poll_url": "https://api.niah.si/v1/consultations/b1a2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "response_count": 5,
      "started_at": "2026-07-29T18:30:02Z",
      "status": "running",
      "target_agent_count": 5,
      "title": "Should we adopt a 4-day work week?"
    }
  }
}

Create task

Add a to-do or reminder in Niah.

Inputs

Titletitletext
What the task is.
Notesdescriptiontext
More detail about the task.
Typetypetext
A to-do or a reminder.One of: todo (To-do), reminder.
Duedue_atdate and time
When it is due.
Task listtask_list_idtext
The task list to put it on. Pick one, or use an ID from List task lists.
Assigneesassignee_idslist
The user IDs of the people to assign it to, from List members.
Flaggedflaggedtrue/false
Whether to flag it.
Pinnedpinnedtrue/false
Whether to pin it.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": {
      "assignee_ids": [
        "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
      ],
      "comments": [
        {
          "body": "Draft is in the shared folder.",
          "created_at": "2026-07-29T18:30:00Z",
          "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
          "updated_at": "2026-07-29T18:35:00Z",
          "user_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
        }
      ],
      "completed_at": "2026-07-29T18:35:00Z",
      "created_at": "2026-07-29T18:30:00Z",
      "description": "Include the hiring plan.",
      "due_at": "2026-12-05T17:00:00Z",
      "flagged": false,
      "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
      "pinned": false,
      "reporter_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
      "subtasks": [
        {
          "completed_at": "2026-07-29T18:35:00Z",
          "created_at": "2026-07-29T18:30:00Z",
          "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
          "position": 0,
          "title": "Send the Q3 board pack",
          "updated_at": "2026-07-29T18:35:00Z"
        }
      ],
      "task_list_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
      "title": "Send the Q3 board pack",
      "type": "todo",
      "updated_at": "2026-07-29T18:35:00Z",
      "user_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
    }
  }
}

Delete task

Delete a task.

Inputs

TaskidtextRequired
The task to delete. Pick one, or use an ID from List tasks.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {}
}

Get account

Get your Niah organization, this key's permissions, plan limits and this month's spend.

Inputs

None.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": {
      "api_key": {
        "created_at": "2026-07-29T18:30:00Z",
        "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
        "key_prefix": "nwk_live_a1b2",
        "last_used_at": "2026-11-30T16:20:00Z",
        "name": "Production",
        "scopes": [
          "consultations:read",
          "consultations:write",
          "usage:read"
        ]
      },
      "limits": {
        "included_usage_cents": 10000,
        "max_agents_per_consultation": 20,
        "max_rounds_per_consultation": 5
      },
      "organization": {
        "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
        "name": "Acme, Inc.",
        "plan": "business",
        "slug": "acme"
      },
      "rate_limits": {
        "requests_per_minute": 200
      },
      "usage": {
        "current_month": {
          "api_budget_cents": 50000,
          "api_cost_cents": 1180,
          "included_usage_cents": 10000,
          "total_cost_cents": 4210
        }
      }
    }
  }
}

Get automation

Get one automation's details.

Inputs

AutomationidtextRequired
The automation to read. Pick one, or use an ID from List automations.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": {
      "callback_url": "https://example.com/hooks/niah-runs",
      "created_at": "2026-07-29T18:30:00Z",
      "description": "Scans the market every Monday.",
      "enabled": true,
      "id": "7a1b2c3d-4e5f-4a6b-9c8d-1e2f3a4b5c6d",
      "last_triggered_at": "2026-11-20T09:00:00Z",
      "name": "Weekly market scan",
      "trigger_token": "atk_3f9c2b",
      "updated_at": "2026-07-29T18:35:00Z",
      "use_case": "market_research"
    }
  }
}

Get automation run

Get one run of an automation.

Inputs

AutomationidtextRequired
The automation the run belongs to. Pick one, or use an ID from List automations.
Run IDrun_idtextRequired
The run to read, from List automation runs or Run automation.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": {
      "automation_id": "7a1b2c3d-4e5f-4a6b-9c8d-1e2f3a4b5c6d",
      "callback_delivered_at": "2026-11-20T09:04:10Z",
      "callback_last_error": "",
      "completed_at": "2026-07-29T18:35:00Z",
      "consultation_id": "b1a2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "error_message": "",
      "external_ref": "crm-deal-123",
      "id": "e5f6a7b8-c9d0-4e1f-9a2b-3c4d5e6f7a8b",
      "idempotency_key": "crm-deal-123-run-1",
      "pipe_run_id": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
      "started_at": "2026-07-29T18:30:02Z",
      "status": "completed"
    }
  }
}

Get batch

Get how far a batch of consultations has got.

Inputs

Batch IDidtextRequired
The batch to read, from List batches.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": {
      "completed_at": "2026-07-29T18:35:00Z",
      "completed_items": 120,
      "created_at": "2026-07-29T18:30:00Z",
      "failed_items": 2,
      "id": "d4e5f6a7-b8c9-4d0e-8f1a-2b3c4d5e6f7a",
      "poll_url": "https://api.niah.si/v1/batch/d4e5f6a7-b8c9-4d0e-8f1a-2b3c4d5e6f7a",
      "started_at": "2026-07-29T18:30:02Z",
      "status": "processing",
      "total_items": 250
    }
  }
}

Get consultation

Get a consultation's status and, once it is complete, Niah's summary of the answers.

Inputs

ConsultationidtextRequired
The consultation to read. Pick one, or use an ID from List consultations.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": {
      "analysis": "Across the panel, the consensus was to pilot it with one team first.",
      "completed_at": "2026-07-29T18:35:00Z",
      "created_at": "2026-07-29T18:30:00Z",
      "current_round": 1,
      "id": "b1a2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "poll_url": "https://api.niah.si/v1/consultations/b1a2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "response_count": 5,
      "started_at": "2026-07-29T18:30:02Z",
      "status": "completed",
      "target_agent_count": 5,
      "title": "Should we adopt a 4-day work week?"
    }
  }
}

Get task

Get one task with its subtasks and comments.

Inputs

TaskidtextRequired
The task to read. Pick one, or use an ID from List tasks.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": {
      "assignee_ids": [
        "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
      ],
      "comments": [
        {
          "body": "Draft is in the shared folder.",
          "created_at": "2026-07-29T18:30:00Z",
          "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
          "updated_at": "2026-07-29T18:35:00Z",
          "user_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
        }
      ],
      "completed_at": "2026-07-29T18:35:00Z",
      "created_at": "2026-07-29T18:30:00Z",
      "description": "Include the hiring plan.",
      "due_at": "2026-12-05T17:00:00Z",
      "flagged": false,
      "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
      "pinned": false,
      "reporter_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
      "subtasks": [
        {
          "completed_at": "2026-07-29T18:35:00Z",
          "created_at": "2026-07-29T18:30:00Z",
          "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
          "position": 0,
          "title": "Send the Q3 board pack",
          "updated_at": "2026-07-29T18:35:00Z"
        }
      ],
      "task_list_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
      "title": "Send the Q3 board pack",
      "type": "todo",
      "updated_at": "2026-07-29T18:35:00Z",
      "user_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
    }
  }
}

Get usage

Get what your organization spent on Niah over a period, in total and by person.

Inputs

Fromfromdate and time
The start of the period. Leave empty for Niah's default.
Totodate and time
The end of the period, at most 365 days after the start.
Sourcesourcetext
Only spend from one place. Leave empty for all.One of: api, api_batch (API batches), chat, code, social, ui (Niah app).

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": {
      "api_cost_cents": 1180,
      "by_user": [
        {
          "cost_cents": 900,
          "user_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
        }
      ],
      "organization_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "period": {
        "from": "2026-11-01T00:00:00Z",
        "to": "2026-11-30T23:59:59Z"
      },
      "total_cost_cents": 4210,
      "total_records": 87
    }
  }
}

List automation runs

List an automation's runs, with their status and results.

Inputs

AutomationidtextRequired
The automation whose runs to list. Pick one, or use an ID from List automations.
Pagepagenumber
Which page of runs to read, from 1.At least 1.
Page sizeper_pagenumber
How many runs a page holds, up to 100. Niah's default is 20.From 1 to 100.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": [
      {
        "automation_id": "7a1b2c3d-4e5f-4a6b-9c8d-1e2f3a4b5c6d",
        "callback_delivered_at": "2026-11-20T09:04:10Z",
        "callback_last_error": "",
        "completed_at": "2026-07-29T18:35:00Z",
        "consultation_id": "b1a2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
        "error_message": "",
        "external_ref": "crm-deal-123",
        "id": "e5f6a7b8-c9d0-4e1f-9a2b-3c4d5e6f7a8b",
        "idempotency_key": "crm-deal-123-run-1",
        "pipe_run_id": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
        "started_at": "2026-07-29T18:30:02Z",
        "status": "completed"
      }
    ],
    "meta": {
      "has_next": true,
      "page": 1,
      "per_page": 20,
      "total": 42,
      "total_pages": 3
    }
  }
}

List automations

List your organization's Niah automations.

Inputs

Pagepagenumber
Which page of automations to read, from 1.At least 1.
Page sizeper_pagenumber
How many automations a page holds, up to 100. Niah's default is 20.From 1 to 100.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": [
      {
        "callback_url": "https://example.com/hooks/niah-runs",
        "created_at": "2026-07-29T18:30:00Z",
        "description": "Scans the market every Monday.",
        "enabled": true,
        "id": "7a1b2c3d-4e5f-4a6b-9c8d-1e2f3a4b5c6d",
        "last_triggered_at": "2026-11-20T09:00:00Z",
        "name": "Weekly market scan",
        "trigger_token": "atk_3f9c2b",
        "updated_at": "2026-07-29T18:35:00Z",
        "use_case": "market_research"
      }
    ],
    "meta": {
      "has_next": true,
      "page": 1,
      "per_page": 20,
      "total": 42,
      "total_pages": 3
    }
  }
}

List batches

List your organization's batches of consultations, filtered by status or date.

Inputs

Statusstatustext
Only batches in this state.One of: pending, validating, processing, completed, failed, partial_failure (Partly failed), cancelled.
Created fromfromdate and time
Only batches created on or after this time.
Created totodate and time
Only batches created on or before this time.
Pagepagenumber
Which page of batches to read, from 1.At least 1.
Page sizeper_pagenumber
How many batches a page holds, up to 100. Niah's default is 20.From 1 to 100.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": [
      {
        "completed_at": "2026-07-29T18:35:00Z",
        "completed_items": 120,
        "created_at": "2026-07-29T18:30:00Z",
        "failed_items": 2,
        "id": "d4e5f6a7-b8c9-4d0e-8f1a-2b3c4d5e6f7a",
        "poll_url": "https://api.niah.si/v1/batch/d4e5f6a7-b8c9-4d0e-8f1a-2b3c4d5e6f7a",
        "started_at": "2026-07-29T18:30:02Z",
        "status": "processing",
        "total_items": 250
      }
    ],
    "meta": {
      "has_next": true,
      "page": 1,
      "per_page": 20,
      "total": 42,
      "total_pages": 3
    }
  }
}

List consultation answers

List each agent's answer to a consultation.

Inputs

ConsultationidtextRequired
The consultation whose answers to read. Pick one, or use an ID from List consultations.
Pagepagenumber
Which page of answers to read, from 1.At least 1.
Page sizeper_pagenumber
How many answers a page holds, up to 100. Niah's default is 20.From 1 to 100.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": [
      {
        "agent_name": "Dr. Elena Vasquez",
        "agent_profession": "Organizational Psychologist",
        "content": "A four-day week tends to raise morale when deadlines stay the same.",
        "created_at": "2026-07-29T18:30:00Z",
        "id": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
        "round": 1
      }
    ],
    "meta": {
      "has_next": true,
      "page": 1,
      "per_page": 20,
      "total": 42,
      "total_pages": 3
    }
  }
}

List consultations

List your organization's consultations, filtered by status or date.

Inputs

Statusstatustext
Only consultations in this state.One of: draft, running, completed, cancelled.
Created fromfromdate and time
Only consultations created on or after this time.
Created totodate and time
Only consultations created on or before this time.
Pagepagenumber
Which page of consultations to read, from 1.At least 1.
Page sizeper_pagenumber
How many consultations a page holds, up to 100. Niah's default is 20.From 1 to 100.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": [
      {
        "analysis": "Across the panel, the consensus was to pilot it with one team first.",
        "completed_at": "2026-07-29T18:35:00Z",
        "created_at": "2026-07-29T18:30:00Z",
        "current_round": 1,
        "id": "b1a2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
        "poll_url": "https://api.niah.si/v1/consultations/b1a2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
        "response_count": 5,
        "started_at": "2026-07-29T18:30:02Z",
        "status": "completed",
        "target_agent_count": 5,
        "title": "Should we adopt a 4-day work week?"
      }
    ],
    "meta": {
      "has_next": true,
      "page": 1,
      "per_page": 20,
      "total": 42,
      "total_pages": 3
    }
  }
}

List members

List the people in your Niah organization.

Inputs

Pagepagenumber
Which page of members to read, from 1.At least 1.
Page sizeper_pagenumber
How many members a page holds, up to 100. Niah's default is 20.From 1 to 100.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": [
      {
        "avatar_url": "https://niah.si/avatars/ana.png",
        "created_at": "2026-07-29T18:30:00Z",
        "email": "ana@acme.example",
        "id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
        "joined_at": "2026-02-01T10:00:00Z",
        "last_accessed_at": "2026-11-28T08:12:00Z",
        "membership_id": "6f7a8b9c-0d1e-4f2a-b3c4-d5e6f7a8b9c0",
        "membership_type": "sponsored",
        "name": "Ana Ruiz",
        "role": "member",
        "roles": [
          "member"
        ],
        "updated_at": "2026-07-29T18:35:00Z",
        "usage_cap_cents": 5000,
        "username": "ana"
      }
    ],
    "meta": {
      "has_next": true,
      "page": 1,
      "per_page": 20,
      "total": 42,
      "total_pages": 3
    }
  }
}

List models

List the Niah models your organization can chat with.

Inputs

None.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": [
      {
        "card_url": "https://niah.si/models/niah-1",
        "created": 1770000000,
        "description": "The balanced default.",
        "id": "niah-1",
        "object": "model",
        "owned_by": "niah"
      }
    ],
    "object": "list"
  }
}

List panels

List the panels of AI agents your organization can consult.

Inputs

Page sizelimitnumber
How many panels to return, up to 100. Niah's default is 20.From 1 to 100.
Created beforecursortext
To read the next page, the creation time of the last panel on the page before.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": [
      {
        "description": "Senior operators who review strategy questions.",
        "id": "8e9f0a1b-2c3d-4e5f-a6b7-c8d9e0f1a2b3",
        "is_shared": true,
        "name": "Executive Advisors",
        "visibility_scope": "organization"
      }
    ],
    "meta": {
      "has_next": true,
      "page": 1,
      "per_page": 20,
      "total": 42,
      "total_pages": 3
    }
  }
}

List task lists

List the task lists the key's creator can see.

Inputs

None.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": [
      {
        "created_at": "2026-07-29T18:30:00Z",
        "icon": "checklist",
        "id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
        "team_ids": [
          "4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8"
        ],
        "title": "Leadership team",
        "updated_at": "2026-07-29T18:35:00Z",
        "visibility": "organization"
      }
    ]
  }
}

List tasks

List the tasks the key's creator can see, filtered as you choose.

Inputs

Typetypetext
Only to-dos or only reminders.One of: todo (To-do), reminder.
Include completedshow_completedtrue/false
Whether to include completed tasks. Niah includes them unless this is off.
Task listtask_list_idtext
Only tasks on this list. Pick one, or use an ID from List task lists.
Assigned toassigned_to_user_idtext
Only tasks assigned to this user ID, from List members.
Searchsearchtext
Only tasks whose title or notes contain this.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": [
      {
        "assignee_ids": [
          "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
        ],
        "comments": [
          {
            "body": "Draft is in the shared folder.",
            "created_at": "2026-07-29T18:30:00Z",
            "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
            "updated_at": "2026-07-29T18:35:00Z",
            "user_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
          }
        ],
        "completed_at": "2026-07-29T18:35:00Z",
        "created_at": "2026-07-29T18:30:00Z",
        "description": "Include the hiring plan.",
        "due_at": "2026-12-05T17:00:00Z",
        "flagged": false,
        "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
        "pinned": false,
        "reporter_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
        "subtasks": [
          {
            "completed_at": "2026-07-29T18:35:00Z",
            "created_at": "2026-07-29T18:30:00Z",
            "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
            "position": 0,
            "title": "Send the Q3 board pack",
            "updated_at": "2026-07-29T18:35:00Z"
          }
        ],
        "task_list_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
        "title": "Send the Q3 board pack",
        "type": "todo",
        "updated_at": "2026-07-29T18:35:00Z",
        "user_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
      }
    ]
  }
}

Run automation

Start a Niah automation now, with details for it to work on.

Inputs

AutomationidtextRequired
The automation to start. Pick one, or use an ID from List automations.
Your referenceexternal_reftext
Your own reference for this run, such as a deal ID, to find it by later.
Detailscontextobject
Details for the automation to work on, as names and values.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": {
      "automation_id": "7a1b2c3d-4e5f-4a6b-9c8d-1e2f3a4b5c6d",
      "callback_delivered_at": "2026-11-20T09:04:10Z",
      "callback_last_error": "",
      "completed_at": "2026-07-29T18:35:00Z",
      "consultation_id": "b1a2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "error_message": "",
      "external_ref": "crm-deal-123",
      "id": "e5f6a7b8-c9d0-4e1f-9a2b-3c4d5e6f7a8b",
      "idempotency_key": "crm-deal-123-run-1",
      "pipe_run_id": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
      "started_at": "2026-07-29T18:30:02Z",
      "status": "pending"
    }
  }
}

Send chat message

Ask a Niah model for a reply to a conversation.

Inputs

ModelmodeltextRequired
The Niah model to answer, such as niah-1. Pick one, or use a name from List models.
MessagesmessageslistRequired
The conversation so far, oldest first. Each message has a role (system, user or assistant) and its text.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "choices": [
      {
        "finish_reason": "stop",
        "index": 0,
        "message": {
          "content": "A 4-day week can lift morale but needs clear cover for customers.",
          "role": "member"
        }
      }
    ],
    "created": 1770000000,
    "id": "chatcmpl-abc123",
    "model": "niah-1",
    "object": "chat.completion",
    "usage": {
      "completion_tokens": 128,
      "prompt_tokens": 42,
      "total_tokens": 170
    }
  }
}

Update task

Change a task's title, notes, due date or other details.

Inputs

TaskidtextRequired
The task to change. Pick one, or use an ID from List tasks.
Titletitletext
What the task is.
Notesdescriptiontext
More detail about the task.
Typetypetext
A to-do or a reminder.One of: todo (To-do), reminder.
Duedue_atdate and time
When it is due.
Task listtask_list_idtext
The task list to put it on. Pick one, or use an ID from List task lists.
Assigneesassignee_idslist
The user IDs of the people to assign it to, from List members.
Flaggedflaggedtrue/false
Whether to flag it.
Pinnedpinnedtrue/false
Whether to pin it.

Outputs

dataobject
The response from Niah.
Example output
{
  "data": {
    "data": {
      "assignee_ids": [
        "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
      ],
      "comments": [
        {
          "body": "Draft is in the shared folder.",
          "created_at": "2026-07-29T18:30:00Z",
          "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
          "updated_at": "2026-07-29T18:35:00Z",
          "user_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
        }
      ],
      "completed_at": "2026-07-29T18:35:00Z",
      "created_at": "2026-07-29T18:30:00Z",
      "description": "Include the hiring plan.",
      "due_at": "2026-12-05T17:00:00Z",
      "flagged": false,
      "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
      "pinned": false,
      "reporter_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a",
      "subtasks": [
        {
          "completed_at": "2026-07-29T18:35:00Z",
          "created_at": "2026-07-29T18:30:00Z",
          "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
          "position": 0,
          "title": "Send the Q3 board pack",
          "updated_at": "2026-07-29T18:35:00Z"
        }
      ],
      "task_list_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
      "title": "Send the Q3 board pack",
      "type": "todo",
      "updated_at": "2026-07-29T18:35:00Z",
      "user_id": "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
    }
  }
}

On this page