Issue token
- Print
- PDF
Issue token
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Issue token
Request URL
https://dashboard-api.ncloudchat.naverncp.com/v1/api/token
Request headers
Header | Type | Required | Description |
---|---|---|---|
x-api-key | String | O | Dashboard > Settings > Project settings > API Key |
x-project-id | String | O | Dashboard > Settings > Project settings > Project ID |
Requests
- Method : POST
- URL : /token
Attribute | Type | Required | Description |
---|---|---|---|
id | String | O | USER ID |
expireDay | int | O | Token expiration date; at least 1 day |
Responses
{
"status": 1,
"token": "I6WyIzMzljMmIxYy1kMzViLTQ3ZjItODI4ZC01ZjAyYTEzMDE0NmEiXSwiaWQiOiJvc29yaXoiLCJwcm9qZWN0VGltZXpvbmVzIjpbeyJpZCI6IjMzOWMyYjFjLWQzNWItNDdmMi04MjhkLTVmMDJhM",
"message":""
}
Attribute | Type | Description |
---|---|---|
status | Int | Result (1: Succeeded, see the error code for failure) |
token | String | Created token |
message | String | Error 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 ''
Was this article helpful?