토큰(Token) 발급
    • PDF

    토큰(Token) 발급

    • PDF

    기사 요약

    토큰발급

    요청 URL

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

    요청 헤더

    HeaderTypeRequiredDescription
    X-API-KEYStringO대시보드 > 설정 > 일반 > API 키
    X-PROJECT-IDStringO대시보드 > 설정 > 일반 > 프로젝트 ID

    요청

    • Method : POST
    • URL : /token
    AttributeTypeRequiredDescription
    idStringOUSER ID
    expireDayintOtoken 유효일 1일 이상

    응답

    {
        "status": 1,
        "token": "I6WyIzMzljMmIxYy1kMzViLTQ3ZjItODI4ZC01ZjAyYTEzMDE0NmEiXSwiaWQiOiJvc29yaXoiLCJwcm9qZWN0VGltZXpvbmVzIjpbeyJpZCI6IjMzOWMyYjFjLWQzNWItNDdmMi04MjhkLTVmMDJhM",
        "message":""
    }
    
    AttributeTypeDescription
    statusInt결과 (1: 성공, 실패는 Error code 참고)
    tokenString생성된 토큰
    messageString오류 메시지

    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 ''
    

    이 문서가 도움이 되었습니까?

    What's Next
    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.