Escaping URI Components

In a few rare cases such as Contact Tags, there exists the possibility for a character normally reserved as a URL delimiter to exist as part of a constructed URL.

For example, the contact tags service allows you to create a tag such as Active/Pending, which contains a forward slash. In order to pull all contacts in that group, however, the contained slash must be escaped as explained in section 2.1 of RFC 3986. The resulting request path would then be:

  • /vX/contacts/tags/Active%2FPending