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

# GetProfessor

GET https://api.dreamclass.io/dreamclassapi/v1/professors/get/{professorId}

Get details of a single professor (teacher).

Input variables

- professorId: id of the professor. Check the GetProfessors call

The professor must belong to your school; an id from another school is refused.

Reference: https://apidoc.dreamclass.io/dream-class-api/professors/get-professor

## Servers

- `https://api.dreamclass.io` (https://api.dreamclass.io, default)
- `https://your-webhook-url` (https://your-webhook-url)

## Request

### Path parameters

- `professorId` (string, required)

### Headers

- `dreamclass-secret-key` (string, optional) — Your DreamClass API key. Required on every request. Find it in the DreamClass app under Settings > Integrations.
- `tenant` (string, optional) — Your tenant code: the DreamClass subdomain you sign in at (for https://myaccount.dreamclass.io it is "myaccount"), or your full white-labelled domain. Required on every request.
- `schoolCode` (string, optional) — Your school code. Required on every request. Find it in the DreamClass app under Settings > Integrations.

## Response

### 200

OK

- `id` (integer, required)
- `email` (string, required)
- `firstname` (string, required)
- `lastname` (string, required)
- `mobile` (string, required)
- `gender` (string, required)
- `country` (string, required)
- `city` (string, required)
- `afm` (string, required)
- `expertises` (list of string, required)
- `middlename` (any, optional)
- `telephone` (any, optional)
- `address` (any, optional)
- `birthdate` (any, optional)
- `birthplace` (any, optional)
- `amka` (any, optional)
- `doy` (any, optional)
- `comments` (any, optional)

## Examples

**Response**

```json
{
  "id": 12,
  "email": "jane.doe@example.com",
  "firstname": "Jane",
  "lastname": "Doe",
  "mobile": "+302101234567",
  "gender": "Female",
  "country": "Greece",
  "city": "Athens",
  "afm": "123456789",
  "expertises": [
    "Mathematics"
  ]
}
```

**SDK Code**

```python GetProfessor
import requests

url = "https://api.dreamclass.io/dreamclassapi/v1/professors/get/professorId"

headers = {
    "dreamclass-secret-key": "{{apiKey}}",
    "tenant": "{{tenant}}",
    "schoolCode": "{{schoolCode}}"
}

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

print(response.json())
```

```javascript GetProfessor
const url = 'https://api.dreamclass.io/dreamclassapi/v1/professors/get/professorId';
const options = {
  method: 'GET',
  headers: {
    'dreamclass-secret-key': '{{apiKey}}',
    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 GetProfessor
package main

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

func main() {

	url := "https://api.dreamclass.io/dreamclassapi/v1/professors/get/professorId"

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

	req.Header.Add("dreamclass-secret-key", "{{apiKey}}")
	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 GetProfessor
require 'uri'
require 'net/http'

url = URI("https://api.dreamclass.io/dreamclassapi/v1/professors/get/professorId")

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

request = Net::HTTP::Get.new(url)
request["dreamclass-secret-key"] = '{{apiKey}}'
request["tenant"] = '{{tenant}}'
request["schoolCode"] = '{{schoolCode}}'

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

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

HttpResponse<String> response = Unirest.get("https://api.dreamclass.io/dreamclassapi/v1/professors/get/professorId")
  .header("dreamclass-secret-key", "{{apiKey}}")
  .header("tenant", "{{tenant}}")
  .header("schoolCode", "{{schoolCode}}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.dreamclass.io/dreamclassapi/v1/professors/get/professorId', [
  'headers' => [
    'dreamclass-secret-key' => '{{apiKey}}',
    'schoolCode' => '{{schoolCode}}',
    'tenant' => '{{tenant}}',
  ],
]);

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

```csharp GetProfessor
using RestSharp;

var client = new RestClient("https://api.dreamclass.io/dreamclassapi/v1/professors/get/professorId");
var request = new RestRequest(Method.GET);
request.AddHeader("dreamclass-secret-key", "{{apiKey}}");
request.AddHeader("tenant", "{{tenant}}");
request.AddHeader("schoolCode", "{{schoolCode}}");
IRestResponse response = client.Execute(request);
```

```swift GetProfessor
import Foundation

let headers = [
  "dreamclass-secret-key": "{{apiKey}}",
  "tenant": "{{tenant}}",
  "schoolCode": "{{schoolCode}}"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.dreamclass.io/dreamclassapi/v1/professors/get/professorId")! 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()
```