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 3 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
- Sign in to the Phin Portal and switch to the partner level.
- Open the Partner Integrations page, then Phin API, and enable it.
- 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
- Open Connectors, then Phin Security.
- Enter your Partner ID (shown in the Phin Portal), the client ID and the client secret.
- 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_companiesorphin_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
Companies
Reports
Users
Was this helpful?
More in Connector guides
Connect 3CXConnect AbleSignConnect Acronis Cyber Protect CloudConnect Action1Still need help? Ask the team