# API to get group properties

**URL:** <https://community.hubspot.com/t/api-to-get-group-properties/31121>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [February 2, 2021, 9:30am UTC](https://community.hubspot.com/t/api-to-get-group-properties/31121 "2021-02-02T09:30:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nachiket](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nachiket/32/35608_2.png) [@nachiket](https://community.hubspot.com/u/nachiket)\
**Post date:** [February 2, 2021, 9:30am UTC](https://community.hubspot.com/t/api-to-get-group-properties/31121/1 "2021-02-02T09:30:27Z")

</div>

On of the group name is having forward slash so the URL to get properties of group is like [https://api.hubapi.com/properties/v1/contacts/groups/named/forward/slash?hapikey=](https://api.hubapi.com/properties/v1/contacts/groups/named/forward/slash?hapikey=)

Here forward/slash is the name of group. How to handle forward slash in above URL

?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [February 3, 2021, 5:08pm UTC](https://community.hubspot.com/t/api-to-get-group-properties/31121/2 "2021-02-03T17:08:48Z")

</div>

Hi @nachiket

I imagine it is best practice to not use a forward slash in your group name. But, we do allow you to create that naming convention so even if you knew not to do it, someone else could…

I am asking around internally about this, but just in case, I will also shout out to [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) to see if he has a clever idea (he usually does 😀)

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [February 4, 2021, 11:29pm UTC](https://community.hubspot.com/t/api-to-get-group-properties/31121/3 "2021-02-04T23:29:45Z")

</div>

Hi @nachiket

If you change your slash to %2F does it work?

Using your example:

[https://api.hubapi.com/properties/v1/contacts/groups/named/forward%2Fslash?hapikey=](https://api.hubapi.com/properties/v1/contacts/groups/named/forward/slash?hapikey=)

Also, you may want to check your Group Name’s variable name – I’d assume HubSpot had changed the variable name to a dash.

[https://api.hubapi.com/properties/v1/contacts/groups/named/forward-slash?hapikey=](https://api.hubapi.com/properties/v1/contacts/groups/named/forward/slash?hapikey=)

Personally I avoid using any Speacial Charaters (& amphersand, / slash, – ndash, etc.) in my property names and group names.

Have fun

Mike

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [February 5, 2021, 7:14pm UTC](https://community.hubspot.com/t/api-to-get-group-properties/31121/4 "2021-02-05T19:14:50Z")

</div>

[@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) ,

sadly the %2f does not work. (I thought this was going to be an easy one and that was the first thing I tried)

This is being investigated and I will report back when I have more info

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [February 5, 2021, 10:30pm UTC](https://community.hubspot.com/t/api-to-get-group-properties/31121/5 "2021-02-05T22:30:12Z")

</div>

Hi @nachiket

I’ve tried using

`https://api.hubapi.com/properties/v1/contacts/groups/named/forward%2Fslash/?hapikey=XXXXXX-XXXXXX-XXX``https://api.hubapi.com/properties/v1/contacts/groups/named/forward\/slash/?hapikey=XXXXXX-XXXXXX-XXX`

When I use the API to get all Property Groups the **Name** and the **displayName** so you may need to rename your Group.

```lia-code-sample
 {
 "name": "forward/slash",
 "displayName": "forward/slash",
 ...
 }

```

So, if you really want to use a name with a slash (which isn’t ideal as you’ve found) here’s what to do:

1. create a new property group called “forward\_slash”

2. rename the group to “forward/slash”

3. move your properties to the new group.

You end up with this:

```lia-code-sample
{
 "name": "forward_slash",
 "displayName": "forward/slash",
 ...
}

```

Now when you call the Property Group – with your code – use “forward\_slash”.

Have fun

Mike

p.s. this is tested using Postman in a Demo Portal

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [February 18, 2021, 2:17pm UTC](https://community.hubspot.com/t/api-to-get-group-properties/31121/6 "2021-02-18T14:17:04Z")

</div>

@nachiket , [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259)

Just a heads up that this will not be fixed for the v1 endpoint.

You can use the v3 endpoint with the url encoded slash and it will work. I am really not sure why I didn’t try that first 🙄

example:

**[https://api.hubapi.com/crm/v3/properties/contacts/groups/forward%2Fslash](https://api.hubapi.com/crm/v3/properties/contacts/groups/forward%2Fslash)**
