Token

Create New Token

post

Generates a new bearer token. The token_expiration_date must be a date after today.

Body
emailstringRequiredExample: mtellesy@gmail.com
passwordstringRequiredExample: 12345678
token_namestringRequiredExample: muiee
token_expiration_datestring · dateRequiredExample: 2024-08-22
Responses
200
Token created successfully
application/json
post
POST /api/v1/auth/token HTTP/1.1
Host: 127.0.0.1:8080
Content-Type: application/json
Accept: */*
Content-Length: 110

{
  "email": "mtellesy@gmail.com",
  "password": "12345678",
  "token_name": "muiee",
  "token_expiration_date": "2024-08-22"
}
{
  "data": {
    "token": {
      "name": "muiee",
      "value": "TOKEN_VALUE",
      "expiration_date": "2024-08-22"
    }
  }
}