Skip to content

Nami assistant

13 operations in the WP Waterfall API.

Read whether the person approved the Nami assistant

get/assistant/connectionPermalink to Read whether the person approved the Nami assistant

  • Permission: company.read
  • Dashboard session only, no API key

available is false when the server has no model key or the assistant is off. status is none until the person approves, active after, and revoked after they turn it off. Session only.

Responses

StatusBodyDescription
200AssistantConnectionAssistant approval
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
available requiredbooleanFalse when the server has no model key, the assistant is switched off for everyone, or the company has no paid plan and no site on one.
status requiredstringOne of: none, active, revoked.
approved_at requiredstring or null (date-time)
role_at_approval requiredstring or nullThe role the person had when they approved. The role now is what limits every call.
paused requiredbooleanTrue while staff have paused Nami for everyone. The screen shows one sentence in place of the message box, and every message route refuses with assistant_paused. Default: false.

Approve the Nami assistant to act as the person

post/assistant/connectionPermalink to Approve the Nami assistant to act as the person

  • Permission: company.read
  • Dashboard session only, no API key

Records the approval as a connection named Nami assistant, so it shows on the Connections page and can be revoked there. The assistant acts with the person's own role on every call, asks before it deletes or spends, and holds no standing key: each answer makes a short key that ends with it. With two-factor authentication on and a way to confirm, it answers 403 until the session confirmed it in the last 10 minutes (POST /users/me/step-up). Session only. Not available while staff act as a customer.

Parameters

NameInTypeDescription
Idempotency-Key requiredheaderstringSend a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422.

Request body application/json, required, ApproveAssistantConnection

Fields

NameTypeDescription
accept requiredbooleanMust be true: the screen has one Approve button.

Responses

StatusBodyDescription
200AssistantConnectionAssistant approval
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
available requiredbooleanFalse when the server has no model key, the assistant is switched off for everyone, or the company has no paid plan and no site on one.
status requiredstringOne of: none, active, revoked.
approved_at requiredstring or null (date-time)
role_at_approval requiredstring or nullThe role the person had when they approved. The role now is what limits every call.
paused requiredbooleanTrue while staff have paused Nami for everyone. The screen shows one sentence in place of the message box, and every message route refuses with assistant_paused. Default: false.

Turn the Nami assistant off

delete/assistant/connectionPermalink to Turn the Nami assistant off

  • Permission: company.read
  • Dashboard session only, no API key

Revokes the approval and cancels every confirmation still waiting. The chats stay. Session only.

Responses

StatusBodyDescription
204Revoked
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

List the person's Nami chats

get/assistant/conversationsPermalink to List the person's Nami chats

  • Permission: company.read
  • Dashboard session only, no API key

The person's own chats in the current company, newest first. Another member of the company never sees them. Session only.

Parameters

NameInTypeDescription
limitqueryintegerHow many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200.
cursorquerystringThe next_cursor of the page before. Leave it out for the first page.

Responses

StatusBodyDescription
200AssistantConversationListChats
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
data requiredarray of AssistantConversation
data[].id requiredstring (uuid)
data[].title requiredstring
data[].created_at requiredstring (date-time)
data[].updated_at requiredstring (date-time)
next_cursorstring or null

Start a Nami chat

post/assistant/conversationsPermalink to Start a Nami chat

  • Permission: company.read
  • Dashboard session only, no API key

Makes an empty chat. Session only.

Parameters

NameInTypeDescription
Idempotency-Key requiredheaderstringSend a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422.

Responses

StatusBodyDescription
201AssistantConversationThe new chat
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

201 response fields

NameTypeDescription
id requiredstring (uuid)
title requiredstring
created_at requiredstring (date-time)
updated_at requiredstring (date-time)

Read a Nami chat with its messages

get/assistant/conversations/{id}Permalink to Read a Nami chat with its messages

  • Permission: company.read
  • Dashboard session only, no API key

The messages in order, with the state of every confirmation card as it stands now. A secret that was shown once comes back empty. Session only.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the Nami chat.

Responses

StatusBodyDescription
200AssistantConversationDetailThe chat
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
id requiredstring (uuid)
title requiredstring
created_at requiredstring (date-time)
updated_at requiredstring (date-time)
messages requiredarray of object
messages[].id requiredstring (uuid)
messages[].role requiredstringOne of: user, assistant.
messages[].blocks requiredarray of one of object, object, object, object
messages[].created_at requiredstring (date-time)

Rename a Nami chat

patch/assistant/conversations/{id}Permalink to Rename a Nami chat

  • Permission: company.read
  • Dashboard session only, no API key

Gives one of the person's own Nami chats a new title of 1 to 120 characters and returns the chat. Answers 404 when the chat is not theirs. Needs a dashboard session: an API key cannot call it.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the Nami chat.
Idempotency-KeyheaderstringOptional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job.

Request body application/json, required, PatchAssistantConversation

