User Service
Create Personal Access Token
CreatePersonalAccessToken creates a new Personal Access Token for a user. The token value is only returned once upon creation.
Path Parameters
user*string
The user id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/users/string/personalAccessTokens" \ -H "Content-Type: application/json" \ -d '{ "parent": "string" }'{
"personalAccessToken": {
"name": "string",
"description": "string",
"createdAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"lastUsedAt": "2019-08-24T14:15:22Z"
},
"token": "string"
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}