Skip to main content
Connector guides

Connect Phin Security

Phin Security runs security awareness training and phishing simulations for the companies an MSP manages. StackJack connects an AI assistant to Phin's partner API.

Written By Christopher Scaminaci

Last updated About 2 hours ago

Phin Security runs security awareness training and phishing simulations for the companies an MSP manages. StackJack connects an AI assistant to Phin's partner API.

Connecting Phin Security to StackJack gives your AI assistant a family of phin_ MCP tools. MCP (Model Context Protocol) tools are the standardized commands an AI assistant can call through StackJack. With them, your AI can:

  • See the partner account - test the API access, list your companies, and read your billable usage
  • Read a company - its details and usage, its active campaigns (phishing and training), and each user's results for the last 12 months
  • Read the users - the company's users, one user, and the fields an import supports
  • Download a report (on Pro plans) - one of the report files Phin generated, handed back as a temporary download link
  • Act (on Pro plans) - create a company, add a company admin, edit users one at a time or in bulk, import users, sleep users and delete users

How StackJack authenticates to Phin Security

Phin uses an API client: a client ID and a client secret. StackJack exchanges them at Phin's sign-in service for an access token that lasts a day, keeps the token until shortly before it expires, and asks for a new one when it needs to. The Partner ID is part of every Phin API address, so StackJack also needs it.

Turning on the Phin API

  1. Sign in to the Phin Portal and switch to the partner level.
  2. Open the Partner Integrations page, then Phin API, and enable it.
  3. Copy the client ID and the client secret before you leave the page. Phin shows the secret only once.

If you lose the secret, rotate it on the same page. Rotating stops the old secret at once, so paste the new one into StackJack right away.

Connect it in StackJack

  1. Open Connectors, then Phin Security.
  2. Enter your Partner ID (shown in the Phin Portal), the client ID and the client secret.
  3. Click Test connection. StackJack asks Phin for a new token and calls Phin's test route, which changes nothing.

Enter the client secret again whenever you save the connection, including when you only rename it.

What is worth knowing before you start

Start with the companies

phin_list_companies lists every company under your partner account with its company id, which every company tool takes. phin_test_access checks that the API client and the Partner ID work.

Changes that ask for approval

These tools are Pro and are marked destructive, so an agent asks for approval before it runs them:

  • Import users - up to 100 at a time. Imported users are enrolled, can count as billable users, and receive the company's phishing and training.
  • Sleep users - up to 100 at a time, by email. Slept users stop receiving phishing and training.
  • Delete users - users that a Google or Azure user sync manages are not deleted.
  • Edit a user, or edit users in bulk - changing an email address or a supervisor's email address changes where Phin sends the user's phishing and training and the supervisor's mail. Users synced from Azure or Google cannot be changed.
  • Add a company admin - this grants the person admin access to the company in the Phin Portal, and a new admin gets an email with a password setup link.

Creating a company is Pro but not marked destructive: it creates no user and no admin, and sends nothing.

Downloading a report

phin_list_reports lists the report files Phin generated for a company. phin_get_report downloads one: pass the file name and the year, month, day and type from the report's link. A file cannot ride an AI answer, so StackJack stores it and answers a link that works for 30 minutes, with the file's name, type and size. Reports are capped at 50 MB, and only PDF and CSV files are accepted.

Rate limit

Phin does not publish a rate limit yet. StackJack paces one connection at about one call a second, and backs off when Phin answers that there are too many requests.

When Phin refuses a call

  • The API client is refused: the client ID or secret is wrong, the secret was rotated, or the Phin API integration is turned off. Rotate the secret on the Phin API page and paste the new one.
  • A bad request (400): Phin answers 400 for a wrong Partner ID, a turned-off Phin API integration, a wrong company id, or a value it cannot take.
  • Not allowed (403): check the Partner ID and that the company belongs to it.
  • Not found (404): check the id with phin_list_companies or phin_list_users.
  • Too many requests (429): wait before you try again.
  • An outage (5xx): wait and try again.

Plans and limits

Every read is available on the Free tier, except downloading a report file, which is Pro. Every change is Pro. Business reaches the same tools as Pro and differs by monthly call quota.

See the generated Phin Security tool reference for the current inventory, plan assignment, input schemas and destructive-action labels.

Phin Security tools

phin_ · 19 tools · Free 11 · Pro 8

Partner

ToolWhat it does
phin_get_partner_usage
Free · Read-only
Reads the partner's usage: current billable users, last month's enrolled and billable users, the change from last month, and the billable month and year.
phin_list_companies
Free · Read-only
Lists every company under the partner, with its companyId (the id every company tool takes) and name.
phin_test_access
Free · Read-only
Checks that the API client and the Partner ID work: Phin answers a success message.

Companies

ToolWhat it does
phin_create_company
Pro · Write
Creates a company under the partner.
phin_create_company_admin
Pro · Destructive
DESTRUCTIVE.
phin_get_company
Free · Read-only
Reads one company: its name, partner, NFR and free-trial flags, active users, and whether it was deleted.
phin_get_company_historical_data
Free · Read-only
Reads the company's user data for the last 12 months: per user, phishes sent and clicked, the click percentage, trainings assigned and completed, and whether training is up to date.
phin_get_company_usage
Free · Read-only
Reads one company's usage: current billable users, last month's enrolled and billable users, the change from last month, and the billable month and year.
phin_list_active_campaigns
Free · Read-only
Lists the company's active campaigns, partner-level shared campaigns included (isSharedCampaign): name, type (phishing or training, continuous, fixed or onboarding), enrolled users, the next fire time, recurrence and end time.

Reports

ToolWhat it does
phin_get_report
Pro · Read-only
Downloads one report file (PDF or CSV).
phin_list_reports
Free · Read-only
Lists the report files Phin generated for a company: reportLink, reportType, scope, fileName and creationDate.

Users

ToolWhat it does
phin_bulk_update_users
Pro · Destructive
DESTRUCTIVE.
phin_delete_users
Pro · Destructive
DESTRUCTIVE.
phin_get_user
Free · Read-only
Reads one user by id.
phin_get_user_import_fields
Free · Read-only
Lists the user fields an import supports, with a description of each (the import route's documented GET).
phin_import_users
Pro · Destructive
DESTRUCTIVE.
phin_list_users
Free · Read-only
Lists the company's users: id, name, email, status (active or slept), department, supervisor, phones, whether they were welcomed, and how they were created.
phin_sleep_users
Pro · Destructive
DESTRUCTIVE.
phin_update_user
Pro · Destructive
DESTRUCTIVE.