# Send PostHog person data to Zendesk - Docs

You can also send person properties to User fields in Zendesk.

You'll also need access to the relevant Zendesk account.

## Installation

1.  In PostHog, click the [Data pipeline](https://app.posthog.com/data-management/destinations) tab in the left sidebar.
2.  Click the [Destinations](https://app.posthog.com/data-management/destinations?search=zendesk) tab.
3.  Search for 'Zendesk' and click **\+ Create**.
4.  Add your Zendesk subdomain, user email, and API token at the configuration step.
5.  Press **Create & Enable** and watch your 'Customer' list get populated in Zendesk!

## Configuration

| Option | Description |
| --- | --- |
| Zendesk subdomainType: stringRequired: True | Generally, Your Zendesk URL has two parts: a subdomain name you chose when you set up your account, followed by zendesk.com (for example: mycompany.zendesk.com). Please share the subdomain name with us so we can set up your account. |
| API user emailType: stringRequired: True | Enter the email of an admin in Zendesk. Activity using the API key will be attributed to this user. |
| API tokenType: stringRequired: True |
| User emailType: stringRequired: True |
| User nameType: stringRequired: True |
| Attribute mappingType: dictionaryRequired: False | Map of Zendesk user fields and their values. You'll need to create User fields in Zendesk for these to work. |

How to create this via the API

Using our REST API you can create this destination like so:

Terminal

PostHog AI

```bash
# Create a new destination
curl --location 'https://us.i.posthog.com/api/environments/:project_id/hog_functions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <POSTHOG_PERSONAL_API_KEY>' \
--data '{
    "type": "destination",
    "name": "Zendesk",
    "inputs": {
        "subdomain": {
            "value": ""
        },
        "admin_email": {
            "value": ""
        },
        "token": {
            "value": ""
        },
        "email": {
            "value": "{person.properties.email}"
        },
        "name": {
            "value": "{person.properties.name}"
        },
        "attributes": {
            "value": {
                "plan": "{person.properties.plan}",
                "phone": "{person.properties.phone}"
            }
        }
    },
    "enabled": true,
    "template_id": "template-zendesk"
}'
```

## FAQ

### Is the source code for this destination available?

PostHog is open-source and so are all the destination on the platform. The [source code](https://github.com/PostHog/posthog/blob/master/posthog/cdp/templates/zendesk/template_zendesk.py) is available on GitHub.

### Who maintains this?

This is maintained by PostHog. If you have issues with it not functioning as intended, please [let us know](https://us.posthog.com/#panel=support%3Asupport%3Aapps%3A%3Atrue)!

### What if I have feedback on this destination?

We love feature requests and feedback. Please [tell us what you think](https://us.posthog.com/#panel=support%3Afeedback%3Aapps%3Alow%3Atrue).

### What if my question isn't answered above?

We love answering questions. Ask us anything via [our community forum](/questions.md).

### Community questions

Ask a question

### Was this page useful?

HelpfulCould be better