Zendesk Endpoint

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 zendesk-laravel 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).

Last updated