Short-Bitunix
HomeLink
Multiple Menus
  • Link1
  • Link2
HomeLink
Multiple Menus
  • Link1
  • Link2
  1. Auth
  • URL Collections
    • POST Url
      POST
    • GET Url
      GET
    • GET Url ID
      GET
    • UPDATE Url by ID
      PUT
    • DELETE Url by ID
      DELETE
    • GET QrCode by ID
      GET
  • Sources Bank
    • POST Sources
      POST
    • GET Sources
      GET
    • GET Sources by ID
      GET
    • PUT Sources by ID
      PUT
    • DELETE Sources by ID Copy
      DELETE
  • Medium Bank
    • POST Medium
      POST
    • GET Medium
      GET
    • GET Medium by ID
      GET
    • PUT Medium by ID
      PUT
    • DELETE Medium by ID Copy
      DELETE
  • Partner Code Bank
    • POST VipCodes
      POST
    • GET VipCodes
      GET
    • GET VipCodes by ID
      GET
    • PUT VipCodes by ID
      PUT
    • DELETE VipCodes by ID Copy
      DELETE
  • Tag Bank
    • POST Tags
    • GET Tags
    • GET Tags by ID
    • PUT Tags by ID
    • DELETE Tags by ID
  • Analytics
    • GET All clicks URL
    • GET spesific shrtlink analytics
    • GET clicks from ID
    • GET All clicks URL
    • GET All clicks countries
    • GET All clicks cities
    • GET All clicks regions
    • GET All clicks continents
    • GET All clicks devices
    • GET All clicks browsers
    • GET All clicks source
    • GET All clicks medium
    • GET All clicks campaign
    • GET All clicks term
    • GET All clicks content
  • Auth
    • POST Register
      POST
    • POST Login
      POST
    • PUT Change Name User Auth
      PUT
    • POST Logout
      POST
  • Untitled Endpoint
    GET
  1. Auth

POST Login

Develop Env
http://localhost:8000/api/
Develop Env
http://localhost:8000/api/
POST
login

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
object {0}
Example
{
  "email": "johndoe@example.com",
  "password": "password123"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8000/api/login' \
--header 'Content-Type: application/json' \
--data-raw '{
  "email": "johndoe@example.com",
  "password": "password123"
}'

Responses

🟢200Success
application/json
Body
status
integer 
required
data
object 
required
user
object 
required
token
string 
required
message
string 
required
Example
{
    "status": 200,
    "data": {
        "user": {
            "id": 1,
            "name": "johndoe",
            "email": "johndoe@example.com",
            "email_verified_at": null,
            "created_at": "2025-03-13T08:44:50.000000Z",
            "updated_at": "2025-03-13T08:44:50.000000Z"
        },
        "token": "1|n5PAatFysXxc7S48ScaEfkmpmF9F33WCWnMe4ScWf3a38652"
    },
    "message": "Login successful"
}
Modified at 2025-03-13 09:23:46
Previous
POST Register
Next
PUT Change Name User Auth
Built with