You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何解决Postman调用Outlook API时的UnknownTokenType错误?

Getting "UnknownTokenType" error when calling Outlook API for user photo (401 Unauthorized)

I'm trying to fetch the current user's photo via the Outlook API using either Postman or AJAX, hitting the endpoint https://outlook.office.com/api/v2.0/me/photo/$value. However, every call returns a 401 Unauthorized status with this error response:

{"error":{"code":"UnknownTokenType","message":"Token type is not known.","innerError":{"requestId":"df42ad59-d446-48a6-bfbe-6a9334bde364","date":"2019-08-09T08:06:24"}}}

I've successfully obtained an OAuth 2.0 access token, and I'm passing it in the request header with the Bearer type as required. Here's a sample of my request:

GET /api/v2.0/me/photo/$value HTTP/1.1
Host: outlook.office.com
Authorization: Bearer eyJ0eX..
User-Agent: PostmanRuntime/7.15.2
Accept: */*
Cache-Control: no-cache
Postman-Token: 53ee..
Host: outlook.office.com
Accept-Encoding: gzip, deflate
Connection: keep-alive
cache-control: no-cache

I've double-checked that the Authorization header uses the correct Bearer prefix, but the error persists. Can anyone help me troubleshoot what might be causing this "UnknownTokenType" issue? Thanks in advance for your support!

内容的提问来源于stack exchange,提问作者Srinath Ve

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.14 06:39:01