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

# Employee Details

GET https://heimdall.eka.io/apis/external/employee/{code}

### Employee Details

This API retrieves employee details from Dice.

| **Params** | **Required** | **Description**                        |
| ---------- | ------------ | -------------------------------------- |
| Code       | Mandatory    | Employee code associate with employee. |

### Response

| Params       | Type    | Description                                                              |
| ------------ | ------- | ------------------------------------------------------------------------ |
| details      | Object  | Contains detailed information about the employee.                        |
| age          | Integer | The age of the employee.                                                 |
| dob          | Integer | The date of birth of the employee in Unix timestamp format.              |
| createdAt    | Integer | The timestamp when the employee details were created.                    |
| updatedAt    | Integer | The timestamp when the employee details were last updated.               |
| department   | Object  | Contains information about the department to which the employee belongs. |
| id           | Integer | The unique ID of the department.                                         |
| name         | String  | The name of the department.                                              |
| office       | Object  | Contains information about the office location of the employee.          |
| id           | Integer | The unique ID of the office location.                                    |
| name         | String  | The name of the office location.                                         |
| grade        | String  | The grade or level of the employee.                                      |
| firstName    | String  | The first name of the employee.                                          |
| lastName     | String  | The last name of the employee.                                           |
| eaCode       | String  | The EA code associated with the employee.                                |
| customFields | Object  | Custom fields associated with the employee.                              |
| id           | Integer | The unique ID of the employee.                                           |
| name         | String  | The name of the employee.                                                |
| code         | String  | The employee code or identification number.                              |
| email        | String  | The email address of the employee.                                       |
| mobile       | String  | The mobile/phone number of the employee.                                 |
| currency     | String  | The currency code (INR) associated with the employee.                    |
| deleted      | Boolean | Indicates whether the employee is deleted or not.                        |
| qrDisabled   | Boolean | Indicates whether the QR code is disabled or not.                        |
| programme    | Object  | Contains information about the employee's program.                       |
| id           | Integer | The unique ID of the program.                                            |
| officeIds    | Array   | An array containing office IDs associated with the employee.             |

### Response Example

raw (Json)

```json
{
    "details": {
        "age": 54,
        "dob": 0,
        "createdAt": 1704717674261,
        "updatedAt": 1704717880623,
        "department": {
            "id": 75978,
            "name": "Basic"
        },
        "office": {
            "id": 97485,
            "name": "Delhi"
        },
        "grade": "",
        "firstName": "test",
        "lastName": "user 123",
        "eaCode": "",
        "customFields": {},
        "id": 583212,
        "name": "test user 123",
        "code": "000069",
        "email": "Diceuser122333@gmail.com",
        "mobile": "0099887766"
    },
    "currency": "INR",
    "deleted": false,
    "qrDisabled": false,
    "programme": {
        "id": 257
    },
    "officeIds": []
}

```

Reference: https://open-api-docs.dice.tech/dice-standardized-ap-is-v-2-copy/employee/employee-details

## Servers

