Get a team member

One profile: office, team, line manager, start date, role and working week.

GET https://cotlet.dev/api/v1/charliehr/team-member

read

Returns the profile of one team member by id or exact name. Use it to confirm the right person before a write. The line manager and team are the people who can approve that person's leave. Pay and bank details are not part of the response.

Parameters

Parameters: get_team_member
NameTypeDescription
member_id string string Id from list_team_members
name string string Exact name, used when member_id is not known

Request

cURL
curl https://cotlet.dev/api/v1/charliehr/team-member \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("charliehr", "get_team_member")
Node.js
const result = await cotlet.call('charliehr', 'get_team_member');
CLI
cotlet call charliehr get_team_member

Example response

JSON

{
  "member_id": "tm_7d20ab",
  "name": "Daniel Kim",
  "job_title": "Account Executive",
  "office": "London",
  "team": "Sales",
  "line_manager": "Maya Cole",
  "start_date": "2022-09-12",
  "role": "Member",
  "archived": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.