Skip to main content

Hi there,

 

According to docs , GET /admins should return Admin Object which includes 'job_title' field.

But it doesn't.

 

Here are the corresponding requests:

 

1) /admins endpoint (no job_title)

```

GET https://api.intercom.io/admins/p>

 

 

{

"type": "admin.list",

"admins": o

{

"type": "admin",

"email": "admin@mail.com",

"id": "4325747",

"name": "Admin Admin",

"away_mode_enabled": false,

"away_mode_reassign": false,

"has_inbox_seat": true,

"team_ids": o]

},

{

"type": "admin",

"email": "operator+ep13p0k7@intercom.io",

"id": "4427542",

"name": "Operator",

"away_mode_enabled": false,

"away_mode_reassign": false,

"has_inbox_seat": false,

"team_ids": o]

}

]

}

```

 

2) /admin/id endpoint (job_title is present)

```

{

"type": "admin",

"id": "4325747",

"name": "Admin Admin",

"email": "admin@mail.com",

"away_mode_enabled": false,

"job_title": "job",

"away_mode_reassign": false,

"has_inbox_seat": true,

"team_ids": u]

}

```

 

Thanks in advance

Hi @misha​ , I just now test it and it's working fine:

 

curl https://api.intercom.io/admins/b>id

=========================================

{

  "type": "admin",

  "id": "ID",

  "name": "Roy Sh.",

  "email": "admin@email.com",

  "away_mode_enabled": false,

  "job_title": "Magic Unicorn",

  "away_mode_reassign": false,

  "has_inbox_seat": true,

  "avatar": {

    "image_url": "avatarurl"

  },

  "team_ids": >Team1, Team2]

}

=========================================

Are you sure this admin entered the job title in the Intercom profile?

ProfileIDIf the job title is empty, API does not return this field:

nojobtitle 

Let me know if this helps.


Hi @roy s11​ 

Yeah, that's the problem. It works for /admins/id but doesn't work for /admins


Hey @misha​, checking with our team if this is expected behaviour or if you've stumbled on a bug!


Congrats on spotting a bug for us, @misha​! I've opened an issue for this now 👍


Hey @misha​, we've shipped a fix for this now, the job_title parameter will be returned for all admins on a call to the /admins endpoint!


Thanks, I verify that it's present in API


Reply