> 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.

# GradeMapping

GET https://dreamclassapi/v1/grading/grade-mapping

Get a list of grade mappings configured

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

Reference: https://apidoc.dreamclass.io/dream-class-api/grading/grade-mapping

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /dreamclassapi/v1/grading/grade-mapping:
    get:
      operationId: grade-mapping
      summary: GradeMapping
      description: >-
        Get a list of grade mappings configured


        Colors: Check
        [https://tailwindcss.com/docs/colors](https://tailwindcss.com/docs/colors)
        for colors
      tags:
        - subpackage_grading
      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/DreamclassapiV1GradingGradeMappingGetResponsesContentApplicationJsonSchemaItems
servers:
  - url: https:/
    description: https://{server}
  - url: https://your-webhook-url
    description: https://your-webhook-url
components:
  schemas:
    DreamclassapiV1GradingGradeMappingGetResponsesContentApplicationJsonSchemaItemsInstitution:
      type: object
      properties:
        id:
          type: integer
      required:
        - id
      title: >-
        DreamclassapiV1GradingGradeMappingGetResponsesContentApplicationJsonSchemaItemsInstitution
    DreamclassapiV1GradingGradeMappingGetResponsesContentApplicationJsonSchemaItemsConditionalValuesItems:
      type: object
      properties:
        to:
          type: integer
        gpa:
          type: integer
        from:
          type: integer
        apGpa:
          type: integer
        color:
          type: string
        display:
          type: string
        honorsGpa:
          type: integer
        includeTo:
          type: boolean
        includeFrom:
          type: boolean
      required:
        - to
        - gpa
        - from
        - apGpa
        - color
        - display
        - honorsGpa
        - includeTo
        - includeFrom
      title: >-
        DreamclassapiV1GradingGradeMappingGetResponsesContentApplicationJsonSchemaItemsConditionalValuesItems
    DreamclassapiV1GradingGradeMappingGetResponsesContentApplicationJsonSchemaItems:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        institution:
          $ref: >-
            #/components/schemas/DreamclassapiV1GradingGradeMappingGetResponsesContentApplicationJsonSchemaItemsInstitution
        informationText:
          type: string
        conditionalValues:
          type: array
          items:
            $ref: >-
              #/components/schemas/DreamclassapiV1GradingGradeMappingGetResponsesContentApplicationJsonSchemaItemsConditionalValuesItems
      required:
        - id
        - name
        - institution
        - informationText
        - conditionalValues
      title: >-
        DreamclassapiV1GradingGradeMappingGetResponsesContentApplicationJsonSchemaItems

```

## Examples



**Request**

```json
{}
```

**Response**

```json
[
  {
    "id": 5,
    "name": "Standard Letter Grades",
    "institution": {
      "id": 12
    },
    "informationText": "<p><strong>Grading Scale:</strong></p>\n<p>A: 90-100</p>\n<p>B: 80-89</p>\n<p>C: 70-79</p>\n<p>D: 60-69</p>\n<p>F: 0-59</p>",
    "conditionalValues": [
      {
        "to": 100,
        "gpa": 4,
        "from": 90,
        "apGpa": 5,
        "color": "green-600",
        "display": "A",
        "honorsGpa": 4,
        "includeTo": true,
        "includeFrom": true
      },
      {
        "to": 89,
        "gpa": 3,
        "from": 80,
        "apGpa": 4,
        "color": "blue-500",
        "display": "B",
        "honorsGpa": 3,
        "includeTo": true,
        "includeFrom": true
      },
      {
        "to": 79,
        "gpa": 2,
        "from": 70,
        "apGpa": 3,
        "color": "yellow-400",
        "display": "C",
        "honorsGpa": 2,
        "includeTo": true,
        "includeFrom": true
      },
      {
        "to": 69,
        "gpa": 1,
        "from": 60,
        "apGpa": 2,
        "color": "orange-400",
        "display": "D",
        "honorsGpa": 1,
        "includeTo": true,
        "includeFrom": true
      },
      {
        "to": 59,
        "gpa": 0,
        "from": 0,
        "apGpa": 0,
        "color": "red-600",
        "display": "F",
        "honorsGpa": 0,
        "includeTo": true,
        "includeFrom": true
      }
    ]
  }
]
```

**SDK Code**

```python Grading_GradeMapping_example
import requests

url = "https://https/dreamclassapi/v1/grading/grade-mapping"

payload = {}
headers = {
    "tenant": "{{tenant}}",
    "schoolCode": "{{schoolCode}}",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Grading_GradeMapping_example
const url = 'https://https/dreamclassapi/v1/grading/grade-mapping';
const options = {
  method: 'GET',
  headers: {
    tenant: '{{tenant}}',
    schoolCode: '{{schoolCode}}',
    'Content-Type': 'application/json'
  },
  body: '{}'
};

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

```go Grading_GradeMapping_example
package main

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

func main() {

	url := "https://https/dreamclassapi/v1/grading/grade-mapping"

	payload := strings.NewReader("{}")

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

	req.Header.Add("tenant", "{{tenant}}")
	req.Header.Add("schoolCode", "{{schoolCode}}")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

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

url = URI("https://https/dreamclassapi/v1/grading/grade-mapping")

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

request = Net::HTTP::Get.new(url)
request["tenant"] = '{{tenant}}'
request["schoolCode"] = '{{schoolCode}}'
request["Content-Type"] = 'application/json'
request.body = "{}"

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

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

HttpResponse<String> response = Unirest.get("https://https/dreamclassapi/v1/grading/grade-mapping")
  .header("tenant", "{{tenant}}")
  .header("schoolCode", "{{schoolCode}}")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://https/dreamclassapi/v1/grading/grade-mapping', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
    'schoolCode' => '{{schoolCode}}',
    'tenant' => '{{tenant}}',
  ],
]);

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

```csharp Grading_GradeMapping_example
using RestSharp;

var client = new RestClient("https://https/dreamclassapi/v1/grading/grade-mapping");
var request = new RestRequest(Method.GET);
request.AddHeader("tenant", "{{tenant}}");
request.AddHeader("schoolCode", "{{schoolCode}}");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Grading_GradeMapping_example
import Foundation

let headers = [
  "tenant": "{{tenant}}",
  "schoolCode": "{{schoolCode}}",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://https/dreamclassapi/v1/grading/grade-mapping")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```