Token endpoint for chat message

%3CLINGO-SUB%20id%3D%22lingo-sub-2398276%22%20slang%3D%22en-US%22%3EToken%20endpoint%20for%20chat%20message%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2398276%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20to%20get%20a%20token%20to%20be%20able%20to%20send%20messages%20to%20a%20one-one-one%20chat%20to%20another%20user.%20I%20used%20a%20Graph%20Explorer%20provided%20token%20and%20it%20worked%20just%20fine.%3C%2FP%3E%3CP%3EWhen%20I%20try%20to%20get%20a%20token%20using%20Postman%20%40%26nbsp%3B%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Flogin.microsoftonline.com%2F%7Btenant_ID%7D%2Foauth2%2Fv2.0%2Ftoken%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Flogin.microsoftonline.com%2F%7Btenant_ID%7D%2Foauth2%2Fv2.0%2Ftoken%3C%2FA%3E%3C%2FSPAN%3E%20endpoint%2C%20I%20got%20an%20error%20reply%20with%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3Eerror_description%22%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%20%3CSPAN%3E%22AADSTS70011%3A%20The%20provided%20request%20must%20include%20a%20'scope'%20input%20parameter.%20The%20provided%20value%20for%20the%20input%20parameter%20'scope'%20is%20not%20valid.%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E.%20I'm%20using%20the%20scope%20according%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fauth-v2-service%3Fview%3Dgraph-rest-1.0%234-get-an-access-token%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fauth-v2-service%3Fview%3Dgraph-rest-1.0%234-get-an-access-token%3C%2FA%3E%20doc%20instructions%20and%20using%20the%20scope%20I%20copied%20from%20my%20app%20description%20page.%20Could%20someone%20send%20a%20example%20of%20token%20parameter%20usage%3F%3C%2FP%3E%3CP%3EIf%20I%20use%20the%20default%20scope%20(%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2F.default%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2F.default%3C%2FA%3E)%20I%20got%20a%20token%2C%20but%20the%20message%20send%20endpoint%20returns%20%22UnknownError%22.%3C%2FP%3E%3CP%3EI'm%20not%20sure%20I%20have%20a%20token%20getting%20problem%2C%20a%20send%20message%20problem%20or%20both.%3C%2FP%3E%3CP%3EWould%20some%20please%20help%3F%20I%20've%20been%20working%20on%20this%20issue%20for%20the%20last%204%20days.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2398276%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EUser%20Interface%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

I need to get a token to be able to send messages to a one-one-one chat to another user. I used a Graph Explorer provided token and it worked just fine.

When I try to get a token using Postman @ https://login.microsoftonline.com/{tenant_ID}/oauth2/v2.0/token endpoint, I got an error reply with

error_description": "AADSTS70011: The provided request must include a 'scope' input parameter. The provided value for the input parameter 'scope' is not valid.

. I'm using the scope according to https://docs.microsoft.com/en-us/graph/auth-v2-service?view=graph-rest-1.0#4-get-an-access-token doc instructions and using the scope I copied from my app description page. Could someone send a example of token parameter usage?

If I use the default scope (https://graph.microsoft.com/.default) I got a token, but the message send endpoint returns "UnknownError".

I'm not sure I have a token getting problem, a send message problem or both.

Would some please help? I 've been working on this issue for the last 4 days.

0 Replies