Projects and organisations
Your Praecise organisations as Rivier reads them, projects, branding and account tokens.
Scopes for this area: workspace:read, workspace:write and workspace:admin.
139 operations
job
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| POST | /jobs | Hold a job until its time, once or every so often. It arrives as the event jobs.<name>, signed, at the project's webhooks that listen for it. The same idempotency key never makes a second job. | write | rivier workspace job create |
| GET | /jobs | The project's jobs, by when they next run; filter by state. | read | rivier workspace job list |
| GET | /jobs/{id} | One job: when it runs next, how often, how many times it ran. | read | rivier workspace job get |
| POST | /jobs/{id}/cancel | Cancel a scheduled job. | write | rivier workspace job cancel |
marketing
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /marketing/overview | Spend, impressions, clicks, results and cost per result from the connected ad platforms, by channel, campaign or day, with the period just before for comparison. Read from what Rivier stored, never from the platform. Money is in minor units of each row's own currency and is never added across currencies. | read | rivier workspace marketing overview |
| GET | /marketing/channels/{platform} | One ad platform: its totals, its days and its campaigns over a period, and when it was last stored. | read | rivier workspace marketing channel |
| GET | /marketing/campaigns | Campaigns across the connected ad platforms with their spend and results over a period. | read | rivier workspace marketing campaigns |
| GET | /marketing/runs | The pulls that stored the marketing data: when, for which connection, how many rows, and why one failed or was skipped. | read | rivier workspace marketing runs |
| POST | /marketing/pull | Pull the connected ad platforms' reports now instead of waiting for the hourly pull. Reads only; it uses the connections' own credentials and only the accounts the person ticked. | write | rivier workspace marketing pull |
| GET | /marketing/reports | The weekly marketing reports written so far, newest first: what changed across the connected ad platforms, warnings and next steps, with the words in the project's language. | read | rivier workspace marketing reports |
| GET | /marketing/reports/{id} | One weekly marketing report with its figures, its three biggest changes, its warnings and its plain-language text. | read | rivier workspace marketing report |
| POST | /marketing/reports/weekly | Write the weekly marketing report now for the seven days ending on a day (yesterday by default). It reads only what Rivier stored, keeps the report and announces it as the event marketing.report.created. | write | rivier workspace marketing weekly |
| GET | /marketing/budgets | The monthly budgets the project set for each ad platform, in minor units of the budget's currency. | read | rivier workspace marketing budgets |
| PUT | /marketing/budgets | Set what the project means to spend on one ad platform in one month. The amount is in whole currency units. It only sets the line the pacing check measures against; it never changes anything on the platform. | write | rivier workspace marketing budget |
| GET | /marketing/pacing | How this month's spend is going against each platform's budget: spend so far, the straight-line pace, where the month ends at the current rate, and whether it is on track, over, under or used up. | read | rivier workspace marketing pacing |
| POST | /marketing/pacing/check | Check this month's pacing now. For a platform running over its budget it asks the connector engine to queue a pause of the campaign that spent most; the engine does not run it, a person approves or declines it. One ask per platform and month. | write | rivier workspace marketing check |
| GET | /marketing/alerts | What the anomaly watch found: a campaign whose latest day moved well away from its own recent normal (cost per result, click rate, spend, results), with the likely cause in plain words, or a note that a platform's data is old. Each finding is kept once per campaign, metric and day until a person dismisses it. | read | rivier workspace marketing alerts |
| POST | /marketing/alerts/{id}/dismiss | Dismiss one anomaly the watch found, so it stops showing as open. It changes nothing at any ad platform. | write | rivier workspace marketing dismiss |
| GET | /marketing/attribution | Ad spend against what the site recorded: per platform and per campaign, the spend the platform reported, the orders, bookings and forms the site recorded from visits that named that platform and campaign label, cost per outcome, and return on spend where the currencies match. Labels that match nowhere are listed apart, never guessed together. | read | rivier workspace marketing attribution |
| GET | /marketing/sources | Where results come from, side by side: for each way people arrive (paid ads, search, social, email, other sites, direct and AI assistants) the visits the site counted, the orders, bookings and enquiries they led to, outcomes per hundred visits and share of all outcomes; for paid visits the spend the platforms reported and the cost of an outcome. Values appear only when every valued outcome is in one currency, and cost only when the spend is in one. If the site's counters cannot be read, only the spend is shown and the answer says so. | read | rivier workspace marketing sources |
| GET | /marketing/tracking | Whether conversion tracking still works: for each ad platform with enough traffic, the clicks the platform reported against the visits the site recorded from them and the orders, bookings and forms those visits ended in, with a state (ok, watch, broken, unknown or idle) and the reason in plain words. One check is kept a day; a change for the worse is announced once as the event marketing.tracking.problem. Read from what Rivier stored; it calls no ad platform. | read | rivier workspace marketing tracking |
| GET | /marketing/creatives | The ads of the connected ad platforms, ranked inside each campaign: for each ad its picture when the platform gives one, its format, spend, results and cost per result, its rank, whether it is clearly the best or the worst of its campaign, and whether it has worn out (its results per impression fell by 30 percent or more against the week before while it kept delivering). A campaign with too little behind it is listed and not ranked, with the reason. Platforms that cannot report by ad are named with why. Read from what Rivier stored; once a day, inside the marketing clock, the owner is asked (the event marketing.creative.proposal) whether to pause an ad that is clearly losing or has worn out, and nothing is paused without that approval. | read | rivier workspace marketing creatives |
| POST | /marketing/tracking/check | Run the conversion tracking check now for the seven days ending on a day (yesterday by default). It reads only what Rivier stored, keeps the result and announces it only if it got worse. | write | rivier workspace marketing tracking check |
connected business
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| POST | /connected-businesses | Ask the owner of a business to connect it to this platform: name it, give their address and the scopes the platform asks for. They are mailed an invitation, accept it in their own organisation and choose what the platform may do. With a test key it is a test business at once: connected with every scope asked, no mail and no owner, reached only by the test key. the platform hears platform.business.connected, .declined, .expired, .granted, .paused, .resumed and .ended. | admin | rivier workspace connected business create |
| GET | /connected-businesses | The businesses this platform asked to connect: waiting, connected (with what the host granted), paused, declined, ended or expired; by status or by the platform's own ref. Use a connection's id as x-rivier-business to work inside it. | read | rivier workspace connected business list |
| GET | /connected-businesses/{id} | One connection: its status, what was asked and what the host granted. | read | rivier workspace connected business get |
| POST | /connected-businesses/{id}/resend | Send a waiting or expired invitation again; the old link stops working. | admin | rivier workspace connected business resend |
| POST | /connected-businesses/{id}/person-tokens | Exchange the code a person of the business came back with for a person token (once, within five minutes; it lasts 30 minutes). Calls with the platform's key, the business header and x-rivier-person: <token> may confirm or decline a booking, as that person's act. Only where the business granted bookings:decide. | admin | rivier workspace connected business person token |
| PATCH | /connected-businesses/{id} | Who tells the people of a booking made through this connection: platform (the default: Rivier schedules no reminders and sends them nothing) or business (as the business's own settings say); and the platform's own metadata on it. | admin | rivier workspace connected business update |
| POST | /connected-businesses/{id}/pause | Pause a connection: the platform's calls into that business are refused as for an ended one, the grant is kept and the business's events still arrive. Resume it to work there again. | admin | rivier workspace connected business pause |
| POST | /connected-businesses/{id}/resume | Resume a paused connection with the grant it had. | admin | rivier workspace connected business resume |
| POST | /connected-businesses/{id}/end | End a connection: the platform's calls into that business stop at once. The business and everything in it stay with its owner. | admin | rivier workspace connected business end |
product
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /products | The products of the project. | read | rivier workspace product list |
| POST | /products | Add a product. | write | rivier workspace product create |
| GET | /products/{id} | A product with its profile. | read | rivier workspace product get |
| PATCH | /products/{id} | Change a product. | write | rivier workspace product update |
| POST | /products/{id}/archive | Take a product out of use. | write | rivier workspace product archive |
| POST | /products/{id}/restore | Bring an archived product back. | write | rivier workspace product restore |
| GET | /products/{id}/links | The brand items a product uses. | read | rivier workspace product links |
| POST | /products/{id}/links | Attach an asset or collection to a product. | write | rivier workspace product link |
| DELETE | /products/{id}/links/{kind}/{refId} | Detach a brand item from a product. | write | rivier workspace product unlink |
resource
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /resources | Links, documents and handles kept at a level. | read | rivier workspace resource list |
| POST | /resources | Keep a resource at a level. | write | rivier workspace resource add |
| DELETE | /resources/{id} | Remove a resource. | write | rivier workspace resource remove |
| GET | /projects/{projectId}/resources/{type}/{rid}/move-check | What moving a resource to another project of the same organisation would move, and what stops it. Changes nothing. A document is {collection}~{id}; the other types are `prompt_set`, `asset`, `product`, `connection` and `agent`, each by its id. `info` lists what moving changes without stopping it. | read | rivier workspace resource move check |
| POST | /projects/{projectId}/resources/{type}/{rid}/move | Move a resource to another project of the same organisation (an owner or an admin of the organisation; a person, never a key). | write | rivier workspace resource move |
overview
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /workspace | The workspace in one read: agents, connections, what is waiting. | read | rivier workspace overview get |
| GET | /workspace/summary | Counts for the dashboard. | read | rivier workspace overview summary |
| GET | /workspace/home | The home screen's data. | read | rivier workspace overview home |
| GET | /workspace/you | The signed-in person, their role and workspace. | read | rivier workspace overview you |
| GET | /workspace/queue | Everything that arrived and still needs a person. | read | rivier workspace overview queue |
activity
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /workspace/activity | What agents did, newest first. | read | rivier workspace activity list |
| GET | /workspace/activity.csv | The activity log as CSV. | read | rivier workspace activity csv |
setup
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /workspace/setup/guide | The setup checklist and what is done. | read | rivier workspace setup guide |
portfolio
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /workspace/portfolio | Every workspace of the organisation at a glance. | read | rivier workspace portfolio get |
gap
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /workspace/gaps | Questions customers ask that the knowledge cannot answer. | read | rivier workspace gap list |
| POST | /workspace/gaps/page | Draft a page that closes a gap. | write | rivier workspace gap page |
watch
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /workspace/watch | Answers drafted in watch mode, awaiting a verdict. | read | rivier workspace watch list |
| POST | /workspace/watch/{id}/verdict | Say whether a drafted answer was good. | write | rivier workspace watch verdict |
service
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| POST | /workspace/run | Run one action of a connected service now. | write | rivier workspace service run |
brand
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /workspace/brand | The business's name, domain, sender address and accent. | read | rivier workspace brand get |
| PUT | /workspace/brand | Change the business profile. | write | rivier workspace brand update |
people
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /workspace/people | Who has a role in the workspace. | read | rivier workspace people list |
| POST | /workspace/people | Invite a person with a role. | admin | rivier workspace people invite |
| DELETE | /workspace/people/{id} | Remove a person. | admin | rivier workspace people remove |
| PATCH | /workspace/people/{id} | Change a person's role. | admin | rivier workspace people set role |
plan
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /workspace/plan | The plan and what it allows. | read | rivier workspace plan get |
organization
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /organizations | The organisations the person belongs to. | read | rivier workspace organization list |
| POST | /organizations/{id}/activate | Work inside an organisation. | admin | rivier workspace organization activate |
org workspace
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /organizations/{id}/workspaces | An organisation's workspaces. | read | rivier workspace org workspace list |
| POST | /organizations/{id}/workspaces | Add a workspace. | admin | rivier workspace org workspace create |
| DELETE | /organizations/{id}/workspaces/{wid} | Remove a workspace. | admin | rivier workspace org workspace delete |
| PATCH | /organizations/{id}/workspaces/{wid} | Rename a workspace, or move it to another organisation by giving organizationId (an owner or admin of both; a person signs in for this, a key cannot). | admin | rivier workspace org workspace rename |
| GET | /organizations/{id}/workspaces/archived | The archived workspaces. | read | rivier workspace org workspace archived |
| POST | /organizations/{id}/workspaces/{wid}/restore | Bring an archived workspace back, within the plan's limit. | admin | rivier workspace org workspace restore |
| GET | /organizations/{id}/workspaces/{wid}/retire-plan | What retiring an archived workspace removes, by area with counts and sizes, what stops it, and when the schedule would retire it. | read | rivier workspace org workspace retire plan |
| POST | /organizations/{id}/workspaces/{wid}/retire | Remove an archived workspace for good. The name is typed and the loss acknowledged; the domain registration and DNS are never touched. | admin | rivier workspace org workspace retire |
| GET | /organizations/{id}/workspaces/{wid}/clear-plan | What clearing some areas of a workspace removes, and which other areas must be cleared with them. | read | rivier workspace org workspace clear plan |
| POST | /organizations/{id}/workspaces/{wid}/clear | Remove the data of some areas, or all of them, and keep the workspace, its settings, keys, members, plan and domains. | admin | rivier workspace org workspace clear |
| POST | /organizations/{id}/workspaces/{wid}/export | Make the export of a workspace's records, kept for seven days. | admin | rivier workspace org workspace export |
| GET | /organizations/{id}/workspaces/{wid}/export | Download the export made for a workspace. | read | rivier workspace org workspace export download |
profile
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /account/profile | The signed-in person's profile: the name from their Praecise account (read-only here), language, time zone, formats, accessibility and theme. | read | rivier workspace profile get |
| PATCH | /account/profile | Change the language, time zone, formats, accessibility and theme. The name and address are changed in the Praecise account. | write | rivier workspace profile update |
notification
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /account/notifications | Notification choices per topic and channel, digest and quiet hours; a project id gives that project's override. | read | rivier workspace notification get |
| PUT | /account/notifications | Change notification choices. Security email cannot be switched off. | write | rivier workspace notification set |
account data
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| POST | /account/export | Everything held about the person, as JSON. | write | rivier workspace account data export |
account deletion
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /account/delete | Whether a deletion of the account is waiting, and the phrase to type. | read | rivier workspace account deletion get |
| POST | /account/delete | Ask for the account to be deleted after a 14-day cooling-off. | write | rivier workspace account deletion request |
| DELETE | /account/delete | Cancel a pending account deletion. | write | rivier workspace account deletion cancel |
account feed
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /account/feed | What the other Praecise products have for the signed-in person (Inbox, Spaces, Cloud, Skerry...), in their language, from the account's feed at the Praecise account service. Each item opens its own product. | read | rivier workspace account feed list |
| POST | /account/feed/seen | Mark the items that were shown as seen (up to 100). | write | rivier workspace account feed seen |
| POST | /account/feed/done | Dismiss one item of the feed. It does not do the thing in its product. | write | rivier workspace account feed done |
account token
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /account/tokens | The account's tokens: name, scopes, last use and expiry. Never a secret. | read | rivier workspace account token list |
| POST | /account/tokens | Make an account token for the command line or an agent. The secret is shown once. Needs a signed-in person; a token cannot make a token. | write | rivier workspace account token create |
| POST | /account/tokens/{id}/rotate | Replace a token with a twin; the old one keeps working for the overlap. The new secret is shown once. | write | rivier workspace account token rotate |
| DELETE | /account/tokens/{id} | Revoke a token at once. | write | rivier workspace account token revoke |
audit
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /projects/{projectId}/audit | Who did what in the project; filter by action, actor and dates. | read | rivier workspace audit list |
| GET | /projects/{projectId}/audit.csv | The audit log as CSV. | read | rivier workspace audit csv |
org library
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| POST | /org-library/items | Share one of this project's templates, segments, forms or brand assets with the organisation's other projects. Sharing it again publishes a new version. | write | rivier workspace org library publish |
| GET | /org-library/items | What the organisation has shared: templates, brand assets, segments and forms, with folders and tags, and which ones this project already uses. | read | rivier workspace org library list |
| GET | /org-library/items/{id} | One shared item in full, with its versions and how many projects use it. | read | rivier workspace org library get |
| PATCH | /org-library/items/{id} | Rename a shared item, move it to a folder, tag it or set its language. | write | rivier workspace org library update |
| DELETE | /org-library/items/{id} | Take an item out of the organisation library. Copies already in projects are kept. | write | rivier workspace org library remove |
| POST | /org-library/items/{id}/versions | Publish a new version of a shared item from this project's changed copy. Projects using it are offered the update. | write | rivier workspace org library new version |
| POST | /org-library/items/{id}/use | Use a shared item in this project: a copy that remembers where it came from. With refresh, bring an earlier copy up to the latest version. | write | rivier workspace org library use |
| GET | /org-library/updates | Copies in this project that are behind the organisation library. | read | rivier workspace org library updates |
org library settings
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /org-library/settings | Whether this organisation lets a contact's consent travel with it between projects. | read | rivier workspace org library settings get |
| PUT | /org-library/settings | Allow or forbid consent travelling with a contact between projects. A person sets this. | write | rivier workspace org library settings set |
org library contact
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| POST | /org-library/contacts/adopt | Take a contact another project shared into this one. It arrives without consent and a pending record is written; a person may carry the consent along when the organisation allows it. | write | rivier workspace org library contact adopt |
project hub
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /project-hub | The project as one page: counts of campaigns, templates, segments, lists, forms and contacts, domains, numbers and assets, the sender, recent campaigns, library updates, setup progress and what is blocking. | read | rivier workspace project hub get |
| GET | /project-hub/search | Search across the project's contacts, campaigns, templates, segments, forms, brand assets, domains, numbers and the organisation library. | read | rivier workspace project hub search |
| POST | /project-hub/campaign-from-brief | Draft a campaign from a brief: picks the segment among those that can be written to, reuses the best template (the organisation's if the project has none), writes the copy in the audience language and runs the check. It stops at a draft: a person approves it before anything is sent. | write | rivier workspace project hub draft from brief |
org client
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /projects/{projectId}/clients | The project's clients: search by name, email or tag, active ones by default (archived: include or only), paged. | read | rivier clients list |
| GET | /projects/{projectId}/clients/{id} | One client with its contacts. | read | rivier clients get |
| POST | /projects/{projectId}/clients | Add a client (a name is unique among the project's active clients). Editor and above. | write | rivier clients create |
| PATCH | /projects/{projectId}/clients/{id} | Change any part of a client; fields left out stay as they are. | write | rivier clients update |
| POST | /projects/{projectId}/clients/{id}/archive | Archive a client: hidden from lists and pickers, its history and documents kept. | write | rivier clients archive |
| POST | /projects/{projectId}/clients/{id}/restore | Bring an archived client back. | write | rivier clients restore |
| POST | /projects/{projectId}/clients/import | Load clients from CSV text. With apply false (the default) it shows what would be created, changed or skipped and writes nothing. | write | rivier clients import |
| GET | /projects/{projectId}/clients/{id}/events | What happened to a client, newest first. | read | rivier clients events |
| GET | /projects/{projectId}/clients/{clientId}/documents | Every quote, proposal and invoice of a client newest first. | read | rivier clients documents |
org contact
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /projects/{projectId}/clients/{id}/contacts | The contacts of a client. | read | rivier clients contacts list |
| POST | /projects/{projectId}/clients/{id}/contacts | Add a contact to a client (a name or an email address is needed; one can be primary, several can be copied by default). | write | rivier clients contacts add |
| PATCH | /projects/{projectId}/clients/{id}/contacts/{contactId} | Change a contact of a client. | write | rivier clients contacts update |
| DELETE | /projects/{projectId}/clients/{id}/contacts/{contactId} | Remove a contact from a client. | write | rivier clients contacts remove |
org branding
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /projects/{projectId}/branding | The branding documents are printed with: names, address, tax and registration numbers, bank details, footer, accent colour, font, sender name, reply-to, and whether a logo is set. | read | rivier branding get |
| PUT | /projects/{projectId}/branding | Change the branding; fields left out stay as they are. Needs an admin (a person who is owner or admin, or an admin key). | write | rivier branding set |
| PUT | /projects/{projectId}/branding/logo | Set the logo (variant light or dark): base64 PNG, JPEG, WebP or SVG up to 512 KB; an SVG is sanitised. Needs an admin. | write | rivier branding logo set |
| GET | /projects/{projectId}/branding/logo | The logo file (variant light or dark). | read | rivier branding logo get |
org template
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /projects/{projectId}/templates | The project's own templates (archived: include or only) with the starter gallery, optionally for one kind and language. | read | rivier templates list |
| GET | /projects/{projectId}/templates/gallery | The starter gallery: four layouts per kind (minimal, classic, modern, bold) and, for proposals, four use cases, in English, Dhivehi and Arabic. | read | rivier templates gallery |
| GET | /projects/{projectId}/templates/{id} | One template. | read | rivier templates get |
| POST | /projects/{projectId}/templates | Make a template: by hand, from a gallery starter (fromGallery), or from a document's content (a body with lines, which drops any tax field on them). Editor and above. | write | rivier templates create |
| PATCH | /projects/{projectId}/templates/{id} | Change a template; fields left out stay as they are. An editor changes templates they made, an admin any. | write | rivier templates update |
| POST | /projects/{projectId}/templates/{id}/duplicate | A copy of a template (optionally named); the copy is never the default. | write | rivier templates duplicate |
| DELETE | /projects/{projectId}/templates/{id} | Archive a template: out of the pickers, its copies in documents untouched. Needs an admin. | write | rivier templates archive |
| POST | /projects/{projectId}/templates/{id}/default | Make a template the default of its kind (isDefault false clears it). Needs an admin. | write | rivier templates default |
| POST | /projects/{projectId}/templates/apply | A copy of a template's (or a gallery starter's) content to place into a new document; nothing is saved. | write | rivier templates apply |
| POST | /projects/{projectId}/templates/preview | The renderable view of a template or starter with the project's branding and sample figures; nothing is saved. | write | rivier templates preview |