@Tominaga, Kohei/富永 航平 Are you trying the language service document summarization API?
Based on the error, it looks like an authentication issue where you have tried to use the Bearer token with the request but the token seems to be invalid. How did you generate the bearer token of your language resource?
Usually, the bearer token is generated by the issue token API which is used for some scenarios of AI services. In this case, you can actually use the subscription key of your resource in the header to pass the request. You can get the subscription key from the resource page on Azure portal from the Keys + Endpoint blade. Use this key with this header to POST the request.
-H Ocp-Apim-Subscription-Key: <your-language-resource-key>"
A sample request is mentioned here for reference.
curl -X GET https://<your-language-resource-endpoint>/language/analyze-text/jobs/<my-job-id>?api-version=2022-10-01-preview \
-H "Content-Type: application/json" \
-H "Ocp-Apim-Subscription-Key: <your-language-resource-key>"\
-d \
'
{
<body of request>
}'
I hope this helps!!
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.