Build with a coding agent
A coding agent such as Claude Code can build an app, a script or a tool on the Personaas API for you. It needs three things: the docs in one file, your base URL and key in the environment, and a clear prompt.
Any language, framework or platform works. The API is plain HTTPS and JSON.
Only want to log work or manage tasks from inside Claude Code, without building anything? Install the Claude Code connector instead.
1. Give the agent the docs in one file
Everything an agent needs is published as one plain-text file. Download it into your project:
curl -o personaas-api.md https://docs.personaas.click/llms-full.txt
It contains this page's rules, authentication, every guide and the API reference. Download it again when the changelog shows a change.
2. Put your base URL and key in the environment
The agent cannot create a key for you. Create one as described in Before you start, then:
export PERSONAAS_BASE_URL="https://alpha.personaas.ai" # your base URL
export PERSONAAS_API_KEY="p-…@org_…" # your key
The agent finds your organisation's engine itself, with GET /api/v1/auth/me
(see Engines).
Do not paste the key into the chat or into the code.
3. Start with this prompt
Read personaas-api.md fully before writing any code, and follow its rules.
Then build <describe what you want> for the persona named "<persona name>".
Read the base URL from PERSONAAS_BASE_URL and the API key from
PERSONAAS_API_KEY. First call /api/v1/auth/me to find my organisation's engine,
then list my personas to check the connection works.
For example: "…then build a command-line tool that sends a question to the persona named "HR Assistant" and prints the answer."
To make the agent follow the file in every session, add one line to your
project's CLAUDE.md:
For anything that calls Personaas, follow personaas-api.md.
Rules for the agent
These rules are part of the file the agent reads. They are listed here so you can check its work.
- Only call endpoints listed in the API reference. If an endpoint is not listed there, it is not part of the contract. Do not guess paths, and do not use a path from anywhere else, even if it appears to work.
- Every call acts as one user. It sees only the personas assigned to that user and only that user's conversations. Do not design features that need another user's data.
- Never build a key or token into the app. Each person uses their own personal API key, or signs in with their own account. Read the key from the environment or from secure storage. See Authentication.
- Use only the response fields shown in the guides. Responses can contain more fields than documented. Ignore them.
- Take ids from the API, never hard-code them. Persona and task ids differ between organisations.
- Read the base URL from configuration. Never write a URL into the code.
- Use the paths for the organisation's engine. Read it from
/api/v1/auth/meat start-up, never hard-codev1orv3. See Engines. - Ask the way the Personaas app does. Create a conversation, open its
stream, then send with
/messageand read the answer from the stream. A run can take minutes: show a waiting state, handle503and failed runs, and never resend a question because it is slow. See Ask a persona a question. - Hide tasks where
sensitiveistrue. Apps cannot run them yet. Never treat them like normal tasks.
Which page for which job
| The app needs to… | Read |
|---|---|
| Authenticate | Authentication |
| Show the personas and tasks the user can use | List personas and tasks |
| Ask a persona something and get the answer | Ask a persona a question |
| Keep a multi-turn conversation, show history | Continue a conversation |
| Send a file to the persona, download files it made | Send and receive files |
| Show the answer as it is being written | Stream the answer |
| Find the right persona for the user's question | Find the right persona for a question |
| Find which paths the organisation's engine uses | Engines |
| See every allowed endpoint in one table | API reference |
Start with the persona list, then the steps in Ask a persona a question: create a conversation, open its stream, send the question, read the answer from the stream. Check the conversation instead only when the app cannot keep a connection open.
Before the work is done
Check the result against the checklist in App rules.