Fields

NameTypeDescription
title requiredstring

Responses

StatusBodyDescription
200AssistantConversationThe renamed chat
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
id requiredstring (uuid)
title requiredstring
created_at requiredstring (date-time)
updated_at requiredstring (date-time)

Delete a Nami chat

delete/assistant/conversations/{id}Permalink to Delete a Nami chat

  • Permission: company.read
  • Dashboard session only, no API key

The chat leaves the list at once and its messages are removed 30 days later. Confirmations still waiting in it are cancelled. Session only.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the Nami chat.

Responses

StatusBodyDescription
204Deleted
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

Confirm or cancel a change Nami asked about

post/assistant/conversations/{id}/actions/{action_id}Permalink to Confirm or cancel a change Nami asked about

  • Permission: company.read
  • Dashboard session only, no API key

A click on a confirm block. decision confirm runs the change once, with the person's role, and streams what happened. The answer is a Server-Sent Events stream. Each data field is one AssistantStreamEvent as JSON: message_start, then text_delta, status, block, and block_update events, then title (once, after the first answer), then message_end. An error event ends the stream. Closing the connection early leaves the stored message as it was; read the conversation again. typed_name must equal the name the card asked for, when it asked for one. A decision from another person, in another chat, after the 15 minutes, or twice answers 404 or 409 and runs nothing. decision cancel answers 204. Session only.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the Nami chat.
action_id requiredpathstring (uuid)The id of the change Nami asked about.
Idempotency-Key requiredheaderstringSend a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422.

Request body application/json, required, DecideAssistantAction

Fields

NameTypeDescription
decision requiredstringOne of: confirm, cancel.
typed_namestringThe name the person typed, for a confirmation that sets typed_name.

Responses

StatusBodyDescription
200AssistantStreamEventEvent stream
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

Send a message to Nami and stream the answer

post/assistant/conversations/{id}/messagesPermalink to Send a message to Nami and stream the answer

  • Permission: company.read
  • Dashboard session only, no API key

Runs one turn of the assistant as the person. The answer is a Server-Sent Events stream. Each data field is one AssistantStreamEvent as JSON: message_start, then text_delta, status, block, and block_update events, then title (once, after the first answer), then message_end. An error event ends the stream. Closing the connection early leaves the stored message as it was; read the conversation again. Nami uses the same tools as the MCP server, with the person's role. A change that deletes or spends never runs here: it becomes a confirm block, and only POST /assistant/conversations/{id}/actions/{action_id} runs it. One answer at a time for a person: a second message while one runs answers 409. Answers 503 assistant_unavailable without a model key, 402 no_plan without a paid plan, 403 not_approved before the approval, and 429 when the person sends too fast or the company used its daily or monthly budget. Session only.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the Nami chat.
Idempotency-Key requiredheaderstringSend a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422.

Request body application/json, required, SendAssistantMessage

Fields

NameTypeDescription
text requiredstring
pagestringThe dashboard path the person came from, such as /sites/abc, so "this site" means something.

Responses

StatusBodyDescription
200AssistantStreamEventEvent stream
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

Read where the account is on the guided start

get/onboardingPermalink to Read where the account is on the guided start

  • Permission: company.read
  • Dashboard session only, no API key

Read only. The guided start (ADR 270) is the scripted first run of the Nami screen: welcome, plan, site, launch live, domain, and done. The step comes from real data: a live plan, a real site (an Enterprise sandbox counts, a platform test site does not), and a custom domain. guided is true while the account has no plan or no site, the person did not skip, and no staff member acts as the customer; the dashboard then opens the Nami screen first. resumable is true while the guided start applies to the person, skipped or not; the star in the top bar uses it to put them back in. can_buy is false for a role that cannot buy a plan. An Enterprise company has enterprise true and skips the plan step. Session only.

Responses

StatusBodyDescription
200OnboardingStateGuided start state
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
step requiredstringThe step the account is on, from the plan, the sites, and the domains. One of: welcome, plan, site, domain, done.
has_plan requiredbooleanA live plan pays for sites.
has_site requiredbooleanA real site exists. An Enterprise sandbox counts, a platform test site does not.
site_id requiredstring or null (uuid)The newest real site, or null.
domain_done requiredbooleanA custom domain is on one of the company's sites.
enterprise requiredbooleanAn Enterprise company: support sets its plans, so the plan step is skipped.
can_buy requiredbooleanThe person may buy a plan (billing.write). Others are told to ask an owner.
dismissed requiredbooleanThe person chose Skip to the dashboard.
guided requiredbooleanThe dashboard opens the guided start. True while the account has no plan or no site, the person did not skip, and no staff member is acting as the customer.
resumable requiredbooleanThe guided start applies to this person and could be opened again, whether or not they skipped it: the same rule as guided without the Skip. The star in the top bar uses it to put a person back into the setup. False for a member limited to some sites, for staff acting as the customer, and once the account has a plan, a site, and nothing running.
work requiredobject or nullA site install or migration in flight, or null. While it runs the chat stays open on it.
work.kind requiredstringOne of: install, migration.
work.site_id requiredstring or null (uuid)UUIDv7
work.site_name requiredstring or null
work.job_id requiredstring or null (uuid)UUIDv7
work.migration_id requiredstring or null (uuid)UUIDv7
assistant requiredbooleanNami AI runs on this platform. False when the server has no model key or the assistant is switched off for everyone: a new account then starts in the classic Welcome, not the guided start, because the chat could not answer what the person types.

