Partner API, PSA connectors and MCP
Provision clients, push reports into your PSA, and pull evidence into your tools.
JSON over HTTPS with a bearer key, ConnectWise PSA and Autotask connectors, and an MCP server for AI assistants. Sandbox keys (sbx_…) work on demo clients and a built-in mock PSA. Partner keys (pk_…) work on your real clients once you sign the partner agreement.
Contents: Keys · Clients and reports · PSA connectors · Provisioning and usage · Errors · MCP
Keys and the partner agreement
| Method and path | What it does |
|---|---|
POST /partners/sandbox (form on /partners) | Opens a 30-day sandbox for a company email address and returns a sandbox key. |
GET /partners/agreement.txt | The current agreement text. Headers X-Agreement-Version and X-Agreement-SHA256 carry what you sign. |
POST /api/partner/v1/agreement (bearer: sandbox key) | Signs the agreement. Body: signer_name, signer_title, signer_email (same company domain as the sandbox), signature (the full name again), version, text_sha256, accept: "yes". Returns the partner key once, with a signed receipt. Or sign on the agreement page. |
GET /api/partner/v1/agreement | Your signed record: text hash, signer, time, and whether the receipt verifies. |
POST /api/partner/v1/keys/rotate | Issues a new partner key; the old one stops at once. |
GET /api/partner/v1/me | Who the key belongs to, active clients and the tier they reach. |
Clients and reports
| Method and path | Returns |
|---|---|
GET /api/partner/v1/clients | Your client organizations (your active tenants; demo clients for a sandbox): id, name, domain. |
GET /api/partner/v1/clients/{id}/report | Latest security report: sections, rows with pass/fail status, score, checked time. Refreshed when older than six days. |
GET /api/partner/v1/clients/{id}/insurance-pack | Cyber-insurance questionnaire pack: each question, the answer from scan evidence or "MSP to answer", and the evidence to attach. |
GET /api/partner/v1/clients/{id}/qbr | QBR summary: score, checks passed, the top items to fix. |
GET /api/insurance_pack?domain=example.com | Free, no key: a pack from a passive scan of any public domain. Ten per hour per address. |
GET /api/scan_domain?domain=example.com | Free, no key: the passive scan itself. |
PSA connectors: ConnectWise PSA and Autotask
Each connector maps PSA companies to your clients, attaches each week's security report and insurance pack (PDF, under your name) to the company, and opens a service ticket for every high- or critical-severity finding. Attachments are written once per client and ISO week; a ticket is opened once per finding and again only after that ticket closes and the finding is still there. Connected partners sync automatically every week; you can also sync on demand. {psa} is connectwise or autotask.
| Method and path | What it does |
|---|---|
PUT /api/partner/v1/psa/{psa} | Stores the connection, encrypted. ConnectWise: site (your cloud API host, such as api-na.myconnectwise.net), company_id, public_key, private_key, client_id, optional board. Autotask: zone (such as webservices5.autotask.net), username and secret of an API-only user, optional queue_id, status, priority. |
GET /api/partner/v1/psa/{psa}/companies?search= | Active companies in your PSA: id, name, website. |
POST /api/partner/v1/psa/{psa}/mappings/auto | Maps each unmapped client to the one company whose website matches its domain, or whose name matches exactly. Ambiguous matches are left to you. |
GET / PUT /api/partner/v1/psa/{psa}/mappings | Reads or sets {"mappings": {"client id": "company id"}}. A null value removes a mapping. |
POST /api/partner/v1/psa/{psa}/sync | Runs the sync now, for all clients or {"client_id": "..."}. Returns what was attached, which tickets opened and what was skipped. |
DELETE /api/partner/v1/psa/{psa} | Deletes the stored credentials and mappings. |
We only call your vendor's cloud API host: ConnectWise *.myconnectwise.net (REST 3.0, Basic auth as company+publicKey:privateKey plus your clientId header) and Autotask webservices*.autotask.net (REST V1.0 with ApiIntegrationCode, UserName and Secret headers). The Autotask connection opens for real tenants once Datto issues our API tracking identifier; until then it runs in the sandbox only. On-premises ConnectWise servers: email us.
KEY=sbx_... # a sandbox key runs everything below against the built-in mock PSA
curl -s -X POST -H "Authorization: Bearer $KEY" https://security.eliteaiempire.com/api/partner/v1/psa/connectwise/mappings/auto
curl -s -X POST -H "Authorization: Bearer $KEY" https://security.eliteaiempire.com/api/partner/v1/psa/connectwise/sync | jq '.results[] | {client_id, attached, tickets}'
Provisioning and usage (marketplace-style)
The shape distributors such as Pax8 use: create a tenant (one client organization) on an offer, change its seats, cancel it, and export usage by month. Seat changes are kept as an append-only log and usage is prorated by seat-days (UTC). Full spec: provisioning.md.
| Method and path | What it does |
|---|---|
POST /api/partner/v1/tenants | Body: name, domain, offer, seats (default 1), optional external_id (your or the marketplace's id). 201 with the tenant; 200 if the same external_id already exists with the same fields; 409 if it exists with different fields. An Idempotency-Key header makes retries safe. |
GET /api/partner/v1/tenants, GET /api/partner/v1/tenants/{id} | Active tenants (add ?include_cancelled=true for all), or one tenant. |
PATCH /api/partner/v1/tenants/{id} | Change seats, offer, name or domain. Seat and offer changes take effect at once for usage. |
DELETE /api/partner/v1/tenants/{id} | Cancels the tenant; usage stops at that moment. Repeating it is harmless. |
GET /api/partner/v1/usage?period=YYYY-MM&format=json|csv | One line per tenant and offer: seat-days, prorated quantity, unit price at the tier reached that month, amount. Not an invoice. |
Offers: reports (client organization), helpdesk (client organization), bundle (client organization), reports_endpoint (endpoint). Prices per unit and month are on the partner page; the tier for a month is set by the number of client tenants with any active day (10 or more Partner, 50 or more Premier, otherwise list price where one is published).
Errors and limits
Send the key as Authorization: Bearer <key>. Errors are JSON: {"error": {"code": "...", "message": "..."}}. 401 missing or expired key, 404 unknown client or tenant, 409 conflict, 422 invalid field, 429 over 1,200 requests per key per hour, 502 the PSA answered with an error, 503 a connection that is not open yet. Machine-readable schema: /openapi.json.
MCP server
Streamable HTTP at https://security.eliteaiempire.com/mcp. Tools: scan_domain (passive scan) and insurance_pack (questionnaire pack from a passive scan). Both are read-only and never send attack payloads. Server card: /.well-known/mcp.json.
{"mcpServers": {"empire-security": {"type": "http", "url": "https://security.eliteaiempire.com/mcp"}}}
Open a sandbox to get a key → · Sign the partner agreement → · partners@eliteagenticsolutions.com