> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidoc.dreamclass.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidoc.dreamclass.io/_mcp/server.

# Tags

GET https://dreamclassapi/v1/settings/tag

Get a list of School Tags

Type:  
CLAZZ -> Tags for classes  
DC_FILE -> Tags for user files  
MATERIAL_FILE -> Tags for learning material files  
NOTE_CLASSES_COURSE -> Tags for class courses  
NOTE_STUDENT -> Tags for student notes  
NOTE_TEACHER -> Tags for teacher notes  
PROFESSOR_TO_SEMESTER -> Tags for teachers  
STUDENT_TO_SEMESTER -> Tags for students  

Colors: Check [https://tailwindcss.com/docs/colors](https://tailwindcss.com/docs/colors) for colors

Reference: https://apidoc.dreamclass.io/dream-class-api/settings/tags

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /dreamclassapi/v1/settings/tag:
    get:
      operationId: tags
      summary: Tags
      description: >-
        Get a list of School Tags


        Type:  

        CLAZZ -> Tags for classes  

        DC_FILE -> Tags for user files  

        MATERIAL_FILE -> Tags for learning material files  

        NOTE_CLASSES_COURSE -> Tags for class courses  

        NOTE_STUDENT -> Tags for student notes  

        NOTE_TEACHER -> Tags for teacher notes  

        PROFESSOR_TO_SEMESTER -> Tags for teachers  

        STUDENT_TO_SEMESTER -> Tags for students  


        Colors: Check
        [https://tailwindcss.com/docs/colors](https://tailwindcss.com/docs/colors)
        for colors
      tags:
        - subpackage_settings
      parameters:
        - name: tenant
          in: header
          required: false
          schema:
            type: string
        - name: schoolCode
          in: header
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/DreamclassapiV1SettingsTagGetResponsesContentApplicationJsonSchemaItems
servers:
  - url: https:/
    description: https://{server}
  - url: https://your-webhook-url
    description: https://your-webhook-url
components:
  schemas:
    DreamclassapiV1SettingsTagGetResponsesContentApplicationJsonSchemaItems:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        color:
          type: string
        entityType:
          type: string
        parentSchoolTagId:
          type: integer
      required:
        - id
        - name
        - color
        - entityType
        - parentSchoolTagId
      title: DreamclassapiV1SettingsTagGetResponsesContentApplicationJsonSchemaItems

```

## Examples



**Response**

```json
[
  {
    "id": 39,
    "name": "Morning classes",
    "color": "deep-purple-400",
    "entityType": "CLAZZ",
    "parentSchoolTagId": 37
  },
  {
    "id": 40,
    "name": "Progress",
    "color": "deep-purple-300",
    "entityType": "NOTE_STUDENT",
    "parentSchoolTagId": 22
  }
]
```

**SDK Code**

```python Settings_Tags_example
import requests

url = "https://https/dreamclassapi/v1/settings/tag"

headers = {
    "tenant": "{{tenant}}",
    "schoolCode": "{{schoolCode}}"
}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Settings_Tags_example
const url = 'https://https/dreamclassapi/v1/settings/tag';
const options = {method: 'GET', headers: {tenant: '{{tenant}}', schoolCode: '{{schoolCode}}'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Settings_Tags_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://https/dreamclassapi/v1/settings/tag"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("tenant", "{{tenant}}")
	req.Header.Add("schoolCode", "{{schoolCode}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Settings_Tags_example
require 'uri'
require 'net/http'

url = URI("https://https/dreamclassapi/v1/settings/tag")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["tenant"] = '{{tenant}}'
request["schoolCode"] = '{{schoolCode}}'

response = http.request(request)
puts response.read_body
```

```java Settings_Tags_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://https/dreamclassapi/v1/settings/tag")
  .header("tenant", "{{tenant}}")
  .header("schoolCode", "{{schoolCode}}")
  .asString();
```

```php Settings_Tags_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://https/dreamclassapi/v1/settings/tag', [
  'headers' => [
    'schoolCode' => '{{schoolCode}}',
    'tenant' => '{{tenant}}',
  ],
]);

echo $response->getBody();
```

```csharp Settings_Tags_example
using RestSharp;

var client = new RestClient("https://https/dreamclassapi/v1/settings/tag");
var request = new RestRequest(Method.GET);
request.AddHeader("tenant", "{{tenant}}");
request.AddHeader("schoolCode", "{{schoolCode}}");
IRestResponse response = client.Execute(request);
```

```swift Settings_Tags_example
import Foundation

let headers = [
  "tenant": "{{tenant}}",
  "schoolCode": "{{schoolCode}}"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://https/dreamclassapi/v1/settings/tag")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```