ReferenceV1
Create Access Token
Create a new Personal Access Token (PAT).
Header Parameters
authorization?|
X-API-Key?|
Cookie Parameters
vai_token?|
Request Body
application/json
expiresInDays?|
name*string
Length
1 <= length <= 255Response Body
application/json
application/json
curl -X POST "https://loading/api/v1/access-tokens" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"plaintext": "string",
"token": {
"createdAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"id": "string",
"lastUsedAt": "2019-08-24T14:15:22Z",
"name": "string",
"revokedAt": "2019-08-24T14:15:22Z",
"tokenPrefix": "string",
"tokenType": "session"
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}