MetorialDocs

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

Sign-in methods

MethodTypeWhat a person provides
API Key (Basic Auth)Custom credentialssubdomain, email and token
OAuth2 (default)OAuthSigns 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 user
  • token: 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:

ScopeNameWhat it allows
openidOpenIDOpenID Connect identity
emailEmailAccess to email address
profileProfileAccess to user profile
offlineOffline AccessRefresh token for persistent access
account:readAccount ReadRead account info and settings
account:writeAccount WriteWrite account info and settings
users:readUsers ReadRead helpdesk users, roles, and teams
users:writeUsers WriteWrite helpdesk users, roles, and teams
customers:readCustomers ReadRead customer data
customers:writeCustomers WriteWrite customer data
tickets:readTickets ReadRead tickets, messages, tags, and views
tickets:writeTickets WriteWrite tickets, messages, tags, and views
custom_fields:readCustom Fields ReadRead custom field definitions and values
custom_fields:writeCustom Fields WriteWrite custom field definitions and values
events:readEvents ReadRead tracked account change events
events:writeEvents WriteWrite tracked account change events
integrations:readIntegrations ReadRead HTTP and native integrations
integrations:writeIntegrations WriteWrite HTTP and native integrations
jobs:readJobs ReadRead bulk operations
jobs:writeJobs WriteWrite bulk operations
macros:readMacros ReadRead macro templates
macros:writeMacros WriteWrite macro templates
rules:readRules ReadRead automation rules
rules:writeRules WriteWrite automation rules
satisfaction_survey:readSatisfaction Survey ReadRead satisfaction surveys
satisfaction_survey:writeSatisfaction Survey WriteWrite satisfaction surveys
statistics:readStatistics ReadRead support metrics
tags:readTags ReadRead ticket tags
tags:writeTags WriteWrite ticket tags
apps:readApps ReadRead third-party app management
apps:writeApps WriteWrite 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:

metorial-admin portals access list <portal-id> --type provider_template --search gorgias

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

metorial catalog search gorgias
metorial setup <catalog-item-id>

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.

metorial list gorgias
metorial client list
metorial install <client-identifier> <integration-id>

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 list gorgias
metorial tools <integration-id>
metorial call <integration-id> get_account -d '{}'

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. Needs userId.
  • 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. Needs query.
  • 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. Needs customerId.
  • list_users: Retrieve a paginated list of helpdesk agent users.
  • list_messages: Retrieve all messages for a given ticket, ordered by sending date. Needs ticketId.
  • 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. Needs ticketId.
  • 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. Needs customerEmail.
  • update_ticket: Update an existing support ticket. Needs ticketId.
  • create_message: Add a new message to an existing ticket. Needs ticketId and fromAgent.
  • manage_ticket_tags: Add, remove, or replace tags on a ticket. Needs ticketId, action and tagNames.
  • 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. Needs tagId.
  • create_macro: Create a new macro template with a name and a set of actions that will be executed when the macro is applied. Needs name.
  • update_customer: Update an existing customer's profile, contact channels, or metadata. Needs customerId.
  • create_tag: Create a new tag for categorizing tickets. Needs name.
  • create_rule: Create a new automation rule with events, conditions, and actions. Needs name.
  • update_rule: Update an existing automation rule. Needs ruleId.
  • update_macro: Update an existing macro's name or actions. Needs macroId.

Destructive tools (5)

  • delete_macro: Permanently delete a macro template. Needs macroId.
  • delete_rule: Permanently delete an automation rule. Needs ruleId.
  • delete_tag: Permanently delete a tag. Needs tagId.
  • delete_ticket: Permanently delete a support ticket and all its messages. Needs ticketId.
  • merge_customers: Merge multiple customer records into one. Needs mainCustomerId and secondaryCustomerIds.

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