- `https://heimdall.eka.io` (https://heimdall.eka.io, default)
- `https://heimdall.eka.ioapis` (https://heimdall.eka.ioapis)

## Request

### Path parameters

- `code` (string, required)

### Headers

- `DICE-APP-ID` (string, optional) — Company Code of client
- `X-CLIENT-ID` (string, optional) — API Client ID
- `X-CLIENT-SECRET` (string, optional) — API Client Secret

## Response

### 200

OK

- `details` (object, required)
  - `age` (integer, required)
  - `dob` (integer, required)
  - `createdAt` (integer, required)
  - `updatedAt` (integer, required)
  - `department` (object, required)
    - `id` (integer, required)
    - `name` (string, required)
  - `office` (object, required)
    - `id` (integer, required)
    - `name` (string, required)
  - `grade` (string, required)
  - `firstName` (string, required)
  - `lastName` (string, required)
  - `eaCode` (string, required)
  - `customFields` (object, required)
  - `id` (integer, required)
  - `name` (string, required)
  - `code` (string, required)
  - `email` (string, required)
  - `mobile` (string, required)
- `currency` (string, required)
- `deleted` (boolean, required)
- `qrDisabled` (boolean, required)
- `programme` (object, required)
  - `id` (integer, required)
- `officeIds` (list of any, required)

## Examples

**Response**

```json
{
  "details": {
    "age": 54,
    "dob": 0,
    "createdAt": 1704717674261,
    "updatedAt": 1704717880623,
    "department": {
      "id": 75978,
      "name": "Basic"
    },
    "office": {
      "id": 97485,
      "name": "Delhi"
    },
    "grade": "",
    "firstName": "test",
    "lastName": "user 123",
    "eaCode": "",
    "customFields": {},
    "id": 583212,
    "name": "test user 123",
    "code": "000069",
    "email": "Diceuser122333@gmail.com",
    "mobile": "0099887766"
  },
  "currency": "INR",
  "deleted": false,
  "qrDisabled": false,
  "programme": {
    "id": 257
  },
  "officeIds": []
}
```

**SDK Code**

```python Employee_Employee Details_example
import requests

url = "https://heimdall.eka.io/apis/external/employee/00069"

headers = {
    "DICE-APP-ID": "{{Company Code}}",
    "X-CLIENT-ID": "{{API Client ID}}",
    "X-CLIENT-SECRET": "{{API Client Secret}}"
}

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

print(response.json())
```

```javascript Employee_Employee Details_example
const url = 'https://heimdall.eka.io/apis/external/employee/00069';
const options = {
  method: 'GET',
  headers: {
    'DICE-APP-ID': '{{Company Code}}',
    'X-CLIENT-ID': '{{API Client ID}}',
    'X-CLIENT-SECRET': '{{API Client Secret}}'
  }
};

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

```go Employee_Employee Details_example
package main

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

func main() {

	url := "https://heimdall.eka.io/apis/external/employee/00069"

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

	req.Header.Add("DICE-APP-ID", "{{Company Code}}")
	req.Header.Add("X-CLIENT-ID", "{{API Client ID}}")
	req.Header.Add("X-CLIENT-SECRET", "{{API Client Secret}}")

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

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

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

}
```

```ruby Employee_Employee Details_example
require 'uri'
require 'net/http'

url = URI("https://heimdall.eka.io/apis/external/employee/00069")

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

request = Net::HTTP::Get.new(url)
request["DICE-APP-ID"] = '{{Company Code}}'
request["X-CLIENT-ID"] = '{{API Client ID}}'
request["X-CLIENT-SECRET"] = '{{API Client Secret}}'

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

```java Employee_Employee Details_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://heimdall.eka.io/apis/external/employee/00069")
  .header("DICE-APP-ID", "{{Company Code}}")
  .header("X-CLIENT-ID", "{{API Client ID}}")
  .header("X-CLIENT-SECRET", "{{API Client Secret}}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://heimdall.eka.io/apis/external/employee/00069', [
  'headers' => [
    'DICE-APP-ID' => '{{Company Code}}',
    'X-CLIENT-ID' => '{{API Client ID}}',
    'X-CLIENT-SECRET' => '{{API Client Secret}}',
  ],
]);

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

```csharp Employee_Employee Details_example
using RestSharp;

var client = new RestClient("https://heimdall.eka.io/apis/external/employee/00069");
var request = new RestRequest(Method.GET);
request.AddHeader("DICE-APP-ID", "{{Company Code}}");
request.AddHeader("X-CLIENT-ID", "{{API Client ID}}");
request.AddHeader("X-CLIENT-SECRET", "{{API Client Secret}}");
IRestResponse response = client.Execute(request);
```

```swift Employee_Employee Details_example
import Foundation

let headers = [
  "DICE-APP-ID": "{{Company Code}}",
  "X-CLIENT-ID": "{{API Client ID}}",
  "X-CLIENT-SECRET": "{{API Client Secret}}"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://heimdall.eka.io/apis/external/employee/00069")! 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()
```