Phoenix Documentation
Phoenix ProductionPhoenix PreviewContentful
Primary version
Primary version
  • 🔥Phoenix 🔥
  • Installation + Usage
    • Prerequisites
    • Installation
    • Usage
  • Development
    • Architecture
      • Heroku
    • Content Types
      • Action Stats Block
      • Campaign
      • Content Block
      • Cause Page
      • Company Page
      • Current Club Block
      • Current School Block
      • Embed
      • External Link
      • Landing Page
      • Link Action
      • Metadata
      • Page
      • Photo Submission Action
      • Selection Submission Action
      • Share Action
      • Signup Referrals Block
      • Social Drive Action
      • Voter Registration Action
      • Voter Registration Drive Action
      • Voter Registration Marketing Page
      • Voter Registration Referrals Block
    • Features
      • Affiliate Opt In
      • Affiliate Scholarship Block
      • Analytics Waypoint
      • Delayed Element
      • Dismissable Element
      • Stat Card
      • General Buttons
      • Groups
      • Paginated Campaign Gallery
      • Popover Dispatcher
      • Refer A Friend
      • Referrals Gallery
      • Sitewide Banner
      • Sixpack A/B Testing
        • Code Tests
        • Contentful Tests
        • Testing Tips
      • Tooltip
      • Traffic Distribution
      • Volunteer Credits
      • Voter Registration
      • Zendesk Form
    • Contentful
      • Workflow
      • Content Management API Scripts
    • Helpers
  • Phoenix API
    • v2
      • Campaigns Resource
      • Posts Resource
      • Zendesk Endpoint
  • Data + Performance
    • Monitoring
    • Analytics
    • Logging
  • Contributing Instructions
    • Edit This Documentation
    • Glossary
Powered by GitBook
On this page
  1. Phoenix API
  2. v2

Zendesk Endpoint

PreviousPosts ResourceNextMonitoring

Last updated 5 years ago

Create a Zendesk Ticket for an authenticated user.

POST https://www.dosomething.org/api/v2/zendesk-tickets

Fetches user data via northstar then creates or updates a Zendesk user using the account email address with Northstar ID and Rogue profile URL. Creates new Zendesk ticket for the user with the campaign title and question data. Assigns a group ID using the campaign's first Cause Name to match an existing Zendesk Group.

Path Parameters

Name
Type
Description

campaign_id

string

e.g.: '9001'

campaign_name

string

e.g.: 'Teens for Jeans'

question

string

e.g.: 'I\'m having trouble reporting back on this campaign.'

{
  "ticket": {
    "id": 1234,
    "subject": "My printer is on fire!"
    // ...
  }
}

This endpoint utilizes the package. To configure, make sure the following ENV variables are set in .env: ZENDESK_SUBDOMAIN, ZENDESK_USERNAME, ZENDESK_TOKEN.

To test this endpoint without cluttering our Zendesk space, set the question to 'causeyhippo' (which will trigger the ticket to be tagged and resolved as a test).

zendesk-laravel