MENU
      Issue token

        Issue token


        Article summary

        Issue token

        Request URL

        https://dashboard-api.ncloudchat.naverncp.com/v1/api/token
        HTTP

        Request headers

        HeaderTypeRequiredDescription
        x-api-keyStringODashboard > Settings > Project settings > API Key
        x-project-idStringODashboard > Settings > Project settings > Project ID

        Requests

        • Method : POST
        • URL : /token
        AttributeTypeRequiredDescription
        idStringOUSER ID
        expireDayintOToken expiration date; at least 1 day

        Responses

        {
            "status": 1,
            "token": "I6WyIzMzljMmIxYy1kMzViLTQ3ZjItODI4ZC01ZjAyYTEzMDE0NmEiXSwiaWQiOiJvc29yaXoiLCJwcm9qZWN0VGltZXpvbmVzIjpbeyJpZCI6IjMzOWMyYjFjLWQzNWItNDdmMi04MjhkLTVmMDJhM",
            "message":""
        }
        JavaScript
        AttributeTypeDescription
        statusIntResult (1: Succeeded, see the error code for failure)
        tokenStringCreated token
        messageStringError message

        CURL

        curl -X 'POST' \
          'https://dashboard-api.ncloudchat.naverncp.com/v1/api/token?id=sadadsdadas&expireDay=10' \
          -H 'accept: application/json' \
          -H 'x-project-id: 339c2b1c-d35b-47f2-828d-xxxxxxxxx' \
          -H 'x-api-key: 4302925661f70ce7c1406c59543f2546d261d2xxxxxxxxx' \
          -d ''
        Shell

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.