token
POST/v1/logs/token
Create a new logs token. This token will be used to send logs to ncScale by API.
Request
- application/json
Body
name stringrequired
tool_id stringrequired
Responses
- 200
- 401
200
Response Headers
Connection
string
Content-Length
string
Date
string
ETag
string
Keep-Alive
string
X-Powered-By
string
X-RateLimit-Limit
string
X-RateLimit-Remaining
string
X-RateLimit-Reset
string
- application/json
- Schema
- Example (from schema)
- 200
Schema
created_at string
created_by_id string
deleted_at nullable
id string
name string
token string
tool_id string
{
"created_at": "2023-11-09T15:53:25.000Z",
"created_by_id": "64c82604-7a34-11ee-babf-eefb9fdad25a",
"deleted_at": null,
"id": "ac76bbc7-5608-44b4-98b3-326e66d7b3c4",
"name": "Created by API",
"token": "96e8b380-acea-4cc2-ad57-d1b7f22a948b",
"tool_id": "aa767b1f-bea6-4bff-b612-1dafb997c6b4"
}
{
"created_at": "2023-11-09T15:53:25.000Z",
"created_by_id": "64c82604-7a34-11ee-babf-eefb9fdad25a",
"deleted_at": null,
"id": "ac76bbc7-5608-44b4-98b3-326e66d7b3c4",
"name": "Created by API",
"token": "96e8b380-acea-4cc2-ad57-d1b7f22a948b",
"tool_id": "aa767b1f-bea6-4bff-b612-1dafb997c6b4"
}
401
Response Headers
Connection
string
Content-Length
string
Date
string
ETag
string
Keep-Alive
string
X-Powered-By
string
- application/json
- Schema
- Example (from schema)
- 401
Schema
message string
status number
{
"message": "Unauthorized",
"status": 401
}
{
"message": "Unauthorized",
"status": 401
}
Loading...