Working with url properties

The response data from API requests may include urls to additional resources. For example, auserreturned by the Users API has aurlproperty that points to the user's API record. A ticket comment may have arecording_urlproperty that points to an audio file.

For security reasons, you should take care not to inadvertently send Zendesk authentication credentials to third parties when attempting to access assets specified by url properties. Zendesk may not host the files. Make sure your code checks the url's domain first.

The following urls can point to externally hosted files:

  • Thecontent_urlof a ticketattachment

  • Therecording_urlof a voice comment added to a ticket

Thecontent_urlproperty can be returned in the following GET requests:

Therecording_urlproperty can be returned in the following GET requests: