Niah
App · 25 actions
Put questions to panels of Niah's AI agents, chat with Niah models, run Niah automations and manage tasks.
Actions
| Action | What it does |
|---|---|
| Cancel consultation | Stop a consultation that is still running. |
| Complete task | Mark a task as done. |
| Create consultation | Ask a panel of Niah's AI agents a question; they answer in the background. |
| Create task | Add a to-do or reminder in Niah. |
| Delete task | Delete a task. |
| Get account | Get your Niah organization, this key's permissions, plan limits and this month's spend. |
| Get automation | Get one automation's details. |
| Get automation run | Get one run of an automation. |
| Get batch | Get how far a batch of consultations has got. |
| Get consultation | Get a consultation's status and, once it is complete, Niah's summary of the answers. |
| Get task | Get one task with its subtasks and comments. |
| Get usage | Get what your organization spent on Niah over a period, in total and by person. |
| List automation runs | List an automation's runs, with their status and results. |
| List automations | List your organization's Niah automations. |
| List batches | List your organization's batches of consultations, filtered by status or date. |
| List consultation answers | List each agent's answer to a consultation. |
| List consultations | List your organization's consultations, filtered by status or date. |
| List members | List the people in your Niah organization. |
| List models | List the Niah models your organization can chat with. |
| List panels | List the panels of AI agents your organization can consult. |
| List task lists | List the task lists the key's creator can see. |
| List tasks | List the tasks the key's creator can see, filtered as you choose. |
| Run automation | Start a Niah automation now, with details for it to work on. |
| Send chat message | Ask a Niah model for a reply to a conversation. |
| Update task | Change a task's title, notes, due date or other details. |
Cancel consultation
Stop a consultation that is still running.
Inputs
- Consultation
idtextRequired - 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
- Task
idtextRequired - 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
- Question
titletextRequired - The question or topic to put to the agents.
- Context
descriptiontext - Background the agents should weigh.
- Number of agents
target_agent_countnumber - How many agents to ask. Niah's default is 5.At least 1.
- Panel
agent_panel_idtext - A panel of agents to ask, instead of letting Niah choose. Pick one, or use an ID from List panels.
- Profession
profession_filtertext - Only ask agents of this profession, such as Economist.
- Agents
agent_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
- Title
titletext - What the task is.
- Notes
descriptiontext - More detail about the task.
- Type
typetext - A to-do or a reminder.One of:
todo(To-do),reminder. - Due
due_atdate and time - When it is due.
- Task list
task_list_idtext - The task list to put it on. Pick one, or use an ID from List task lists.
- Assignees
assignee_idslist - The user IDs of the people to assign it to, from List members.
- Flagged
flaggedtrue/false - Whether to flag it.
- Pinned
pinnedtrue/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
- Task
idtextRequired - 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
- Automation
idtextRequired - 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
- Automation
idtextRequired - The automation the run belongs to. Pick one, or use an ID from List automations.
- Run ID
run_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 ID
idtextRequired - 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
- Consultation
idtextRequired - 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
- Task
idtextRequired - 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
- From
fromdate and time - The start of the period. Leave empty for Niah's default.
- To
todate and time - The end of the period, at most 365 days after the start.
- Source
sourcetext - 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
- Automation
idtextRequired - The automation whose runs to list. Pick one, or use an ID from List automations.
- Page
pagenumber - Which page of runs to read, from 1.At least 1.
- Page size
per_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
- Page
pagenumber - Which page of automations to read, from 1.At least 1.
- Page size
per_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
- Status
statustext - Only batches in this state.One of:
pending,validating,processing,completed,failed,partial_failure(Partly failed),cancelled. - Created from
fromdate and time - Only batches created on or after this time.
- Created to
todate and time - Only batches created on or before this time.
- Page
pagenumber - Which page of batches to read, from 1.At least 1.
- Page size
per_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
- Consultation
idtextRequired - The consultation whose answers to read. Pick one, or use an ID from List consultations.
- Page
pagenumber - Which page of answers to read, from 1.At least 1.
- Page size
per_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
- Status
statustext - Only consultations in this state.One of:
draft,running,completed,cancelled. - Created from
fromdate and time - Only consultations created on or after this time.
- Created to
todate and time - Only consultations created on or before this time.
- Page
pagenumber - Which page of consultations to read, from 1.At least 1.
- Page size
per_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
- Page
pagenumber - Which page of members to read, from 1.At least 1.
- Page size
per_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 size
limitnumber - How many panels to return, up to 100. Niah's default is 20.From 1 to 100.
- Created before
cursortext - 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
- Type
typetext - Only to-dos or only reminders.One of:
todo(To-do),reminder. - Include completed
show_completedtrue/false - Whether to include completed tasks. Niah includes them unless this is off.
- Task list
task_list_idtext - Only tasks on this list. Pick one, or use an ID from List task lists.
- Assigned to
assigned_to_user_idtext - Only tasks assigned to this user ID, from List members.
- Search
searchtext - 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
- Automation
idtextRequired - The automation to start. Pick one, or use an ID from List automations.
- Your reference
external_reftext - Your own reference for this run, such as a deal ID, to find it by later.
- Details
contextobject - 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
- Model
modeltextRequired - The Niah model to answer, such as niah-1. Pick one, or use a name from List models.
- Messages
messageslistRequired - 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
- Task
idtextRequired - The task to change. Pick one, or use an ID from List tasks.
- Title
titletext - What the task is.
- Notes
descriptiontext - More detail about the task.
- Type
typetext - A to-do or a reminder.One of:
todo(To-do),reminder. - Due
due_atdate and time - When it is due.
- Task list
task_list_idtext - The task list to put it on. Pick one, or use an ID from List task lists.
- Assignees
assignee_idslist - The user IDs of the people to assign it to, from List members.
- Flagged
flaggedtrue/false - Whether to flag it.
- Pinned
pinnedtrue/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"
}
}
}