<turbo-stream action="update" target="wiki_3611_3666_subpage_3716_info"><template>
<p>Below you see an example on how to list one group. Examples both in JSON and JSONAPI are provided.

</p><p>NOTE: Remember to substitute the token (after Bearer) and the service id (the "[SERVCICE ID]" below) to your own token and service id.</p>
<p><strong>Retrieving Group 8 from a service with id [SERVICE ID]</strong></p>

<p></p><h2>JSON:</h2><p></p>
<pre class="card">curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/json" 
  -H "Accept: application/json"
  -X GET
  https://api.myrapidi.com/api/v2/service/[SERVCICE ID]/groups/8
</pre>
<p>The output for this example would be:</p>
<pre class="card">{
  "id": "8",
  "code": "CONTACT",
  "description": "Contact Transfers",
  "comments": []
}
</pre>
<p></p><h2>JSONAPI:</h2><p></p>
<pre class="card">curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/vnd.api+json" 
  -H "Accept: application/vnd.api+json"
  -X GET
  https://api.myrapidi.com/api/v2/service/[SERVCICE ID]/groups/8
</pre>
<p>The output for this example would be:</p>
<pre class="card">{
  "data":{
    "id": "8",
    "type": "groups",
    "attributes": {
      "code": "CONTACT",
      "description": "Contact Transfers"
    },
    "relationships": {
      "comments": {
        "data": []
      }
    }
  }
}</pre>
</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
