Skip to main content
POST
Create a personal access token.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Create a new Sanctum personal access token

name
string
required
Example:

"api-cli"

abilities
string[]
Example:
expires_at
string<date-time> | null

Response

Token created; plain token value is returned once

data
object