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

# GetAdmissionForm

GET https://dreamclassapi/v1/admission/forms/get/%7BformCode%7D

Used to get information about the available fileds in an admission form

Input Variables

- formCode: String key of admission form
    

Return Values

- json represenation of admission form

Reference: https://apidoc.dreamclass.io/dream-class-api/admissions/get-admission-form

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /dreamclassapi/v1/admission/forms/get/%7BformCode%7D:
    get:
      operationId: get-admission-form
      summary: GetAdmissionForm
      description: |-
        Used to get information about the available fileds in an admission form

        Input Variables

        - formCode: String key of admission form
            

        Return Values

        - json represenation of admission form
      tags:
        - subpackage_admissions
      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: object
                properties: {}
servers:
  - url: https:/
    description: https://{server}
  - url: https://your-webhook-url
    description: https://your-webhook-url

```

## Examples



**Response**

```json
"{\r\n    \"name\": \"form1\",\r\n    \"notificationReceiverEmail\": \"admin@test.com\",\r\n    \"target\": \"GUARDIAN\",\r\n    \"type\": \"APPLICATION\",\r\n    \"guid\": \"ABCDEF\",\r\n    \"period\": \"2023\",\r\n    \"fields\": [\r\n        {\r\n            \"name\": \"name\",\r\n            \"label\": \"Name\",\r\n            \"type\": \"textarea\",\r\n            \"entity\": \"STU\",\r\n            \"required\": true,\r\n            \"values\": \"Any valid string\"\r\n        },        \r\n        {\r\n            \"name\": \"extra\",\r\n            \"label\": \"Need extra items?\",\r\n            \"type\": \"dynamic-select\",\r\n            \"entity\": \"GUA\",\r\n            \"required\": true,\r\n            \"values\": \"1 (Yes)|2 (No)\"\r\n        }\r\n    ],\r\n    \"courses\": null,\r\n    \"classes\": [{\r\n            \"id\": 1,\r\n            \"name\": \"1st Grade\"\r\n        },],\r\n    \"levelsAndTags\": null,\r\n    \"fees\": [\r\n        {\r\n            \"id\": 1,\r\n            \"name\": \"Test Fee\",\r\n            \"amount\": 100.0\r\n        }\r\n    ]\r\n}\r\n\r\n"
```

**SDK Code**

```python Admissions_GetAdmissionForm_example
import requests

url = "https://https/dreamclassapi/v1/admission/forms/get/%7BformCode%7D"

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

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

print(response.json())
```

```javascript Admissions_GetAdmissionForm_example
const url = 'https://https/dreamclassapi/v1/admission/forms/get/%7BformCode%7D';
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 Admissions_GetAdmissionForm_example
package main

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

func main() {

	url := "https://https/dreamclassapi/v1/admission/forms/get/%7BformCode%7D"

	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 Admissions_GetAdmissionForm_example
require 'uri'
require 'net/http'

url = URI("https://https/dreamclassapi/v1/admission/forms/get/%7BformCode%7D")

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 Admissions_GetAdmissionForm_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://https/dreamclassapi/v1/admission/forms/get/%7BformCode%7D")
  .header("tenant", "{{tenant}}")
  .header("schoolCode", "{{schoolCode}}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://https/dreamclassapi/v1/admission/forms/get/%7BformCode%7D', [
  'headers' => [
    'schoolCode' => '{{schoolCode}}',
    'tenant' => '{{tenant}}',
  ],
]);

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

```csharp Admissions_GetAdmissionForm_example
using RestSharp;

var client = new RestClient("https://https/dreamclassapi/v1/admission/forms/get/%7BformCode%7D");
var request = new RestRequest(Method.GET);
request.AddHeader("tenant", "{{tenant}}");
request.AddHeader("schoolCode", "{{schoolCode}}");
IRestResponse response = client.Execute(request);
```

```swift Admissions_GetAdmissionForm_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://https/dreamclassapi/v1/admission/forms/get/%7BformCode%7D")! 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()
```