# Gorgias — Pipedream Connect

> Gorgias is the ecommerce helpdesk that turns your customer service into a profit center.

- API slug: `gorgias_oauth` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Commerce
- Website: https://gorgias.com
- Managed OAuth scopes: `openid` · `email` · `profile` · `offline` · `write:all`
- This page (HTML): https://pipedream.com/apps/gorgias-oauth
- Tools: 23 actions · 6 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: gorgias_oauth`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "gorgias_oauth",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Add Ticket Tags:
const result = await mcp.callTool({
  name: "gorgias_oauth-add-ticket-tags",
  arguments: {
    ticketId: 10,
    tagIds: ["Tag IDs"],
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Gorgias endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.example.com/v1/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEvbWU?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "gorgias_oauth-add-ticket-tags",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    gorgias_oauth: { authProvisionId: "apn_xxxxxxx" },
    ticketId: 10,
    tagIds: ["Tag IDs"],
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (23)

### `gorgias_oauth-add-ticket-tags` — Add Ticket Tags (Write)

Add tags to a ticket. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/add-ticket-tags.md

### `gorgias_oauth-create-customer` — Create Customer (Write)

Create a new customer. See the docs

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/create-customer.md

### `gorgias_oauth-create-macro` — Create Macro (Write)

Create a macro. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/create-macro.md

### `gorgias_oauth-create-ticket` — Create Ticket (Write)

Create a new ticket. See the docs

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/create-ticket.md

### `gorgias_oauth-create-ticket-message` — Create Ticket Message (Write)

Create a message for a ticket in the Gorgias system. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/create-ticket-message.md

### `gorgias_oauth-delete-macro` — Delete Macro (Write)

Delete a macro. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/delete-macro.md

### `gorgias_oauth-get-macro` — Get Macro (Read-only)

Get a macro by ID. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/get-macro.md

### `gorgias_oauth-get-ticket` — Get Ticket (Read-only)

Get a ticket. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/get-ticket.md

### `gorgias_oauth-get-ticket-message` — Get Ticket Message (Read-only)

Get a specific message from a ticket. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/get-ticket-message.md

### `gorgias_oauth-list-macros` — List Macros (Read-only)

List all macros. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/list-macros.md

### `gorgias_oauth-list-messages` — List Messages (Read-only)

List all messages. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/list-messages.md

### `gorgias_oauth-list-ticket-field-values` — List Ticket Field Values (Read-only)

List field values for a ticket. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/list-ticket-field-values.md

### `gorgias_oauth-list-ticket-messages` — List Ticket Messages (Read-only)

List all messages for a specific ticket. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/list-ticket-messages.md

### `gorgias_oauth-list-ticket-tags` — List Ticket Tags (Read-only)

List tags for a ticket. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/list-ticket-tags.md

### `gorgias_oauth-list-tickets` — List Tickets (Read-only)

List all tickets. See the docs

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/list-tickets.md

### `gorgias_oauth-retrieve-customer` — Retrieve a Customer (Read-only)

Retrieve a customer. See the docs

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/retrieve-customer.md

### `gorgias_oauth-send-internal-note` — Send Internal Note (Write)

Post an internal note to a ticket on behalf of an agent. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/send-internal-note.md

### `gorgias_oauth-send-public-reply` — Send Public Reply (Write)

Post a customer-facing reply to a ticket on behalf of an agent. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/send-public-reply.md

### `gorgias_oauth-set-ticket-tags` — Set Ticket Tags (Write)

Set tags on a ticket. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/set-ticket-tags.md

### `gorgias_oauth-update-customer` — Update Customer (Write)

Update a customer. See the docs

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/update-customer.md

### `gorgias_oauth-update-macro` — Update Macro (Write)

Update a macro. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/update-macro.md

### `gorgias_oauth-update-ticket` — Update Ticket (Write)

Updates a predefined ticket in the Gorgias system. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/update-ticket.md

### `gorgias_oauth-update-ticket-field-values` — Update Ticket Field Values (Write)

Set custom field values on a ticket. The connected account's ticket custom fields are exposed as individual optional props. Each field is written on its own request, so re-running after a failure is safe. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/actions/update-ticket-field-values.md

## Triggers (6)

### `gorgias_oauth-macro-updated` — Macro Updated (Polling)

Emit new event when a macro is updated. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/triggers/macro-updated.md

### `gorgias_oauth-internal-note-created` — New Internal Note (Instant)

Emit new event when an internal note is created on a ticket. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/triggers/internal-note-created.md

### `gorgias_oauth-new-macro-created` — New Macro Created (Polling)

Emit new event when a macro is created. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/triggers/new-macro-created.md

### `gorgias_oauth-ticket-created` — New Ticket (Instant)

Emit new event when a ticket is created. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/triggers/ticket-created.md

### `gorgias_oauth-ticket-message-created` — New Ticket Message (Instant)

Emit new event when a ticket message is created. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/triggers/ticket-message-created.md

### `gorgias_oauth-ticket-updated` — New Updated Ticket (Instant)

Emit new event when a ticket is updated. See the documentation

Full schema: https://pipedream.com/apps/gorgias-oauth/triggers/ticket-updated.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
