API Access: Host, Authentication, Credentials
The one fact that matters
DTC's HaloPSA instance is https://psa.dtctoday.com. Every API call, token request and portal integration uses that host.
| What | URL |
|---|---|
| Agent app | https://psa.dtctoday.com |
| REST API base | https://psa.dtctoday.com/api |
| OAuth token endpoint | https://psa.dtctoday.com/auth/token |
| OpenID discovery | https://psa.dtctoday.com/auth/.well-known/openid-configuration |
| OpenAPI spec | https://psa.dtctoday.com/api/swagger/v2/swagger.json (no login), Swagger UI at /api/swagger/index.html; see Swagger Spec |
| Version | Halo PSA 2.250.53, hosted group us7-STABLE4 (GET /api/InstanceInfo, 2026-10-22) |
| Rate limit | 700 requests per rolling 5 minutes for the whole instance, shared by every integration |
dtc.halopsa.com is not our instance. It resolves and serves a Halo login page, and its /auth/token answers every request with Halo's generic "Sorry, something went wrong" page, which looks like an outage rather than a wrong host. Corey's soft-audit register already lists the two hosts as a contradiction (OPS-17); the client-portal .env examples carried the wrong one until 2026-10-19.
Authentication (client credentials)
POST https://psa.dtctoday.com/auth/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials&client_id=<id>&client_secret=<secret>&scope=all
Response: access_token (bearer, 3600 s), token_type, expires_in, scope. A tenant parameter is accepted but not needed on this instance.
Quick check that the host and credentials are right:
curl -s https://psa.dtctoday.com/auth/token \
--data-urlencode grant_type=client_credentials \
--data-urlencode client_id="$HALO_CLIENT_ID" \
--data-urlencode client_secret="$HALO_CLIENT_SECRET" \
--data-urlencode scope=all | head -c 80
A JSON body starting {"access_token": means both are right. An HTML page means the host is wrong; invalid_client means the credential is.
API applications and credentials
API applications live in Halo under Configuration > Integrations > HaloPSA API. Client-credentials applications must log in as an Integrator Agent (SSO accounts do not work with the client-credentials flow; see the GUID Sync page).
All secrets are in 1Password, team account team-dtc.1password.com. Never in a repo, a .env committed to git, a KB page or a chat.
| Application | 1Password item | Used by |
|---|---|---|
| Client portal service | PROD HaloPSA DTC Client Portal Service | client-portal api (prod) and workstation sessions acting for the portal |
| n8n (retired) | PROD N8N HaloPSA API Credentials | Nothing: n8n was retired on November 2, 2026. Revoking this application and its credential is pending under Halo 1201150; the row comes off once it's revoked. |
| FSDM | FSDM HaloPSA API Key | Financial Data Sync Manager |
| NinjaRMM GUID sync | Halo/NinjaRMM API - GUID Sync Secret | the weekly GUID sync script |
| Dev script key | HaloPSA API Key - Dev - API Script Run | one-off bulk updates |
Client id is the item's username; the secret is credential (or password on the dev key).
Where the host is configured
| System | Setting |
|---|---|
| client-portal on AKS | HALO_BASE_URL and HALO_AUTH_BASE_URL in dtc-infra/apps/client-portal/base/deployment-api.yaml |
client-portal .env examples |
.env.dev.example, .env.prod.example (corrected 2026-10-19) |
| Apis (AI) profile | its CLAUDE.md, Scope section |
| StackJack MCP connector | Removed 2026-11-02 (Nate: "it wasn't helpful but a waste of money"). Halo is reached only through the REST API above, via the halopsa-api skill. |
First live run (2026-10-22)
Apis checked the API read-only with the client portal service application while building the halopsa-api AI skill. What the instance actually does, where the spec is silent or our notes were wrong:
| Finding | Detail |
|---|---|
| Scopes granted | The client portal service token comes back with read: and edit: scopes for tickets, customers, invoices, quotes, projects, items, sales and sales orders, plus read:reporting and all. It is a write credential. |
| Lists stop at 50 without paging | Without pageinate=true a list returns 50 rows and record_count 50, not the total. With pageinate=true&page_size=&page_no= (1-based) record_count is the real total. The list key depends on the route (tickets, clients, users, sites, assets, actions, invoices, quotes, contracts); /Projects answers tickets. |
| No PUT or PATCH | The spec has 821 GET, 422 POST and 264 DELETE operations. Updates are a POST of the record with its id; bodies are arrays. |
| Priorities | GET /Priority returns a GUID id and an integer priorityid; tickets take the integer. P1–P4 = 1–4 (SLA 3), "Not In Use" = 99 (SLA 4). |
| Statuses, outcomes, types | Closed is status 9; "Private Note" is outcome 7 and "Note" 52; Security Alert is ticket type 42 and Incident 1. On GET /Tickets the type filter is requesttype=. |
| Action ids are per ticket | GET /Actions?ticket_id= numbers a ticket's actions 1, 2, 3 …; an action is identified by ticket id plus action id. |
Agents and teams need showall=true |
Without it the API application sees only its own agent (1) and no teams; with it, 39 agents and 21 teams. |
| User emails are in the list | emailaddress is on list records for users that have one; the key is absent for users without (many default and site users). The earlier belief that the list omits it came from those users. |
| Clients | 551 active, 1,033 with includeinactive=true; ninjarmmid only on GET /Client/{id}. |
| Times | Returned without an offset, in UTC. |
| 401 | A missing or bad token answers 401 with an empty body; no rate-limit headers are sent. |
Nothing was written.
Related
- HaloPSA REST API v2 — Swagger Spec — the spec and the generated endpoint maps, attached
- HaloPSA API Skill and HaloPSA Workflows Skill — AI Skills book, PSA (HaloPSA) chapter
- HaloPSA (Source of Truth) — where Halo sits in DTC's integrations
Updated November 10, 2026 (Halo 1201150): the n8n API application marked retired, with its revocation pending.