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

# GetStudent

GET https://dreamclassapi/v1/students/records/get/%7BstudentId%7D

Get details of a single student

Input variables

- studentId: id of the student

Reference: https://apidoc.dreamclass.io/dream-class-api/students/get-student

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /dreamclassapi/v1/students/records/get/%7BstudentId%7D:
    get:
      operationId: get-student
      summary: GetStudent
      description: |-
        Get details of a single student

        Input variables

        - studentId: id of the student
      tags:
        - subpackage_students
      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:
                $ref: '#/components/schemas/Students_GetStudent_Response_200'
servers:
  - url: https:/
    description: https://{server}
  - url: https://your-webhook-url
    description: https://your-webhook-url
components:
  schemas:
    DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaGuardiansItemsGuardian:
      type: object
      properties:
        id:
          type: integer
        city:
          type: string
        email:
          description: Any type
        gender:
          type: string
        mobile:
          description: Any type
        address:
          type: string
        country:
          type: string
        lastname:
          type: string
        birthdate:
          description: Any type
        firstname:
          type: string
        telephone:
          type: string
        birthplace:
          description: Any type
        middlename:
          description: Any type
        customFields:
          description: Any type
      required:
        - id
        - city
        - gender
        - address
        - country
        - lastname
        - firstname
        - telephone
      title: >-
        DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaGuardiansItemsGuardian
    DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaGuardiansItemsRelation:
      type: object
      properties:
        id:
          type: integer
        translation:
          type: string
        institutionId:
          type: integer
      required:
        - id
        - translation
        - institutionId
      title: >-
        DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaGuardiansItemsRelation
    DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaGuardiansItems:
      type: object
      properties:
        guardian:
          $ref: >-
            #/components/schemas/DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaGuardiansItemsGuardian
        relation:
          $ref: >-
            #/components/schemas/DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaGuardiansItemsRelation
      required:
        - guardian
        - relation
      title: >-
        DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaGuardiansItems
    DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaCustomFields:
      type: object
      properties:
        '1':
          type: string
        '2':
          type: string
        '3':
          type: string
      required:
        - '1'
        - '2'
        - '3'
      title: >-
        DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaCustomFields
    DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaSchoolPeriodsItemsSchoolPeriod:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        endDate:
          type: string
          format: date
        duration:
          type: integer
        shortName:
          description: Any type
        startDate:
          type: string
          format: date
        schoolyear:
          type: string
      required:
        - id
        - name
        - endDate
        - duration
        - startDate
        - schoolyear
      title: >-
        DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaSchoolPeriodsItemsSchoolPeriod
    DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaSchoolPeriodsItems:
      type: object
      properties:
        id:
          type: integer
        active:
          type: boolean
        schoolPeriod:
          $ref: >-
            #/components/schemas/DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaSchoolPeriodsItemsSchoolPeriod
        registrationDate:
          type: string
          format: date
      required:
        - id
        - active
        - schoolPeriod
        - registrationDate
      title: >-
        DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaSchoolPeriodsItems
    Students_GetStudent_Response_200:
      type: object
      properties:
        id:
          type: integer
        city:
          type: string
        email:
          type: string
          format: email
        gender:
          type: string
        mobile:
          description: Any type
        address:
          type: string
        country:
          type: string
        lastname:
          type: string
        birthdate:
          type: string
          format: date
        firstname:
          type: string
        guardians:
          type: array
          items:
            $ref: >-
              #/components/schemas/DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaGuardiansItems
        telephone:
          type: string
        birthplace:
          type: string
        middlename:
          type: string
        customFields:
          $ref: >-
            #/components/schemas/DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaCustomFields
        schoolPeriods:
          type: array
          items:
            $ref: >-
              #/components/schemas/DreamclassapiV1StudentsRecordsGet7BstudentId7DGetResponsesContentApplicationJsonSchemaSchoolPeriodsItems
      required:
        - id
        - city
        - email
        - gender
        - address
        - country
        - lastname
        - birthdate
        - firstname
        - guardians
        - telephone
        - birthplace
        - middlename
        - customFields
        - schoolPeriods
      title: Students_GetStudent_Response_200

```

## Examples



**Response**

```json
{
  "id": 3,
  "city": "Sacramento",
  "email": "test@test.com",
  "gender": "",
  "address": "123 N St",
  "country": "United States",
  "lastname": "Johnson",
  "birthdate": "2013-12-02",
  "firstname": "Lisa",
  "guardians": [
    {
      "guardian": {
        "id": 21,
        "city": "San Francisco",
        "gender": "",
        "address": "801, Clement Street",
        "country": "United States",
        "lastname": "Johnson ",
        "firstname": "John ",
        "telephone": "123456"
      },
      "relation": {
        "id": 1,
        "translation": "RELATION.FATHER",
        "institutionId": 1
      }
    }
  ],
  "telephone": "123",
  "birthplace": "Sacramento",
  "middlename": "",
  "customFields": {
    "1": "value1",
    "2": "value2",
    "3": "3"
  },
  "schoolPeriods": [
    {
      "id": 1,
      "active": true,
      "schoolPeriod": {
        "id": 1,
        "name": "Dec 2023 - Oct 2024",
        "endDate": "2024-10-11",
        "duration": 11,
        "startDate": "2023-12-11",
        "schoolyear": ""
      },
      "registrationDate": "2023-10-16"
    }
  ]
}
```

**SDK Code**

```python Students_GetStudent_example
import requests

url = "https://https/dreamclassapi/v1/students/records/get/%7BstudentId%7D"

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

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

print(response.json())
```

```javascript Students_GetStudent_example
const url = 'https://https/dreamclassapi/v1/students/records/get/%7BstudentId%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 Students_GetStudent_example
package main

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

func main() {

	url := "https://https/dreamclassapi/v1/students/records/get/%7BstudentId%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 Students_GetStudent_example
require 'uri'
require 'net/http'

url = URI("https://https/dreamclassapi/v1/students/records/get/%7BstudentId%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 Students_GetStudent_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

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

$client = new \GuzzleHttp\Client();

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

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

```csharp Students_GetStudent_example
using RestSharp;

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

```swift Students_GetStudent_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://https/dreamclassapi/v1/students/records/get/%7BstudentId%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()
```