Orgs, people and roles
Who may do what, keys for people and for servers, and inviting your team.
An org is your company on Pinecall: its agents, its numbers, its calls and its people. Each person has a role that says what they may do, and a switch that says whether they may do it in production. Servers run on tokens of their own, which belong to the org and not to a person.
How it works#
People and roles#
An admin invites people from the console's Team screen, on production's console. Each invitation names an email, a role, the production switch and, if you want, the agents the person works on. The person gets a one-use link, chooses a password, and is in. Somebody who already belongs to another org gets the link by mail only, and keeps the password they have. Team is also where a role is changed, the switch is moved, a password is reset, and a person is disabled or removed.
A role is a preset of what that person's keys open:
| role | may | for |
|---|---|---|
qa |
read finished calls and the test suites | reviewing quality |
supervisor |
+ listen to live calls, whisper, take a call over, the agent's words and what it remembers | the people on the phone floor |
manager |
+ numbers, every key of the org (listed and revoked, never made), provider keys, usage and the team | running the floor and the org's accounts, never which model an agent runs on |
developer |
run agents, their calls, the pipeline, words, knowledge, memory and tests | writing and running the agent |
admin |
everything | the org's owner |
Each role is a fixed set of scopes, and every route of the API asks for one scope. Which screens each scope opens is in The console.
| role | scopes |
|---|---|
qa |
calls, evals |
supervisor |
calls, evals, supervise, talk, memory, words |
manager |
calls, evals, supervise, talk, memory, numbers, keys, providers, usage, team, words |
developer |
app, calls, talk, supervise, pipeline, knowledge, memory, evals, words |
admin |
every scope |
You can only hand out what you hold. A manager invites qa, supervisors and managers, never a
developer or an admin. Nobody changes their own role or their own switch: another admin does. An
org's last active admin cannot be removed.
A person may also be limited to some agents. An empty list, the default, is every agent of the org. With a list, their key is refused at every endpoint that names an agent outside it:
403 Bruno works on front-desk, and agent billing is not one of them: an admin adds it in Team
An org can also sign its people in with its own identity provider (Google Workspace, Okta, Entra or any OpenID Connect provider). An admin sets it up on the Team screen.
The production switch#
The role says what a person does; the switch says whether they may do it in production. It is read
on every request, so turning it off closes the very next --prod. Without it, a person still has
the whole sandbox (Sandbox and production).
Your key#
You never type a password into a terminal. Once per machine:
$ pinecall login
open this to sign in:
https://cloud.pinecall.io/cli?c=cli_…
waiting…
signed in to https://cloud.pinecall.io as Ana García · org clinica
You sign in in the browser, and the terminal gets a key of its own, labelled with this machine and
kept in ~/.pinecall/session.json, never in a project. It opens the sandbox, and production with
--prod while your switch is on. You may belong to several orgs: each project names the one it
runs in, in the pinecall.json at its root that pinecall new writes — asking which when you
belong to several — and this machine's key in that org is made the first time a command needs it.
pinecall.json holds no key, so it is committed with the project.
pinecall whoami says which org and which key a folder is using, and where the key came from. Run
it first when a command is refused and you do not know why.
$ pinecall whoami
cloud.pinecall.io · org clinica · sandbox
key k_4f2a1d9c66b30e17 · ana-macbook
from your sign-in (~/.pinecall/session.json)
opens the sandbox, and production with --prod: a person's key
Server tokens#
A server that runs an agent has no browser and no person. It runs on a server token, made in the
console under Settings ▸ API keys and shown once, as PINECALL_KEY=pc_live_… (production) or
PINECALL_KEY=pc_test_… (sandbox). Run it on your own server
walks through making one and where to keep it.
A server token opens what running an agent needs: app, calls, talk, knowledge and evals,
that is holding the agent, its calls, talking to it, pushing its knowledge and running its tests. It
never opens the org's people, numbers or money. It opens the sandbox only, or production only. It is
made by a developer or an admin (a key that opens app), and a production token only by somebody
with production access. A manager sees and revokes every token, but makes none.
A server token belongs to the org. When the person who made it is removed, every key of theirs is revoked, and the token keeps working. Tokens are revoked one by one from the same screen.
Where your org's plan caps seats, an invitation takes a seat as soon as it is sent. Disabling a person frees it.