RedPlanetHQ / RedPlanetHQ/core
New Integration: Gorgias
Open
Nobody has claimed this yet.
enhancement
good first issue
integration
new-feature
new-integration
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 194
- Avg merge
- 12m
- Merged PRs (30d)
- 2
Description
Description
Add Gorgias integration to sync e-commerce helpdesk tickets, customers, and messages into CORE.
Reference Implementations
Existing Integrations (use as templates)
integrations/hubspot/- Similar customer support systemintegrations/slack/- Messaging integration referenceintegrations/linear/- Ticket tracking integration
Required Files Structure
integrations/gorgias/
├── src/
│ ├── index.ts # Main entry, OAuth spec
│ ├── schedule.ts # Sync logic
│ ├── utils.ts # Gorgias API utilities
│ ├── account-create.ts # API key setup
│ └── create-activity.ts # Activity formatting
├── package.json
├── tsup.config.ts
└── README.md
Gorgias API Integration
OAuth Setup
- Use HTTP Basic Authentication (username + password from API settings)
- Credentials available at:
https://{domain}.gorgias.com/app/settings/api - Base URL:
https://{domain}.gorgias.com/api/
Key Endpoints
GET /api/tickets- List all ticketsGET /api/tickets/{id}- Get a specific ticketGET /api/tickets/{id}/messages- Get ticket messagesGET /api/customers- List all customersGET /api/customers/{id}- Get a specific customerGET /api/users- List all support agentsGET /api/tags- List all tagsGET /api/events- List eventsPOST /api/tickets- Create a ticket
Events to Track
- Tickets - Created, updated, resolved, closed, reopened
- Messages - Customer messages, agent replies, internal notes
- Customers - New customers, customer updates
- Tags - Tags applied/removed from tickets
- Assignments - Ticket assignments to agents/teams
Implementation Tasks
- Set up basic integration structure following
integrations/github/src/index.tspattern - Implement HTTP Basic Auth flow in
account-create.ts - Create API utilities in
utils.tswith Gorgias REST API client - Implement sync logic in
schedule.tsfor tickets, customers, messages - Convert Gorgias events to CORE activity format
- Add error handling and rate limiting
- Create integration documentation
- Add to
integrations/README.md
Technical Notes
- RESTful API with JSON responses
- HTTP Basic Authentication using credentials from Settings > REST API
- Supports webhooks (HTTP integrations) for real-time event notifications
- Designed for e-commerce helpdesk use cases (deep Shopify, Magento, BigCommerce integrations)
- Pagination via
cursorparameter - Rate limits apply per account
- Only admin users can access API settings
Resources
- Gorgias REST API Documentation
- Gorgias Developers Portal
- Gorgias Help Center
- Gorgias API Postman Collection
- HTTP Integrations (Webhooks)
Labels
enhancement, integration, new-feature
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read integrations/hubspot/, integrations/slack/, integrations/linear/, and the integrations/github/src/index.ts pattern before designing the new integration. Implement the listed files under integrations/gorgias/ with authentication, API utilities, synchronization, activity conversion, error handling, and documentation, then add it to integrations/README.md.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100