​How can I get API token for access to reuters API ?

​How can I get API token for access to reuters API ?

Best Answer

  • Michael.Bianchi
    Answer ✓

    @konstantin.pavlov

    You can request a token with an HTTP POST request to our Authentication/RequestToken endpoint. This is detailed in Chapter 4 of our REST API User Guide.

    The request will contain your DSS credentials in JSON form. See example below.

    HTTP Request:

    POST https://hosted.datascopeapi.reuters.com/RestApi/v1/Authentication/RequestToken

    Headers:

    Content-Type: application/json
    Prefer: respond-async

    Request body:

    {
    "Credentials": {
    "Username": "Your Username",
    "Password": "Your Password" }
    }

    If your credentials are correct, you will receive a 200 response with your authentication token in the value key.

    HTTP/1.1 200 OK
    {
    "@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#Edm.String",
    "value": "iM3nRfyPWmrKF7RNjS7Hl2JGijKAt_lErD3LEhB6Ayn6CkMQ48aO8meIiij0L4SC1VNlZcRslGBntJT7AOl
    34c1Xv4epjcw5E_OabHmYVtq-J3mz_X-BW2Y2zFsntwv31ngtLV6qVwGEs12fcXvSUZL9LSx5BUlD2RVsR4lU_47AdX7eXLRs
    dmKl22_U1I0CuvLGJg-vAOkeX-Iw4FBokye5kSqcq9-aIQeryjkP35Dn1lafR7hLNUACPx2kjwojLgTvJDPsX4WlCkQuJrOx3
    4e9mLZ4fY1rk8iY2qMQKYE="
    }

Answers