# Mapping

Source: https://docs.annoto.net/developers/rest-api/data-api-mapping

Most of the APIs use internal UUIDs. In this sections are useful APIs to map Organization/LMS ids to internal Annoto UUID to be used by the rest of the API.

Get group UUID by host/LMS course ID

`GET` `/hosts/{hostId}/groups`

This API allows to find Annoto internal group uuid of host/LMS course id to be used for all the different API calls. Each LMS or other host system has its own identification for courses using random strings or incrementing numbers. Annoto is agnostic to the type of id and maps the host course id to internal group uuid.

Required user scope: `super-mod`



**Query Parameters**

| Name | Value |
|---|---|
| `group_id` | string/number of the host/LMS course id to be mapped to Annoto group UUID |

Example: `/hosts/9a89fe71-78d6-4e29-8fb1-82c0cba44eed/groups?group_id=12345`



**Response**

200

```json
{
  "total": 1,
  "results": [
    {
      "id": "910aac35-d911-4e4b-bfbb-3ba2f2bd16ff",
      "host_id": "9a89fe71-78d6-4e29-8fb1-82c0cba44eed",
      "group_id": "12345"
      "title": "Course Title...."
    }
  ]
}

```



400

```json
{
  "message": "Bad request",
  "statusCode": 400
}

```



group object properties:

| Name | Type | Description |
|---|---|---|
| `id` | string | the uuid of the group to be used in Annoto APIs as `{groupId}` |
| `host_id` | string | host UUID |
| `group_id` | string | the host/LMS id same as provided in the route params |

- The object of the group may contain additional payload properties such as description, `private_thread`, `thumbnails`, `created_at`, `updated_at`, etc.
