Set up Gorgias in Metorial for Claude, ChatGPT and Cursor
Share Gorgias with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 33 tools (16 read-only).
To give your team Gorgias in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Gorgias integration in a Metorial portal, and each person signs in to Gorgias with their own account. Agents can manage support tickets, customer profiles, ticket tags, reusable macros, and automation rules in Gorgias. The integration has 33 tools, 16 read-only, 12 write and 5 destructive, plus 1 trigger.
What you'll learn
- How an admin shares Gorgias in a portal and how each person connects
- The 31 OAuth scopes Gorgias can request, and what each one allows
- How to keep the 16 read-only tools and reject the other 17
Before you start
- A portal with at least one access group
- An account with Gorgias for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| API Key (Basic Auth) | Custom credentials | subdomain, email and token |
| OAuth2 (default) | OAuth | Signs in to Gorgias after entering subdomain |
The portal and metorial setup use OAuth2 unless someone picks another method.
API Key (Basic Auth)
To connect, a person enters these values:
subdomain: Your Gorgias account subdomain (e.g., "mystore" for mystore.gorgias.com)email: Email address of the Gorgias usertoken: API key from Settings → REST API
OAuth2
Before the sign-in, setup asks for:
subdomain: Your Gorgias account subdomain (e.g., "mystore" for mystore.gorgias.com)
People sign in to Gorgias and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
openid | OpenID | OpenID Connect identity |
email | Access to email address | |
profile | Profile | Access to user profile |
offline | Offline Access | Refresh token for persistent access |
account:read | Account Read | Read account info and settings |
account:write | Account Write | Write account info and settings |
users:read | Users Read | Read helpdesk users, roles, and teams |
users:write | Users Write | Write helpdesk users, roles, and teams |
customers:read | Customers Read | Read customer data |
customers:write | Customers Write | Write customer data |
tickets:read | Tickets Read | Read tickets, messages, tags, and views |
tickets:write | Tickets Write | Write tickets, messages, tags, and views |
custom_fields:read | Custom Fields Read | Read custom field definitions and values |
custom_fields:write | Custom Fields Write | Write custom field definitions and values |
events:read | Events Read | Read tracked account change events |
events:write | Events Write | Write tracked account change events |
integrations:read | Integrations Read | Read HTTP and native integrations |
integrations:write | Integrations Write | Write HTTP and native integrations |
jobs:read | Jobs Read | Read bulk operations |
jobs:write | Jobs Write | Write bulk operations |
macros:read | Macros Read | Read macro templates |
macros:write | Macros Write | Write macro templates |
rules:read | Rules Read | Read automation rules |
rules:write | Rules Write | Write automation rules |
satisfaction_survey:read | Satisfaction Survey Read | Read satisfaction surveys |
satisfaction_survey:write | Satisfaction Survey Write | Write satisfaction surveys |
statistics:read | Statistics Read | Read support metrics |
tags:read | Tags Read | Read ticket tags |
tags:write | Tags Write | Write ticket tags |
apps:read | Apps Read | Read third-party app management |
apps:write | Apps Write | Write third-party app management |
Setup settings
Whichever method you pick, setup also asks for:
subdomain: Your Gorgias account subdomain (e.g., "mystore" for mystore.gorgias.com)
Use your own Gorgias OAuth app
With your own OAuth app, people see your company's name on the Gorgias consent screen, and the client ID and secret belong to you.
Start the credentials in Metorial
In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Gorgias and copy the Redirect URI.
Register the app with Gorgias
Create an OAuth app or client in Gorgias and add the redirect URI from Metorial as its redirect or callback URL.
Finish in Metorial
Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Gorgias integration.
Admin: share Gorgias in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Gorgias. Under Auth Method, keep OAuth2 or pick another. For how members connect, choose Each person connects, so everyone signs in to Gorgias as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Gorgias.
Choose who gets it
Add the access groups that should see Gorgias. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Gorgias integration. Once it exists, check which groups have it:
Employee: connect Gorgias
In the portal
Open Gorgias in the catalog
Sign in to your portal and open Gorgias. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Gorgias sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID. metorial setup uses OAuth2. To connect with API Key (Basic Auth) instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.
Add it to your AI client
metorial install adds your Gorgias connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 16 read-only tools, such as search and get_user, and lose the 12 write tools, such as create_tag or update_tag, and the 5 destructive tools, such as delete_tag or delete_rule.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 33 tools, minus any you rejected. get_account takes no input. It retrieves account-level information and settings for the Gorgias helpdesk, including domain, plan, and business configuration.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (16)
list_satisfaction_surveys: Retrieve a paginated list of customer satisfaction surveys (CSAT).get_user: Retrieve details of a specific helpdesk agent user. NeedsuserId.get_account: Retrieve account-level information and settings for the Gorgias helpdesk, including domain, plan, and business configuration.list_rules: Retrieve a paginated list of automation rules.list_tickets: Retrieve a paginated list of support tickets.search: Search across tickets, customers, and other resources using a unified search interface. Needsquery.list_tags: Retrieve all tags available in the helpdesk.list_macros: Retrieve a paginated list of macro templates.get_customer: Retrieve full details of a customer, including their contact channels, metadata, and associated data. NeedscustomerId.list_users: Retrieve a paginated list of helpdesk agent users.list_messages: Retrieve all messages for a given ticket, ordered by sending date. NeedsticketId.list_customers: Retrieve a paginated list of customers.get_ticket: Retrieve full details of a single support ticket, including messages, customer info, tags, assignee, and satisfaction survey data. NeedsticketId.get_current_user: Retrieve the authenticated helpdesk agent and verify the connected account identity.list_views: List ticket views and discover view IDs to filter list_tickets using saved queue filters.list_teams: List helpdesk teams and discover team IDs for assigning tickets.
Write tools (12)
create_ticket: Create a new support ticket with an initial message. NeedscustomerEmail.update_ticket: Update an existing support ticket. NeedsticketId.create_message: Add a new message to an existing ticket. NeedsticketIdandfromAgent.manage_ticket_tags: Add, remove, or replace tags on a ticket. NeedsticketId,actionandtagNames.create_customer: Create a new customer record in Gorgias with contact channels, name, and metadata.update_tag: Update an existing tag's name or color. NeedstagId.create_macro: Create a new macro template with a name and a set of actions that will be executed when the macro is applied. Needsname.update_customer: Update an existing customer's profile, contact channels, or metadata. NeedscustomerId.create_tag: Create a new tag for categorizing tickets. Needsname.create_rule: Create a new automation rule with events, conditions, and actions. Needsname.update_rule: Update an existing automation rule. NeedsruleId.update_macro: Update an existing macro's name or actions. NeedsmacroId.
Destructive tools (5)
delete_macro: Permanently delete a macro template. NeedsmacroId.delete_rule: Permanently delete an automation rule. NeedsruleId.delete_tag: Permanently delete a tag. NeedstagId.delete_ticket: Permanently delete a support ticket and all its messages. NeedsticketId.merge_customers: Merge multiple customer records into one. NeedsmainCustomerIdandsecondaryCustomerIds.
Triggers
Gorgias has 1 trigger, which fire on events in Gorgias:
ticket_events: Triggers when a ticket is created, updated, or when a new message is added to a ticket.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Gorgias there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Gorgias on metorial.com: the integration overview