Integrations · Square
A Guild agent can process Square payments, manage orders, and handle disputes on your team’s behalf. Guild stores the Square API key server-side so agent code never sees it, and credential policies let you restrict exactly which Square operations each agent can call.
Book a demo
See how teams govern agents that use Square.
Talk to sales
Get access to Guild, then connect Square to your first agent.
What the Square integration exposes
The integration provides tools that cover payments, refunds, and Terminal checkouts; catalog objects and inventory; orders, invoices, subscriptions, and gift cards; customers, loyalty accounts, team members, shifts, and dispute evidence. Tools are named with the square_ prefix. Use pick() to include only the tools your agent needs.How it works
1
Open credentials and connect
In Guild, go to Access & setup > Credentials, click Connect, and select square. Paste your Square-issued bearer token into the API Key field.
2
Import tools in your agent
Import SquareTools from the
guildai~square package and spread it into your agent’s tools object. Guild sends the key as a bearer token in the Authorization header on every call.3
Narrow tools with pick
Use pick() to include only the specific square_ tools your agent needs. See the tools reference at /sdk/tools for selecting specific tools.
Why Square access needs governing
Square tools can create payments, issue refunds, cancel subscriptions, delete customer profiles, and accept or submit dispute evidence. Guild stores the credential server-side and injects it only after the credential proxy checks your policies, so agents never handle the key directly. You can write ALLOW and DENY rules on the credential to restrict which square_ operations each agent or workspace may call, using wildcard patterns such as square_list_* for read-only access or an explicit DENY on square_create_payment for agents that should never charge cards. Credential scope controls go further: you can dedicate a credential to a single agent, restrict a workspace to its own credentials, or grant a member credential so the agent acts as one person rather than the whole organization. Audit records show every call the proxy handled. Without these controls, any agent with access to the credential could reach every operation the key permits.About the Square integration
Agents can process and manage payments, refunds, and Terminal checkouts through Square’s REST API. They can handle catalog objects, inventory, orders, invoices, subscriptions, and gift cards. Agents can also manage customers, loyalty accounts, team members, shifts, and dispute evidence. The integration isguildai~square.
Authentication
- Type: API key
- Header: Guild sends the key as a bearer token in the
Authorizationheader
Setup
1
Connect Square
In Guild, go to Access & setup > Credentials, click Connect, select square, and paste the key into API Key.
Usage
Selecting specific tools
Tools are named with thesquare_ prefix. Use pick() to include only what your agent needs.
Tools
Tools in the latest published version ofguildai~square:
All 200 tools
All 200 tools
Frequently asked questions
Can I limit an agent to only reading Square data, not writing it?
Can I limit an agent to only reading Square data, not writing it?
Yes. Write a credential policy with a DENY rule targeting mutating operations, or use wildcard patterns like square_list_* and square_get_* in an ALLOW rule. Guild’s credential proxy enforces the rules before any request reaches Square. See /platform/credential-policies for syntax.
Where do I store my Square API key?
Where do I store my Square API key?
Connect it in Access & setup > Credentials. Guild stores the key and adds it as a bearer token in the Authorization header on every request. Agent code never sees the key. See /platform/credentials for workspace, member, and agent-scoped options.
Can Guild agents receive Square webhook events?
Can Guild agents receive Square webhook events?
No. The catalog entry for
guildai~square lists no webhook events, so agents cannot trigger on Square events through Guild’s event system.Can I give different Square credentials to different agents in the same workspace?
Can I give different Square credentials to different agents in the same workspace?
Yes. Connect a dedicated credential from the installed agent’s detail page, or grant an existing credential to a specific agent. Guild resolves credentials in order: grants and dedicated credentials take priority over workspace and account defaults. See /platform/credentials for the full resolution order.
Put a governed agent on Square this week
Book a demo
See how teams govern agents that use Square.
Talk to sales
Get access to Guild, then connect Square to your first agent.