Skip the guided start

put/onboarding/dismissPermalink to Skip the guided start

  • Permission: company.read
  • Dashboard session only, no API key

Remembers for this person that they chose Skip to the dashboard. The guided start does not open again for them, in any company. It changes nothing else. Repeating the call is harmless. Session only.

Parameters

NameInTypeDescription
Idempotency-KeyheaderstringOptional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job.

Responses

StatusBodyDescription
200OnboardingStateGuided start state
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
step requiredstringThe step the account is on, from the plan, the sites, and the domains. One of: welcome, plan, site, domain, done.
has_plan requiredbooleanA live plan pays for sites.
has_site requiredbooleanA real site exists. An Enterprise sandbox counts, a platform test site does not.
site_id requiredstring or null (uuid)The newest real site, or null.
domain_done requiredbooleanA custom domain is on one of the company's sites.
enterprise requiredbooleanAn Enterprise company: support sets its plans, so the plan step is skipped.
can_buy requiredbooleanThe person may buy a plan (billing.write). Others are told to ask an owner.
dismissed requiredbooleanThe person chose Skip to the dashboard.
guided requiredbooleanThe dashboard opens the guided start. True while the account has no plan or no site, the person did not skip, and no staff member is acting as the customer.
resumable requiredbooleanThe guided start applies to this person and could be opened again, whether or not they skipped it: the same rule as guided without the Skip. The star in the top bar uses it to put a person back into the setup. False for a member limited to some sites, for staff acting as the customer, and once the account has a plan, a site, and nothing running.
work requiredobject or nullA site install or migration in flight, or null. While it runs the chat stays open on it.
work.kind requiredstringOne of: install, migration.
work.site_id requiredstring or null (uuid)UUIDv7
work.site_name requiredstring or null
work.job_id requiredstring or null (uuid)UUIDv7
work.migration_id requiredstring or null (uuid)UUIDv7
assistant requiredbooleanNami AI runs on this platform. False when the server has no model key or the assistant is switched off for everyone: a new account then starts in the classic Welcome, not the guided start, because the chat could not answer what the person types.

Return to the guided start

put/onboarding/resumePermalink to Return to the guided start

  • Permission: company.read
  • Dashboard session only, no API key

Clears this person's Skip, so the guided start can open for them again. The star in the top bar calls it when the account still has no plan or no site. It changes nothing else, and it does nothing for staff acting as the customer. Repeating the call is harmless. It writes the audit entry onboarding.resumed when it clears a Skip. Session only.

Parameters

NameInTypeDescription
Idempotency-KeyheaderstringOptional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job.

Responses

StatusBodyDescription
200OnboardingStateGuided start state
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
step requiredstringThe step the account is on, from the plan, the sites, and the domains. One of: welcome, plan, site, domain, done.
has_plan requiredbooleanA live plan pays for sites.
has_site requiredbooleanA real site exists. An Enterprise sandbox counts, a platform test site does not.
site_id requiredstring or null (uuid)The newest real site, or null.
domain_done requiredbooleanA custom domain is on one of the company's sites.
enterprise requiredbooleanAn Enterprise company: support sets its plans, so the plan step is skipped.
can_buy requiredbooleanThe person may buy a plan (billing.write). Others are told to ask an owner.
dismissed requiredbooleanThe person chose Skip to the dashboard.
guided requiredbooleanThe dashboard opens the guided start. True while the account has no plan or no site, the person did not skip, and no staff member is acting as the customer.
resumable requiredbooleanThe guided start applies to this person and could be opened again, whether or not they skipped it: the same rule as guided without the Skip. The star in the top bar uses it to put a person back into the setup. False for a member limited to some sites, for staff acting as the customer, and once the account has a plan, a site, and nothing running.
work requiredobject or nullA site install or migration in flight, or null. While it runs the chat stays open on it.
work.kind requiredstringOne of: install, migration.
work.site_id requiredstring or null (uuid)UUIDv7
work.site_name requiredstring or null
work.job_id requiredstring or null (uuid)UUIDv7
work.migration_id requiredstring or null (uuid)UUIDv7
assistant requiredbooleanNami AI runs on this platform. False when the server has no model key or the assistant is switched off for everyone: a new account then starts in the classic Welcome, not the guided start, because the chat could not answer what the person types.