1. Auth
SkillForge
  • SkillForge
  • Auth
    • Register
      POST
    • Login
      POST
  • me
    • Courses
      • Enroll course
      • Get course progress
    • Units
      • Start unit
      • Complete unit
    • Get me
      GET
    • Update me
      PATCH
    • Get xp
      GET
    • Get badges
      GET
    • Get recommendations
      GET
  • Onboarding Quiz
    • Get questions
      GET
    • Save answers
      POST
  • Courses
    • Get courses
      GET
    • Get enrolled courses
      GET
    • Get course
      GET
    • Get course units
      GET
  • Units
    • Get unit
      GET
  • Schemas
    • Schemas
      • Pet
      • ApiResponse
      • Category
      • Tag
      • Order
      • User
    • UserArray
      • UserArray
  1. Auth

Login

Developing
POST
/auth/login

Request

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Body

🟠401Invalid credentials
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:6567/api/v1/auth/login' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "user@example.com",
    "password": "string"
}'
Response Response Example
200 - Success
{
    "user": {
        "id": "c31bd57f-17c0-407e-8dbe-136f92c4e1a9",
        "email": "test@takiyo.us",
        "displayName": "Takiyo Takahashi",
        "roles": [
            "learner"
        ]
    },
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJjMzFiZDU3Zi0xN2MwLTQwN2UtOGRiZS0xMzZmOTJjNGUxYTkiLCJlbWFpbCI6InRlc3RAdGFraXlvLnVzIiwicm9sZXMiOlsibGVhcm5lciJdLCJpYXQiOjE3NzU0ODgwNjMsImV4cCI6MTc3NjA5Mjg2M30.CVOQczzy9BhyBLZ4EioKEeIg_DI5luJiTQjjlkkYjTY"
}
Modified at 2026-04-06 15:07:08
Previous
Register
Next
Enroll course
Built with