L2S - API Docs
Visit L2S
Visit L2S
Get API Key
  1. User
  • URL
    • Shorten a URL
      POST
    • Get URL details
      GET
    • Update URL details
      PUT
  • User
    • Get user settings
      GET
  1. User

Get user settings

GET
/user/setting
User
This endpoint retrieves the settings of the authenticated user.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************

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 GET 'https://api.l2s.is/user/setting'

Responses

🟢200User settings retrieved successfully
application/json
Body
ok
boolean 
optional
Example:
true
response
object 
optional
message
string 
optional
Example:
Operation successful
data
object 
optional
Example
{
    "ok": true,
    "response": {
        "message": "Operation successful",
        "data": {}
    }
}
🟠400Validation Error
🟠401Unauthorized
🔴500Internal Server Error
Previous
Update URL details
Built with