curl --request POST \
--url http://localhost:8080/tokens \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
'{
"id": 123,
"name": "<string>",
"prefix": "<string>",
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"token": "<string>",
"description": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"last_used_ip": "<string>",
"created_by": "<string>"
}curl --request POST \
--url http://localhost:8080/tokens \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
'{
"id": 123,
"name": "<string>",
"prefix": "<string>",
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"token": "<string>",
"description": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"last_used_ip": "<string>",
"created_by": "<string>"
}Successful Response
Первые символы токена для идентификации
Полное значение токена (возвращается один раз)