POST
/
api
/
auth
/
login
curl --request POST \
  --url https://copilotz.com/api/auth/login \
  --header 'Content-Type: application/json' \
  --data '{
  "username": "john.doe@example.cocommpany",
  "password": "your-password",
  "namespace": "example_namespace"
}'
{
  "accessToken": "tk_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NjRiOTBhYzEwM2ExM...",
  "expiresAt": "2024-05-23T13:53:03.591Z"
}

Body

application/json

Request payload for user authentication.

Response

200
application/json

OK

Successful authentication response containing access token and expiration.