Search code examples
botframeworkazure-bot-servicedirect-line-botframework

issue of Generate a Direct Line token


When I try to get the direct line Token according to the Microsoft Document.

The Error shown in Postman.

{
  "error": {
    "code": "BadArgument",
    "message": "Missing token or secret"
  }
}

Here with my query

https://directline.botframework.com/v3/directline/tokens/generate?Authorization=Bearer EWXpigVssN0.4b2ePfz9L_E3mMM37be6yBGXdgI2GUul7Pm8aRNcUeg&content-Type=application/json


Solution

  • You are sending a GET request but what you need to do is send a POST request with the Authorization set to a Bearer Token

    Using POSTMAN you can do this like below:

    enter image description here