Skip to main content
POST
/
api
/
external
/
employee
/
{id}
Get Employee Details - V2
curl --request POST \
  --url https://{env}.tartanhq.com/api/external/employee/{id}/ \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "connection_id": "<string>"
}
'
{
  "requestId": "f6e80421-3901-4132-85c0-7bcdc1236ce9",
  "message": "success",
  "status_code": "success",
  "status": 200,
  "data": "eyJfdfasdfasdfasdfaIjoiQUl6YVN5QmJHc0t3bVZ6SUU5a2VnPT0iLCJkYXRhIjoiU2FtcGxlIEVuY3J5cHRlZCBTdHJpbmcifQ=="
}
For field enums, refer the employee directory page.

Authorizations

Authorization
string
header
required

Create a Basic Auth token by base64-encoding username:password

Path Parameters

id
string
required

Unique identifier of the employee.

Body

application/json
connection_id
string
required

The connection identifier.

Response

Employee details retrieved successfully

requestId
string
Example:

"f6e80421-3901-4132-85c0-7bcdc1236ce9"

message
string
Example:

"success"

status_code
string
Example:

"success"

status
integer
Example:

200

data
string
Example:

"eyJfdfasdfasdfasdfaIjoiQUl6YVN5QmJHc0t3bVZ6SUU5a2VnPT0iLCJkYXRhIjoiU2FtcGxlIEVuY3J5cHRlZCBTdHJpbmcifQ=="