Get started
Create a key in the Pooli app, then call the REST API, or connect an AI assistant with OAuth and no key.
Generate a key
- Open Settings.
- Under Account & Services, tap API Keys.
- Tap Generate API Key.
The API key created dialog shows a masked key. Copy key only copies the key. The Authorization header row has its own Copy authorization header button, which copies the full Bearer <key> value.
Keys stay in the list, so you can copy them later. Each key row also has the Authorization header copy. Treat a key like a password. Tap Delete on its row to revoke it immediately.
REST
Send this header on every request. Bearer is the literal word, then one space, then the key:
Authorization: Bearer <API_KEY>
The API Keys screen also shows a copyable User ID for REST routes that take {uid}. GET /v1/me returns that id too.
Connect an AI assistant (MCP)
Connect Claude, ChatGPT, or Grok with the Pooli connector. You sign in with your Pooli account in the browser, so there is no API key to copy. The server exposes 22 tools: 12 personal logging tools, plus 10 Pooli Pro organization tools.
MCP: connector URL, personal and organization tool list, and advanced API key setup. Step by step for each app: Connect Pooli to your AI assistant.
Rate limits
Requests are rate limited per hour. Active Pool Club subscribers are limited to 150 requests per hour. Non-Club members are limited to 10 requests per hour. The limit is per user and is shared by all of that user's API keys and connected AI assistants. See Rate Limiting and Quotas.
MCP
The Pooli MCP server lets Claude, ChatGPT, Grok, and other MCP clients act as you in Pooli. Sign in with OAuth in the browser. There is no API key to copy. The server registers 22 tools: 12 personal logging tools, and 10 Pooli Pro organization tools.
Connect
- Connector URL:
https://mcp.pooli.app/mcp - Sign in: OAuth. The assistant opens a Pooli sign-in page and you approve access. Pooli then gives the assistant its own API key.
- Disconnect: delete the assistant's key in the app under AI Assistants and API Keys.
https://mcp.pooli.app/mcp
Step by step for Claude, ChatGPT, and Grok: Connect Pooli to your AI assistant. Developers building a client can read OAuth sign-in.
Tools
Ask in plain language and the assistant picks the right tool.
Personal / logging
12 tools for pools on the signed-in account.
| Tool | What it does |
|---|---|
whoami | Shows which Pooli account you are signed in as, your organizations and role, whether Club or a technician seat is covered, and how many requests you have left this hour. |
resolve_pool | Finds a pool by a fragment of its name, such as "oasis". Leave the name out to list your pools. |
list_maintenance_catalog | Lists the maintenance tasks you can record, built in and custom. |
match_maintenance | Matches a phrase like "brushed the walls" to catalog tasks before recording. |
record_maintenance | Records maintenance tasks on a pool. |
record_note | Adds a note to a pool. It can include photos (JPEG, PNG, GIF, or WebP, up to 4 per call). |
update_note | Edits a note, or adds more photos to it. Photos are added, never replaced. |
record_test | Records a water test: pH, chlorine, alkalinity, cyanuric acid, and the other readings. |
record_product | Records a chemical or product you added, with amount and unit. |
record_meter | Records a meter reading: pressure, temperature, salt cell, feeder, or water. |
record_swim | Records a swim: number of swimmers and duration. |
record_visit | Turns one sentence into several logs. Example: "emptied the skimmers and brushed the walls at the oasis". |
Pooli Pro / organization
10 tools for the signed-in organization. They are always registered. They refuse if the account has no organization. One organization is used automatically. With several, the assistant asks which one. Accounts without an organization keep using the personal tools above.
| Tool | What it does |
|---|---|
search_customers | Finds a customer by name, email, phone, or address, and shows their pools. |
my_route | Lists stops for today, or for a date you name, with the pool, address, and which photos each stop needs. |
add_stop | Schedules a new stop for a pool, at the local time you say. |
set_org_time_zone | Owners and admins only. Changes the organization's time zone. |
start_stop | Starts the job when you arrive. It tells you which photos are still needed. |
pause_job | Pauses an in-progress job. |
resume_job | Resumes a paused job. |
add_job_photo | Adds before, after, or gate photos to the job. |
complete_job | Finishes the job. If a required photo is missing, it names it and nothing is completed. |
send_report | Shows you who will get the service report and a preview. It emails the customer only after you confirm. |
Logging tools (record_test, record_maintenance, and so on) still work during a Pro stop if you pass the poolId from my_route or start_stop.
Advanced: connect with an API key
Use an API key only when a client cannot sign in with OAuth but can set a request header. Never paste a key into a chat message.
- Server URL:
https://mcp.pooli.app/mcp - Transport: Streamable HTTP
- Header name:
Authorization - Header value:
Bearer <API_KEY>. Use Copy authorization header to copy the full value.
Some clients take the key alone and add Bearer themselves. If the client has a separate token or API key field, paste just the key into that field.
No user ID is needed for MCP. The server resolves your account from the key or from the OAuth sign-in. Note and job photo tools can attach photos (JPEG, PNG, GIF, or WebP, about 1.5 MB each, 4 per call, 12 photos per note).
API Overview
Welcome to the Pooli API, a complementary extension to our intuitive Pooli app interface. While the app provides a user-friendly way to manage your pool, our API opens up additional possibilities, enabling advanced interactions with your pool data programmatically. This powerful combination means that you can now automate routine tasks, integrate with other systems, or even create custom applications, all while continuing to enjoy the ease and familiarity of the Pooli app. The Pooli API serves as your versatile gateway to comprehensive and efficient pool management.
Version: 1.0 (Alpha) - Date: August 4, 2025
Note: This is a beta version of the Pooli API and may be subject to changes and updates.
OpenAPI specification
The machine-readable definition is an OpenAPI 3 spec.
- Spec: https://api.pooli.app/openapi.json.
https://api.pooli.app/v1/openapi.jsonserves the same document. - Development spec: https://dev-api.pooli.app/openapi.json
The development host is https://dev-api.pooli.app. api-dev.pooli.app does not resolve, so do not use it.
The spec documents every route, including the legacy alias paths. This page is the full guide.
Key Features
- Programmatic Pool Management: Seamlessly create and delete pools using our API. This feature allows for dynamic management of pool data, offering flexibility and control to automate your pool maintenance and management tasks.
- Reading Inventory: Get real-time access to your pool inventory. View available supplies, equipment status, and reorder levels with simple API calls.
- Managing To-Dos: Stay on top of your pool maintenance tasks. The API provides functionalities to manage and update your to-do lists, helping you prioritize and schedule maintenance activities efficiently.
- Adding Logs: Easily add detailed logs to track pool maintenance, chemical levels, and more. Our API allows for quick log entries, ensuring you have up-to-date information about your pool's condition.
- Accessing All Logs: Retrieve comprehensive log data for any specified time range. This feature is ideal for analyzing trends, monitoring pool health over time, and making informed decisions about pool care.
With the Pooli API, you can create custom scripts and applications that leverage these features, streamlining your pool management process and enhancing your pool experience. Our robust, easy-to-use API is designed to empower users, developers, and pool enthusiasts alike to innovate and optimize pool care.
To connect Claude, ChatGPT, or Grok, see MCP. For feature requests, bug reports, or any questions, please email support@pooli.app.
Rate Limiting and Quotas
Rate limits keep the API fair and stable. The window is one hour. Limits depend on membership in the Pool Club.
Pool Club Members
Active Pool Club subscribers are limited to 150 requests per hour. See Pool Club benefits or sign up.
Non-Club Members
Non-Club members are limited to 10 requests per hour.
Shared across keys and assistants
The limit is per user. All of a user's API keys and connected AI assistants count against the same hourly total.
Stay inside these hourly limits to avoid interruptions. Questions: support@pooli.app.
Authentication
The Pooli API authenticates every request with a Bearer credential. A long-lived API key is a valid Bearer credential. An access token from POST /v1/auth/token is also a valid Bearer credential. The OAuth sign-in that AI assistants use also hands out a regular API key. Each key and token belongs to one user.
Step 1: Generate Your API Key
Create your API key in the Pooli app. The key belongs to the user who created it and provides access to that user's documents, plus any organization where that user is an owner, an admin, or an active technician. The screens and buttons are in Get started.
Rate Limiting
Rate limiting is applied on a per-user basis to ensure fair usage and system stability. Be mindful of your request frequency to stay within the rate limits. See Rate Limiting and Quotas.
API Base URLs
The Pooli API is available at the following endpoints:
- Production:
https://api.pooli.app - Development:
https://dev-api.pooli.app
Use dev-api.pooli.app for development. api-dev.pooli.app does not resolve.
Canonical user paths are /v1/users/{uid}/.... Canonical organization paths are /v1/organizations/{orgId}/.... The legacy aliases /users/{uid}/... and /organizations/{orgId}/... stay supported and are listed in the OpenAPI spec. New integrations should use the /v1 paths.
Using the API Key
Send the long-lived API key on every request that should run as that key:
Authorization: Bearer YOUR_API_KEY
Personal routes under /v1/users are for the key's own user only. The user id in the path must be the user id on the key. GET /v1/me returns that id.
API keys do not expire. A key's expiresAt field is reserved for a future maximum lifetime and is not enforced today. A key stops working only when you revoke it, or when a rotation grace period ends. Access tokens are different: each one has its own expiresAt, 15 minutes by default.
Versioning
API versions are specified in the url. The current version is v1. For example, to fetch all pools for a user:
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
'https://api.pooli.app/v1/users/YOUR_USER_ID/pools'
To fetch a specific pool:
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
'https://api.pooli.app/v1/users/YOUR_USER_ID/pools/YOUR_POOL_ID'
Replace YOUR_API_KEY, YOUR_USER_ID, and YOUR_POOL_ID with your API key, user ID, and pool ID. An access token can stand in for the API key in the same Authorization header.
Access tokens
Endpoint: POST /v1/auth/token
Description: Exchanges a long-lived API key for an access token. The token lasts 15 minutes. You can request a longer lifetime, up to 60 minutes. Send the access token as Authorization: Bearer YOUR_ACCESS_TOKEN.
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
'https://api.pooli.app/v1/auth/token'
Endpoint: POST /v1/auth/token/refresh
Description: Issues a new access token from a current access token. The new token follows the same lifetime: 15 minutes, with a maximum of 60 minutes.
curl -X POST \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
'https://api.pooli.app/v1/auth/token/refresh'
OAuth sign-in for AI assistants and apps
The Pooli MCP connector signs users in with OAuth instead of an API key. The user approves access in the browser, and the client gets a regular Pooli API key that runs as that user. The tools the server exposes are listed under MCP. Any MCP client or app that supports OAuth with dynamic client registration can use the same flow. API keys stay supported as the advanced option.
- Issuer:
https://api.pooli.app - Metadata:
GET https://api.pooli.app/.well-known/oauth-authorization-server - Scope:
pooli - Resource:
https://mcp.pooli.app/mcp
curl 'https://api.pooli.app/.well-known/oauth-authorization-server'
Read the endpoint URLs from the metadata document rather than hard-coding them.
Register a client
Endpoint: POST /oauth/register
Description: Dynamic client registration. Register to get a client ID, then use it on the authorize and token requests. Registration is stateless. The client ID is signed, so Pooli does not keep a client record.
Authorize
Endpoint: GET /oauth/authorize
Description: Sends the user to the Pooli sign-in and approval page. Send response_type=code, your client_id, redirect_uri, scope=pooli, resource=https://mcp.pooli.app/mcp, a state value, and a PKCE challenge with code_challenge_method=S256. PKCE with S256 is required.
Authorization responses include the iss parameter (RFC 9207). Check that it equals https://api.pooli.app before you use the code.
https://api.pooli.app/oauth/authorize
?response_type=code
&client_id=CLIENT_ID
&redirect_uri=REDIRECT_URI
&scope=pooli
&resource=https%3A%2F%2Fmcp.pooli.app%2Fmcp
&state=STATE
&code_challenge=CODE_CHALLENGE
&code_challenge_method=S256
The redirect URI must match a registered one exactly. For loopback redirect URIs, the port can differ from the one you registered.
Token
Endpoint: POST /oauth/token
Description: Exchanges an authorization code for a Pooli API key. The body is form-encoded (application/x-www-form-urlencoded), not JSON.
curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "grant_type=authorization_code" \
--data-urlencode "code=AUTHORIZATION_CODE" \
--data-urlencode "redirect_uri=REDIRECT_URI" \
--data-urlencode "client_id=CLIENT_ID" \
--data-urlencode "code_verifier=CODE_VERIFIER" \
'https://api.pooli.app/oauth/token'
The access_token in the response is a regular Pooli API key. It starts with pooli_oak_. The response has no expires_in and no refresh_token, because the key does not expire. It works until the user deletes it. Store it like any other secret.
Revoke
Endpoint: POST /oauth/revoke
Description: Revokes the access token you send, which deletes that API key. Users can also delete the key in the Pooli app, as described below.
Using the OAuth key
Send the pooli_oak_ key to the API as a Bearer credential, exactly like any other API key:
curl -X GET \
-H "Authorization: Bearer pooli_oak_YOUR_KEY" \
'https://api.pooli.app/v1/me'
A key that was deleted gets a 401 with this header. Send the user through sign-in again to get a new key:
WWW-Authenticate: Bearer error="invalid_token"
The OAuth key uses the same rate limits as any API key: 10 requests per hour, or 150 per hour for Club. There is one limit per user, shared by all of that user's API keys and connected assistants. See Rate Limiting and Quotas.
Connected assistants appear in the app's existing API keys list, labeled with the assistant's name and the date it was connected. To disconnect one, delete that key in the app under AI Assistants and API Keys. There is no separate list of connected apps.
Not supported
Client ID Metadata Documents (CIMD, where the client ID is a URL) are not supported. Register with POST /oauth/register instead.
Current user
Endpoint: GET /v1/me
Description: Returns the user id on the API key and the organizations that the user can access. Send Authorization: Bearer with the API key, or with an access token from POST /v1/auth/token. A bad credential returns 401.
uid is apiKeys.uid. organizationIds is the sorted list of organizations where that user is the owner, an admin, or an active technician. The list is [] when there are none. A client-supplied uid and X-Pooli-Act-As are ignored.
Once this route is live, MCP and Grok Bot Connect can call it with the API key alone. They do not need a separate user id.
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
'https://api.pooli.app/v1/me'
200:
{ "uid": "USER_ID", "organizationIds": ["ORG_ID"] }
API key lifecycle
These routes manage the caller's API key. Authenticate with that key, or with an access token issued for it.
Regenerate
Endpoint: POST /v1/auth/keys/regenerate
Description: Invalidates outstanding access tokens and keeps the same API key string.
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
'https://api.pooli.app/v1/auth/keys/regenerate'
Rotate
Endpoint: POST /v1/auth/keys/rotate
Description: Issues a new API key. The previous key keeps working until graceEndsAt. The grace period defaults to 7 days. Set it from 0 to 90 days with gracePeriodDays. The response includes graceEndsAt. After graceEndsAt, the next request with the old key revokes it and its access tokens, and that request returns 403.
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"gracePeriodDays":7}' \
'https://api.pooli.app/v1/auth/keys/rotate'
Revoke
Endpoint: POST /v1/auth/keys/revoke
Description: Revokes the API key and its access tokens. Revocation takes effect immediately, including during a rotation grace period.
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
'https://api.pooli.app/v1/auth/keys/revoke'
Acting as another user
On organization routes, the organization owner can send X-Pooli-Act-As set to the user id to act as. The header is owner-only. It is rejected on /v1/users routes. GET /v1/me ignores it.
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Pooli-Act-As: USER_ID" \
-H "Content-Type: application/json" \
'https://api.pooli.app/v1/organizations/ORG_ID/pools'
Idempotency-Key
Idempotency-Key is required on creates for customers, organization pools, stops, inventory, and reminders. The key must be 8 to 200 characters. Send a new key for each new create. Send the same key again when you retry that create. The same key with the same body replays the first response. The same key with a different body returns 409.
Idempotency-Key: 6f1c2b4e-9a7d-4c31-8e2a-1b5d0f3a7c88
Roles
Personal routes under /v1/users are for the key's own user only.
Organization routes accept an organization owner, an organization admin, or an active technician, within these limits:
- Owner and admin: billing (invoices and payments), estimates, service subscriptions, customer create, organization pool create, patch, and delete, CSV import, and technician status.
- Owner, admin, and active technicians: creating stops, and creating, patching, and deleting organization logs.
An active technician is a user in the organization's technicians collection with status active. Technician status values are active, inactive, and rejected. Sending approved returns 400.
Organization access
There is no separate organization key. A personal API key works on /v1/organizations/{orgId}/... routes when its user is the organization owner, an admin, or an active technician.
- Read-only resources: customers, routes, stops, invoices, estimates, subscriptions, payments, products, equipment, service visits, and service reports. These routes do not create or update records.
- Billing reads: invoices, payments, estimates, service subscriptions, and billing fields on customers are limited to owners and admins. Technicians still receive customer name, phone, email, address, notes, and pools.
- Card data: responses never include card numbers, CVC, expiry, or last4.
- Writes: no API write calls Stripe or accepts billing fields. Stops store the pool object the app embeds. Reminder create uses the same reminder scheduler as the app. Personal
/v1/userswrites (pools, logs, inventory, and reminders) require the path uid to match the key user and rejectX-Pooli-Act-As.
Route dates: routes use the organization's timeZone when it is an IANA name such as America/Los_Angeles, or timeZoneOffset in minutes (local minus UTC, so PDT is -420). If the organization has neither, dates use UTC, and route responses show timeZoneSource.
See Organization Endpoints for each route.
Errors
Errors are JSON with the HTTP status repeated in the body. Some errors add a details field.
{ "error": "Invalid idempotency key", "message": "Idempotency-Key must be between 8 and 200 characters", "status": 400 }
Pagination
Every list accepts limit (positive integer, maximum 200), cursor, startAfter (an alias of cursor), and envelope=1. By default the body is a JSON array. An empty log page and an empty inventory return null instead of an empty array. envelope=1 returns { data, page }, where page has limit, nextCursor, and hasMore, and data is always an array. Every list also sets the X-Next-Cursor and X-Has-More headers.
Legacy field spellings
supplimentalSanitizers is the intentional field name. cartrige is the intentional filter spelling used by the app, CSV import, and the value stored when filterCategory is omitted on create. Do not correct either spelling in requests.
Endpoint reference
Canonical paths use the /v1 prefix. /users/{uid} is a legacy alias of /v1/users/{uid}, and /organizations/{orgId} is a legacy alias of /v1/organizations/{orgId}. Those aliases stay supported. Each route below is listed once, in the /v1 form.
List endpoints accept limit (positive integer, maximum 200), cursor, startAfter, and envelope. envelope=1 returns { data, page }. Omit envelope to keep the JSON array. Send Authorization: Bearer with an API key or an access token. See Authentication, Idempotency-Key, Act as, and Roles.
Read only. Invoices, payments, estimates, and service subscriptions are read only. There are no invoice, payment, refund, or Stripe writes.
User endpoints
Personal routes under /v1/users are for the key's own user only.
Pools
Personal pools for the key user. The user id in the path must be the user id on the key.
GET /v1/users/{uid}/pools
Access: Key user only
Idempotency-Key: Not required
List pools for a user.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/users/USER_ID/pools'
# 200
[{"id":"POOL_ID","name":"Main pool"}]
POST /v1/users/{uid}/pools
Access: Key user only
Idempotency-Key: Not required
Create a user pool.
Body is { "pool": { ... } }. name and gallonEstimate are required. Optional fields are poolType (vinyl, plaster or fiberglass, default plaster), filterCategory (de, sand or cartridge), sanitizingChemical (default chlorine), isIndoor and supplimentalSanitizers. isIndoor is a boolean and defaults to false. Sending isIndoor: true is accepted. New pools do not get a built-in target table copied onto them. A test log falls back to your saved default targets, then the built-in table for the pool type.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"pool":{"name":"Main pool","gallonEstimate":20000}}' \
'https://api.pooli.app/v1/users/USER_ID/pools'
# 200
{"id":"POOL_ID","name":"Main pool"}
GET /v1/users/{uid}/pools/{poolId}
Access: Key user only
Idempotency-Key: Not required
Get one user pool.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID'
# 200
{"id":"POOL_ID","name":"Main pool"}
PATCH /v1/users/{uid}/pools/{poolId}
Access: Key user only
Idempotency-Key: Not required
Update a user pool.
Example
curl -X PATCH \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Main pool"}' \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID'
# 200
{"id":"POOL_ID","name":"Main pool"}
DELETE /v1/users/{uid}/pools/{poolId}
Access: Key user only
Idempotency-Key: Not required
Soft-delete a user pool.
Example
curl -X DELETE \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID'
# 200
{"success":true}
Logs
Personal pool logs for the key user. Create requires the type query. Implemented types: test, product, maintenance, note, water, temperature, pressure, swg, feeder, swim. For type=maintenance, load task ids from GET /v1/users/{uid}/maintenance-catalog and copy id, name, category, and duration into each maintenances item.
A swim create sends numSwimmers (positive integer), duration (positive integer seconds), and an optional note. The server stores swimTime as numSwimmers times duration and ignores a client swimTime. Invalid values return 400 with error "Validation Error".
GET /v1/users/{uid}/pools/{poolId}/logs
Access: Key user only
Idempotency-Key: Not required
List logs for a user pool.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID/logs'
# 200
[{"id":"LOG_ID","type":"test"}]
POST /v1/users/{uid}/pools/{poolId}/logs
Access: Key user only
Idempotency-Key: Not required
Create a user pool log.
Creating type=test runs the same analysis as saving a water test in the app. The server stores relatedProblems, recommendations, csi and targets on the log. The 201 response data is still only the log id, so read the log to see the results. A client-sent relatedProblems or recommendations value is replaced. A client-sent targets object is used as sent.
Readings. Send readings in chemicalReading. Four keys are new: mg, kh, nitrites and nitrates. Each is a number or null, like the other reading keys.
What is stored.
relatedProblems: the problems found, in the same form the app saves. A test problem haswaterTestType,testVal,lowRange,highRange,problemType,problemClassanddoseToCenter. Chlorine problems also haveadjustedForCYAandcyaValUsedForAdjustmentwhen the CYA-adjusted band was used. A combined problem is also possible.recommendations: one entry per problem, in the order the app shows them. Each entry hasproblemTypeanditems. An item hasproduct(name,productType,percent,custom, or null when no product fits),amount,unit(fluidOunces,ounces,pounds,gallonsand so on) andwaits. A wait hasuntil(nextTreatment,retestorswim),minutes(or null) and, for some waits, aconditionandtestType. A combined problem has one item per fix, andoptionProblemTypenames the problem each item fixes.csi:valueis the Langelier saturation index, or null when it cannot be worked out.confidenceishigh,mediumorlow, and it drops when hardness or temperature had to be estimated.targets: the target ranges the analysis used, in the app's targets shape.
How the analysis works. Free and total chlorine use the CYA-adjusted band when adjust for CYA is on. That setting is on by default when CYA is a visible test and the pool has not turned it off. Saved FC and TC minimums do not replace that band. Alkalinity problems store adjusted alkalinity, the app default. A derived calcium or total hardness pair is ignored, and a total hardness reading alone can drive CSI. Retest minutes scale with pool size, pool type, how far the dose moves the reading, and how close the reading is to the edge of its range. Products come from the current product catalog, your custom products, your saved default product for each type, and the products hidden on the pool. Targets come from the pool, then your saved default targets, then the built-in table for the pool type. Earlier tests on the pool inside the app lookback window fill in readings this test left out (CSI and CYA).
Known limits.
- The API always uses US units (gallons, fluid ounces, ounces, pounds). The metric display settings in the app do not change it.
- The API does not use inventory links or the product choice made in the phone's product picker.
- Changing
chemicalReadinglater with PATCH does not rerun the analysis. Create a new test to get new results. - Default targets saved at the organization level are not applied.
- For a back-dated test, CSI history is measured from the test's own time.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"chemicalReading":{"ph":7.2}}' \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID/logs?type=test'
# 201
{"success":true,"message":"created","data":"LOG_ID"}
Example: test with the new readings
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"chemicalReading":{"ph":7.9,"freeChlorine":3,"alkalinity":90,"calcium":300,"mg":40,"kh":80,"nitrites":0,"nitrates":10}}' \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID/logs?type=test'
# 201
{"success":true,"message":"created","data":"LOG_ID"}
# GET .../logs/LOG_ID (excerpt)
{
"id": "LOG_ID",
"type": "test",
"relatedProblems": [{"problemType":"highPH","waterTestType":"ph","testVal":7.9}],
"recommendations": [
{
"problemType": "highPH",
"items": [{
"product": {"name":"Muriatic Acid","productType":"phDown","percent":14.5,"custom":false},
"amount": 37.5,
"unit": "fluidOunces",
"waits": [
{"until":"nextTreatment","minutes":15},
{"until":"retest","minutes":60}
]
}]
}
],
"csi": {"value":0.1,"confidence":"high"},
"targets": { ... }
}
Example: swim
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"numSwimmers":2,"duration":1800,"note":"Morning laps","creatorName":"Alex"}' \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID/logs?type=swim'
# 201
{"success":true,"message":"Log created successfully","data":"6f1c0c2e-4b7a-4e1d-9c3a-8b2d5e7f1a90"}
Photos on a note. POST /v1/users/{uid}/pools/{poolId}/logs?type=note accepts a JSON photos array. Do not use multipart. Each item is a base64 string, or an object { "data": "<base64 or data URL>", "filename": "skimmer.jpg", "contentType": "<ignored>" }. contentType is ignored. The server sniffs the image type from the bytes. Allowed types are JPEG, PNG, GIF, and WebP. PDF, HEIC, HEIF, and AVIF are rejected. Create with photos requires note (string). Do not send attachments and photos together. An empty photos array is ignored. The unversioned /users/{uid}/... alias accepts the same body.
Caps are 1.5 MB (1,500,000 decoded bytes) per photo, 4 photos per request, and 12 photos per note. The JSON body limit is 10 MB. A create with photos counts as one request for rate limiting (10 per hour, or 150 per hour for active Pool Club subscribers). See Rate Limiting and Quotas. The 201 body is unchanged: data is the new log id.
GET returns stored attachments. Each photo has this shape:
{
"attachmentType": "photo",
"firestorePath": "users/{uploaderUid}/{sha256}{ext}",
"description": "<filename or sha256+ext>",
"url": "<Firebase Storage download URL>"
}
Errors are JSON { "error", "message", "status" }. 400 Validation Error: unsupported type, bad base64, too many photos, photos on a non-note, or photos together with attachments. 413 File Too Large: a decoded photo is over 1,500,000 bytes. The wrong user returns 403. A missing pool returns 404.
Example: note with photos
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"note":"Skimmer basket is full","creatorName":"Alex","photos":[{"filename":"skimmer.jpg","data":"<base64 JPEG, PNG, GIF, or WebP>"}]}' \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID/logs?type=note'
# 201
{"success":true,"message":"Log created successfully","data":"LOG_ID"}
GET /v1/users/{uid}/pools/{poolId}/logs/{logId}
Access: Key user only
Idempotency-Key: Not required
Get one user pool log.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID/logs/LOG_ID'
# 200
{"id":"LOG_ID","type":"test"}
PATCH /v1/users/{uid}/pools/{poolId}/logs/{logId}
Access: Key user only
Idempotency-Key: Not required
Update a user pool log.
Photos on a note. When the stored log type is note, this PATCH accepts the same JSON photos array as note create. PATCH appends photos. It does not replace photos already on the note. Omit photos for a text-only update. Do not use multipart. Each item is a base64 string, or an object { "data": "<base64 or data URL>", "filename": "skimmer.jpg", "contentType": "<ignored>" }. contentType is ignored. The server sniffs the image type from the bytes. Allowed types are JPEG, PNG, GIF, and WebP. PDF, HEIC, HEIF, and AVIF are rejected. Do not send attachments and photos together. An empty photos array is ignored.
Caps are 1.5 MB (1,500,000 decoded bytes) per photo, 4 photos per request, and 12 photos per note. The JSON body limit is 10 MB. A patch with photos counts as one request for rate limiting (10 per hour, or 150 per hour for active Pool Club subscribers). See Rate Limiting and Quotas.
GET and this PATCH return stored attachments. Each photo has this shape:
{
"attachmentType": "photo",
"firestorePath": "users/{uploaderUid}/{sha256}{ext}",
"description": "<filename or sha256+ext>",
"url": "<Firebase Storage download URL>"
}
Errors are JSON { "error", "message", "status" }. 400 Validation Error: unsupported type, bad base64, too many photos, photos on a non-note, or photos together with attachments. 413 File Too Large: a decoded photo is over 1,500,000 bytes. The wrong user returns 403. A missing note or pool returns 404.
Example
curl -X PATCH \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"note":"Brushed walls"}' \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID/logs/LOG_ID'
# 200
{"id":"LOG_ID","type":"test"}
Example: append a photo
curl -X PATCH \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"photos":[{"filename":"skimmer.jpg","data":"<base64 JPEG, PNG, GIF, or WebP>"}]}' \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID/logs/LOG_ID'
# 200
{"id":"LOG_ID","type":"note","attachments":[{"attachmentType":"photo","firestorePath":"users/USER_ID/<sha256>.jpg","description":"skimmer.jpg","url":"<Firebase Storage download URL>"}]}
DELETE /v1/users/{uid}/pools/{poolId}/logs/{logId}
Access: Key user only
Idempotency-Key: Not required
Delete a user pool log. Deleting a note removes the log document. Storage objects for its photos are left in place, the same as the app.
Example
curl -X DELETE \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID/logs/LOG_ID'
# 200
{"success":true,"message":"ok"}
Inventory
Personal inventory for the key user. Create requires Idempotency-Key.
GET /v1/users/{uid}/inventory
Access: Key user only
Idempotency-Key: Not required
List inventory for a user.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/users/USER_ID/inventory'
# 200
[{"id":"ITEM_ID"}]
POST /v1/users/{uid}/inventory
Access: Key user only
Idempotency-Key: Required
Create a user inventory item.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: create-001" \
-H "Content-Type: application/json" \
-d '{"name":"Chlorine tabs","quantity":1}' \
'https://api.pooli.app/v1/users/USER_ID/inventory'
# 201
{"id":"ITEM_ID"}
PATCH /v1/users/{uid}/inventory/{itemId}
Access: Key user only
Idempotency-Key: Not required
Update a user inventory item.
Example
curl -X PATCH \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"quantity":2}' \
'https://api.pooli.app/v1/users/USER_ID/inventory/ITEM_ID'
# 200
{"id":"ITEM_ID"}
Reminders
Personal reminders for the key user. Create requires reminderType and Idempotency-Key.
GET /v1/users/{uid}/pools/{poolId}/reminders
Access: Key user only
Idempotency-Key: Not required
List reminders for a user pool.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID/reminders'
# 200
[{"id":"REMINDER_ID","poolId":"POOL_ID"}]
POST /v1/users/{uid}/pools/{poolId}/reminders
Access: Key user only
Idempotency-Key: Required
Create a user pool reminder.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: create-001" \
-H "Content-Type: application/json" \
-d '{"reminderType":"test","message":"Test the water"}' \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID/reminders'
# 201
{"id":"REMINDER_ID","poolId":"POOL_ID"}
PATCH /v1/users/{uid}/pools/{poolId}/reminders/{reminderId}
Access: Key user only
Idempotency-Key: Not required
Update a user pool reminder.
Example
curl -X PATCH \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"message":"Test the water"}' \
'https://api.pooli.app/v1/users/USER_ID/pools/POOL_ID/reminders/REMINDER_ID'
# 200
{"id":"REMINDER_ID","poolId":"POOL_ID"}
Maintenance catalog
Built-in maintenance tasks plus this user's custom tasks (users/{uid}.prefs.customMaintenance). Hidden, disabled, deleted, isDeleted rows, blank names, and custom rows whose category is not custom are omitted. Silencing a task is stored on the pool and does not remove it. aliases is present only when the stored task already has that array. duration is seconds.
GET /v1/users/{uid}/maintenance-catalog
Access: Key user only
Idempotency-Key: Not required
List the maintenance catalog. Copy id, name, category, duration, and aggregationName (when present) into each maintenances item on POST /v1/users/{uid}/pools/{poolId}/logs?type=maintenance. group and custom are ignored on create. Supports limit, cursor, startAfter, and envelope=1. Legacy alias GET /users/{uid}/maintenance-catalog.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/users/USER_ID/maintenance-catalog'
# 200
[{"id":"cleanSkimmers","name":"Empty Skimmer Basket(s)","category":"emptySkimmers","group":"Weekly","custom":false,"duration":345600},{"id":"sweepPool","name":"Brush Walls","category":"sweepWalls","group":"Weekly","custom":false,"duration":1814400},{"id":"oasis-walls","name":"Brush the oasis walls","category":"custom","group":"Weekly","custom":true,"duration":604800}]
Organization endpoints
These routes require an organization owner, an admin, or an active technician, within the limits in Roles. The organization owner can send X-Pooli-Act-As on these routes. See Act as.
Technician management
Listing is available to an owner, an admin, or an active technician. If the status query is present, only pending technicians are returned and the value is ignored. Setting status is owner or admin. Write values are active, inactive, or rejected.
GET /v1/organizations/{orgId}/technicians
Access: Owner, admin, or active technician
Idempotency-Key: Not required
Lists technicians. If status is present, only pending technicians are returned and the value is ignored.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/technicians'
# 200
[{"id":"TECH_ID","status":"active"}]
POST /v1/organizations/{orgId}/technicians/{techId}/status
Access: Owner or admin
Idempotency-Key: Not required
Set a technician status.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"active"}' \
'https://api.pooli.app/v1/organizations/ORG_ID/technicians/TECH_ID/status'
# 200
{"success":true}
Pool management
List and get are available to an owner, an admin, or an active technician. Create, update, and delete are owner or admin. Create requires Idempotency-Key and returns HTTP 200. The assigned query is compared to isAssigned as a string.
GET /v1/organizations/{orgId}/pools
Access: Owner, admin, or active technician
Idempotency-Key: Not required
List organization pools.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/pools'
# 200
[{"id":"POOL_ID","name":"Main pool"}]
POST /v1/organizations/{orgId}/pools
Access: Owner or admin
Idempotency-Key: Required
Create an organization pool.
Body is { "pool": { ... } }. name and gallonEstimate are required. Optional fields are poolType (vinyl, plaster or fiberglass, default plaster), filterCategory (de, sand or cartridge), sanitizingChemical (default chlorine), isIndoor and supplimentalSanitizers. isIndoor is a boolean and defaults to false. Sending isIndoor: true is accepted. New pools do not get a built-in target table copied onto them. A test log falls back to your saved default targets, then the built-in table for the pool type.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: create-001" \
-H "Content-Type: application/json" \
-d '{"pool":{"name":"Main pool","gallonEstimate":20000}}' \
'https://api.pooli.app/v1/organizations/ORG_ID/pools'
# 200
{"id":"POOL_ID","name":"Main pool"}
GET /v1/organizations/{orgId}/pools/{poolId}
Access: Owner, admin, or active technician
Idempotency-Key: Not required
Get one organization pool.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/pools/POOL_ID'
# 200
{"id":"POOL_ID","name":"Main pool"}
PATCH /v1/organizations/{orgId}/pools/{poolId}
Access: Owner or admin
Idempotency-Key: Not required
Update an organization pool.
Example
curl -X PATCH \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Main pool"}' \
'https://api.pooli.app/v1/organizations/ORG_ID/pools/POOL_ID'
# 200
{"id":"POOL_ID","name":"Main pool"}
DELETE /v1/organizations/{orgId}/pools/{poolId}
Access: Owner or admin
Idempotency-Key: Not required
Soft-delete an organization pool.
Example
curl -X DELETE \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/pools/POOL_ID'
# 200
{"success":true}
Log management
List and get are available to an owner, an admin, or an active technician. Create, update, and delete are too. Create requires the type query. For type=maintenance, load task ids from GET /v1/organizations/{orgId}/maintenance-catalog and copy id, name, category, and duration into each maintenances item.
Implemented types include swim. The swim body matches the user route: numSwimmers, duration in seconds, and an optional note. The stored userId is the key user.
GET /v1/organizations/{orgId}/pools/{poolId}/logs
Access: Owner, admin, or active technician
Idempotency-Key: Not required
List logs for an organization pool.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/pools/POOL_ID/logs'
# 200
[{"id":"LOG_ID","type":"test"}]
POST /v1/organizations/{orgId}/pools/{poolId}/logs
Access: Owner, admin, or active technician
Idempotency-Key: Not required
Create an organization pool log.
Creating type=test runs the same analysis as saving a water test in the app. The server stores relatedProblems, recommendations, csi and targets on the log. It works the same way as the user route. The 201 response data is still only the log id, so read the log to see the results. A client-sent relatedProblems or recommendations value is replaced. A client-sent targets object is used as sent.
Readings. Send readings in chemicalReading. Four keys are new: mg, kh, nitrites and nitrates. Each is a number or null, like the other reading keys.
What is stored.
relatedProblems: the problems found, in the same form the app saves. A test problem haswaterTestType,testVal,lowRange,highRange,problemType,problemClassanddoseToCenter. Chlorine problems also haveadjustedForCYAandcyaValUsedForAdjustmentwhen the CYA-adjusted band was used. A combined problem is also possible.recommendations: one entry per problem, in the order the app shows them. Each entry hasproblemTypeanditems. An item hasproduct(name,productType,percent,custom, or null when no product fits),amount,unit(fluidOunces,ounces,pounds,gallonsand so on) andwaits. A wait hasuntil(nextTreatment,retestorswim),minutes(or null) and, for some waits, aconditionandtestType. A combined problem has one item per fix, andoptionProblemTypenames the problem each item fixes.csi:valueis the Langelier saturation index, or null when it cannot be worked out.confidenceishigh,mediumorlow, and it drops when hardness or temperature had to be estimated.targets: the target ranges the analysis used, in the app's targets shape.
How the analysis works. Free and total chlorine use the CYA-adjusted band when adjust for CYA is on. That setting is on by default when CYA is a visible test and the pool has not turned it off. Saved FC and TC minimums do not replace that band. Alkalinity problems store adjusted alkalinity, the app default. A derived calcium or total hardness pair is ignored, and a total hardness reading alone can drive CSI. Retest minutes scale with pool size, pool type, how far the dose moves the reading, and how close the reading is to the edge of its range. Products come from the current product catalog, your custom products, your saved default product for each type, and the products hidden on the pool. Targets come from the pool, then your saved default targets, then the built-in table for the pool type. Earlier tests on the pool inside the app lookback window fill in readings this test left out (CSI and CYA).
Known limits.
- The API always uses US units (gallons, fluid ounces, ounces, pounds). The metric display settings in the app do not change it.
- The API does not use inventory links or the product choice made in the phone's product picker.
- Changing
chemicalReadinglater with PATCH does not rerun the analysis. Create a new test to get new results. - Default targets saved at the organization level are not applied.
- For a back-dated test, CSI history is measured from the test's own time.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"chemicalReading":{"ph":7.2}}' \
'https://api.pooli.app/v1/organizations/ORG_ID/pools/POOL_ID/logs?type=test'
# 201
{"success":true,"message":"created","data":"LOG_ID"}
Example: swim
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"numSwimmers":2,"duration":1800,"note":"Morning laps","creatorName":"Alex"}' \
'https://api.pooli.app/v1/organizations/ORG_ID/pools/POOL_ID/logs?type=swim'
# 201
{"success":true,"message":"Log created successfully","data":"6f1c0c2e-4b7a-4e1d-9c3a-8b2d5e7f1a90"}
Photos on a note. POST /v1/organizations/{orgId}/pools/{poolId}/logs?type=note accepts a JSON photos array. Do not use multipart. Each item is a base64 string, or an object { "data": "<base64 or data URL>", "filename": "skimmer.jpg", "contentType": "<ignored>" }. contentType is ignored. The server sniffs the image type from the bytes. Allowed types are JPEG, PNG, GIF, and WebP. PDF, HEIC, HEIF, and AVIF are rejected. Create with photos requires note (string). Do not send attachments and photos together. An empty photos array is ignored. The unversioned /organizations/{orgId}/... alias accepts the same body.
Caps are 1.5 MB (1,500,000 decoded bytes) per photo, 4 photos per request, and 12 photos per note. The JSON body limit is 10 MB. A create with photos counts as one request for rate limiting (10 per hour, or 150 per hour for active Pool Club subscribers). See Rate Limiting and Quotas. The 201 body is unchanged: data is the new log id.
GET returns stored attachments. Each photo has this shape:
{
"attachmentType": "photo",
"firestorePath": "users/{uploaderUid}/{sha256}{ext}",
"description": "<filename or sha256+ext>",
"url": "<Firebase Storage download URL>"
}
Errors are JSON { "error", "message", "status" }. 400 Validation Error: unsupported type, bad base64, too many photos, photos on a non-note, or photos together with attachments. 413 File Too Large: a decoded photo is over 1,500,000 bytes. The wrong user or organization returns 403. A missing pool returns 404.
Example: note with photos
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"note":"Skimmer basket is full","creatorName":"Alex","photos":[{"filename":"skimmer.jpg","data":"<base64 JPEG, PNG, GIF, or WebP>"}]}' \
'https://api.pooli.app/v1/organizations/ORG_ID/pools/POOL_ID/logs?type=note'
# 201
{"success":true,"message":"Log created successfully","data":"LOG_ID"}
GET /v1/organizations/{orgId}/pools/{poolId}/logs/{logId}
Access: Owner, admin, or active technician
Idempotency-Key: Not required
Get one organization pool log.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/pools/POOL_ID/logs/LOG_ID'
# 200
{"id":"LOG_ID","type":"test"}
PATCH /v1/organizations/{orgId}/pools/{poolId}/logs/{logId}
Access: Owner, admin, or active technician
Idempotency-Key: Not required
Update an organization pool log.
Photos on a note. When the stored log type is note, this PATCH accepts the same JSON photos array as note create. PATCH appends photos. It does not replace photos already on the note. Omit photos for a text-only update. Do not use multipart. Each item is a base64 string, or an object { "data": "<base64 or data URL>", "filename": "skimmer.jpg", "contentType": "<ignored>" }. contentType is ignored. The server sniffs the image type from the bytes. Allowed types are JPEG, PNG, GIF, and WebP. PDF, HEIC, HEIF, and AVIF are rejected. Do not send attachments and photos together. An empty photos array is ignored.
Caps are 1.5 MB (1,500,000 decoded bytes) per photo, 4 photos per request, and 12 photos per note. The JSON body limit is 10 MB. A patch with photos counts as one request for rate limiting (10 per hour, or 150 per hour for active Pool Club subscribers). See Rate Limiting and Quotas.
GET and this PATCH return stored attachments. Each photo has this shape:
{
"attachmentType": "photo",
"firestorePath": "users/{uploaderUid}/{sha256}{ext}",
"description": "<filename or sha256+ext>",
"url": "<Firebase Storage download URL>"
}
Errors are JSON { "error", "message", "status" }. 400 Validation Error: unsupported type, bad base64, too many photos, photos on a non-note, or photos together with attachments. 413 File Too Large: a decoded photo is over 1,500,000 bytes. The wrong user or organization returns 403. A missing note or pool returns 404.
Example
curl -X PATCH \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"note":"Brushed walls"}' \
'https://api.pooli.app/v1/organizations/ORG_ID/pools/POOL_ID/logs/LOG_ID'
# 200
{"id":"LOG_ID","type":"test"}
Example: append a photo
curl -X PATCH \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"photos":[{"filename":"skimmer.jpg","data":"<base64 JPEG, PNG, GIF, or WebP>"}]}' \
'https://api.pooli.app/v1/organizations/ORG_ID/pools/POOL_ID/logs/LOG_ID'
# 200
{"id":"LOG_ID","type":"note","attachments":[{"attachmentType":"photo","firestorePath":"users/USER_ID/<sha256>.jpg","description":"skimmer.jpg","url":"<Firebase Storage download URL>"}]}
DELETE /v1/organizations/{orgId}/pools/{poolId}/logs/{logId}
Access: Owner, admin, or active technician
Idempotency-Key: Not required
Delete an organization pool log. Deleting a note removes the log document. Storage objects for its photos are left in place, the same as the app.
Example
curl -X DELETE \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/pools/POOL_ID/logs/LOG_ID'
# 200
{"success":true,"message":"ok"}
Maintenance catalog
Owner, admin, or active technician. Same catalog. Built-in defaults shorter than 7 days are raised to 7 days (matches the pro app). Custom tasks come from the effective user's users/{uid}.prefs.customMaintenance (API key user, or the X-Pooli-Act-As user when the owner acts as someone else). There is no organization collection.
GET /v1/organizations/{orgId}/maintenance-catalog
Access: Owner, admin, or active technician
Idempotency-Key: Not required
List the maintenance catalog. Supports limit, cursor, startAfter, and envelope=1. Legacy alias GET /organizations/{orgId}/maintenance-catalog.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/maintenance-catalog'
# 200
[{"id":"cleanSkimmers","name":"Empty Skimmer Basket(s)","category":"emptySkimmers","group":"Weekly","custom":false,"duration":604800},{"id":"sweepPool","name":"Brush Walls","category":"sweepWalls","group":"Weekly","custom":false,"duration":1814400},{"id":"oasis-filter","name":"Clean the filter at the oasis","category":"custom","group":"Monthly","custom":true,"duration":2592000}]
Customers
List and get are read only. An active technician receives service fields (name, phone, email, address, notes, and pools). Billing fields are omitted for an active technician. Create and CSV import are owner or admin. Create requires Idempotency-Key and rejects billing fields and payment methods.
GET /v1/organizations/{orgId}/customers
Access: Owner, admin, or active technician
Idempotency-Key: Not required
List organization customers. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/customers'
# 200
[{"id":"RECORD_ID","name":"Sample"}]
POST /v1/organizations/{orgId}/customers
Access: Owner or admin
Idempotency-Key: Required
Create an organization customer.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: create-001" \
-H "Content-Type: application/json" \
-d '{"name":"Sample Customer"}' \
'https://api.pooli.app/v1/organizations/ORG_ID/customers'
# 201
{"id":"RECORD_ID","name":"Sample"}
GET /v1/organizations/{orgId}/customers/{customerId}
Access: Owner, admin, or active technician
Idempotency-Key: Not required
Get one organization customer. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/customers/CUSTOMER_ID'
# 200
{"id":"RECORD_ID","name":"Sample"}
POST /v1/organizations/{orgId}/import/csv
Access: Owner or admin
Idempotency-Key: Not required
Import customers and pools from CSV.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"csvText":"name,pool_name\nSample Customer,Main pool"}' \
'https://api.pooli.app/v1/organizations/ORG_ID/import/csv'
# 200
{"jobId":"JOB_ID","counts":{"created":1}}
Routes
Read only. A route is the active stops for one technician on one local calendar date, derived from stops. Dates use the organization time zone, or UTC when the organization has no usable zone.
GET /v1/organizations/{orgId}/routes
Access: Owner, admin, or active technician
Idempotency-Key: Not required
List routes. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/routes?date=2026-10-19'
# 200
[{"id":"2026-10-19:USER_ID","organizationId":"ORG_ID","date":"2026-10-19","stopIds":["STOP_ID"],"timeZoneSource":"utc-fallback"}]
GET /v1/organizations/{orgId}/routes/{routeId}
Access: Owner, admin, or active technician
Idempotency-Key: Not required
Get one route. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/routes/2026-10-19:USER_ID'
# 200
{"id":"2026-10-19:USER_ID","organizationId":"ORG_ID","date":"2026-10-19","stopIds":["STOP_ID"],"timeZoneSource":"utc-fallback"}
Stops
List and get are read only. Create is available to an owner, an admin, or an active technician and requires Idempotency-Key. poolId and scheduledDateTime are required.
GET /v1/organizations/{orgId}/stops
Access: Owner, admin, or active technician
Idempotency-Key: Not required
List route stops. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/stops'
# 200
[{"id":"RECORD_ID","name":"Sample"}]
POST /v1/organizations/{orgId}/stops
Access: Owner, admin, or active technician
Idempotency-Key: Required
Create a route stop.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: create-001" \
-H "Content-Type: application/json" \
-d '{"poolId":"POOL_ID","scheduledDateTime":"2026-10-19T15:00:00.000Z"}' \
'https://api.pooli.app/v1/organizations/ORG_ID/stops'
# 201
{"id":"RECORD_ID","name":"Sample"}
GET /v1/organizations/{orgId}/stops/{stopId}
Access: Owner, admin, or active technician
Idempotency-Key: Not required
Get one route stop. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/stops/STOP_ID'
# 200
{"id":"RECORD_ID","name":"Sample"}
Billing
Read only. Invoices, payments, estimates, and service subscriptions are read only. There are no invoice, payment, refund, or Stripe writes.
Invoices
Read only. Owner or admin. An active technician receives 403.
GET /v1/organizations/{orgId}/invoices
Access: Owner or admin
Idempotency-Key: Not required
List invoices. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/invoices'
# 200
[{"id":"RECORD_ID","name":"Sample"}]
GET /v1/organizations/{orgId}/invoices/{invoiceId}
Access: Owner or admin
Idempotency-Key: Not required
Get one invoice. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/invoices/INVOICE_ID'
# 200
{"id":"RECORD_ID","name":"Sample"}
Payments
Read only. Owner or admin. An active technician receives 403. The payment id is parentType~parentId~paymentId.
GET /v1/organizations/{orgId}/payments
Access: Owner or admin
Idempotency-Key: Not required
List payments. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/payments?invoiceId=INVOICE_ID'
# 200
[{"id":"invoice~INVOICE_ID~PAY_ID","amount":120}]
GET /v1/organizations/{orgId}/payments/{paymentId}
Access: Owner or admin
Idempotency-Key: Not required
Get one payment. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/payments/invoice~INVOICE_ID~PAY_ID'
# 200
{"id":"invoice~INVOICE_ID~PAY_ID","amount":120}
Estimates
Read only. Owner or admin. An active technician receives 403.
Read only. Invoices, payments, estimates, and service subscriptions are read only. There are no invoice, payment, refund, or Stripe writes.
GET /v1/organizations/{orgId}/estimates
Access: Owner or admin
Idempotency-Key: Not required
List estimates. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/estimates'
# 200
[{"id":"RECORD_ID","name":"Sample"}]
GET /v1/organizations/{orgId}/estimates/{estimateId}
Access: Owner or admin
Idempotency-Key: Not required
Get one estimate. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/estimates/ESTIMATE_ID'
# 200
{"id":"RECORD_ID","name":"Sample"}
Service subscriptions
Read only. Owner or admin. An active technician receives 403. These are organization service billing subscriptions, not Pool Club subscriptions.
Read only. Invoices, payments, estimates, and service subscriptions are read only. There are no invoice, payment, refund, or Stripe writes.
GET /v1/organizations/{orgId}/subscriptions
Access: Owner or admin
Idempotency-Key: Not required
List service subscriptions. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/subscriptions'
# 200
[{"id":"RECORD_ID","name":"Sample"}]
GET /v1/organizations/{orgId}/subscriptions/{subscriptionId}
Access: Owner or admin
Idempotency-Key: Not required
Get one service subscription. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/subscriptions/SUBSCRIPTION_ID'
# 200
{"id":"RECORD_ID","name":"Sample"}
Products
Read only product catalog for an owner, an admin, or an active technician.
GET /v1/organizations/{orgId}/products
Access: Owner, admin, or active technician
Idempotency-Key: Not required
List the organization product catalog. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/products'
# 200
[{"id":"RECORD_ID","name":"Sample"}]
GET /v1/organizations/{orgId}/products/{productId}
Access: Owner, admin, or active technician
Idempotency-Key: Not required
Get one catalog product. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/products/PRODUCT_ID'
# 200
{"id":"RECORD_ID","name":"Sample"}
Equipment
Read only installed equipment for an owner, an admin, or an active technician.
GET /v1/organizations/{orgId}/equipment
Access: Owner, admin, or active technician
Idempotency-Key: Not required
List installed equipment. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/equipment'
# 200
[{"id":"RECORD_ID","name":"Sample"}]
GET /v1/organizations/{orgId}/equipment/{equipmentId}
Access: Owner, admin, or active technician
Idempotency-Key: Not required
Get one installed equipment item. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/equipment/EQUIPMENT_ID'
# 200
{"id":"RECORD_ID","name":"Sample"}
Service visits
Read only. Customer signatures are omitted. Available to an owner, an admin, or an active technician.
GET /v1/organizations/{orgId}/service-visits
Access: Owner, admin, or active technician
Idempotency-Key: Not required
List service visits. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/service-visits'
# 200
[{"id":"RECORD_ID","name":"Sample"}]
GET /v1/organizations/{orgId}/service-visits/{visitId}
Access: Owner, admin, or active technician
Idempotency-Key: Not required
Get one service visit. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/service-visits/VISIT_ID'
# 200
{"id":"RECORD_ID","name":"Sample"}
Service reports
Read only projection of service visits that are completed, sending a report, or already have report fields.
GET /v1/organizations/{orgId}/service-reports
Access: Owner, admin, or active technician
Idempotency-Key: Not required
List service reports. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/service-reports'
# 200
[{"id":"VISIT_ID","poolId":"POOL_ID","visitId":"VISIT_ID"}]
GET /v1/organizations/{orgId}/service-reports/{visitId}
Access: Owner, admin, or active technician
Idempotency-Key: Not required
Get one service report. Read only.
Example
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/organizations/ORG_ID/service-reports/VISIT_ID'
# 200
{"id":"VISIT_ID","poolId":"POOL_ID","visitId":"VISIT_ID"}
Other routes
Content ingest is not organization scoped. Token and key routes are listed here in canonical form. The notes under Authentication stay the guide for tokens, rotation, act-as, and roles.
Content ingest
Service route for the key user. If the key has a non-empty scopes array, it must include content_management. Keys with no scopes array are allowed. Act-as is rejected.
POST /v1/content-ingest
Access: Key user only. If scopes is non-empty, it must include content_management.
Idempotency-Key: Not required
Create a content ingest item.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}' \
'https://api.pooli.app/v1/content-ingest'
# 201
{"id":"ITEM_ID"}
PATCH /v1/content-ingest/{id}
Access: Key user only. If scopes is non-empty, it must include content_management.
Idempotency-Key: Not required
Patch a content ingest item.
Example
curl -X PATCH \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}' \
'https://api.pooli.app/v1/content-ingest/ITEM_ID'
# 200
{"id":"ITEM_ID"}
Token and key routes
Canonical paths for the access token and API key routes described under Authentication. Idempotency-Key is not used on these routes. GET /v1/me is documented under Current user.
POST /v1/auth/token
Access: Key user only
Idempotency-Key: Not required
Exchange a long-lived API key for a short-lived access token.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"expiresInSeconds":900}' \
'https://api.pooli.app/v1/auth/token'
# 201
{"accessToken":"ACCESS_TOKEN","tokenType":"Bearer","expiresAt":"2026-10-19T15:00:00.000Z","expiresInSeconds":900}
POST /v1/auth/token/refresh
Access: Key user only
Idempotency-Key: Not required
Refresh a short-lived access token.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"expiresInSeconds":900}' \
'https://api.pooli.app/v1/auth/token/refresh'
# 201
{"accessToken":"ACCESS_TOKEN","tokenType":"Bearer","expiresAt":"2026-10-19T15:00:00.000Z","expiresInSeconds":900}
POST /v1/auth/keys/regenerate
Access: Key user only
Idempotency-Key: Not required
Revoke short-lived tokens for this API key.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/auth/keys/regenerate'
# 200
{"generation":1,"tokensRevoked":1,"keyRotated":false}
POST /v1/auth/keys/rotate
Access: Key user only
Idempotency-Key: Not required
Issue a new API key and start the grace period on this key.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"gracePeriodDays":7}' \
'https://api.pooli.app/v1/auth/keys/rotate'
# 200
{"apiKey":"NEW_API_KEY","previousKeyId":"PREVIOUS_KEY_ID","gracePeriodDays":7,"graceEndsAt":"2026-10-19T15:00:00.000Z","status":"rotating"}
POST /v1/auth/keys/revoke
Access: Key user only
Idempotency-Key: Not required
Revoke an API key before its grace period ends.
Example
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
'https://api.pooli.app/v1/auth/keys/revoke'
# 200
{"apiKeyId":"API_KEY_ID","status":"revoked"}
Spec and docs
Public files. No API key is required.
GET /docs
Access: Public
Idempotency-Key: Not required
API documentation page.
Example
curl -X GET \
'https://api.pooli.app/docs'
# 200
# HTML documentation page
GET /openapi.json
Access: Public
Idempotency-Key: Not required
OpenAPI document.
Example
curl -X GET \
'https://api.pooli.app/openapi.json'
# 200
# OpenAPI JSON document
GET /v1/docs
Access: Public
Idempotency-Key: Not required
API documentation page (versioned alias).
Example
curl -X GET \
'https://api.pooli.app/v1/docs'
# 200
# HTML documentation page
GET /v1/openapi.json
Access: Public
Idempotency-Key: Not required
OpenAPI document (versioned alias).
Example
curl -X GET \
'https://api.pooli.app/v1/openapi.json'
# 200
# OpenAPI JSON document
Customers & Pools CSV Import
Bulk import customers and pools for an organization. Each row typically represents one pool; customer columns may repeat.
The REST route is POST /v1/organizations/{orgId}/import/csv. Access is organization owner or admin. Send JSON with csvText, or a raw CSV body. See Customers for the endpoint card.
Access: Organization owner or admin.
- Upload in the app (Customers/Pools screen → Import menu)
- Or upload on the web in your Organization dashboard ("Import Customers & Pools CSV")
- API: Firebase Callable
customers-importCsv(group prefix required)
Request payload:
{
organizationId: "ORG_ID",
csvText: "organizationId,customer_name,...\n...",
// Optional advanced mapping/defaults; see guide for details
mapping: { /* header alias overrides */ },
defaults: { /* e.g., organizationId if not in every row */ }
}
Example client call:
// Web / Firebase Functions client
const importFn = firebase.functions().httpsCallable('customers-importCsv');
await importFn({ organizationId: 'abc123', csvText });
See the CSV Import Guide for exact fields, header aliases, defaults, and full examples.
Products CSV Import
Bulk create and update organization products from a CSV. Designed for retailers to upload their catalog in one click.
- Available via app and web dashboard only (no public callable API)
- Web: use the Products section on the Organization dashboard ("Import Products CSV")
Required columns: organizationId and either product_id (for updates) or both name and category (for new products).
Optional columns: description, defaultPrice, isTaxable, type (oneTime|subscription), stripeProductId, stripePriceId, cost, msrp, notes, tags (comma/semicolon/pipe separated), useMsrpForMarkup, deliverable, activeInStore, photos (comma/semicolon/pipe separated URLs).
Example header + rows (showing advanced fields on second row):
organizationId,product_id,name,category,defaultPrice,isTaxable,type,deliverable,activeInStore,tags,cost,msrp,notes,useMsrpForMarkup,photos
abc123,,Chlorine Tabs,Chemicals,19.99,true,oneTime,true,true,chlorine;tabs,,,,,
abc123,P123,Monthly Service,Services,120.00,true,subscription,false,false,service;recurring,80.00,150.00,"Includes filter cleaning",true,https://example.com/img1.jpg|https://example.com/img2.jpg