Hexallion.com
  1. Sessions
Hexallion.com
  • Overview
  • Getting Started
    • Glossary
    • Where to start?
    • What does agent-client mean?
    • Resource monitoring
    • Reseller webhooks
    • Installation
      • Setting up tariffs and groups
      • Setup of the first server and agent installation
      • Installing VPN servers
      • Script Recipes & Macroses
      • Firewalls
      • DNS & Cloudflare Tunnel
      • VPN Servers
        • OpenVPN
        • WireGuard
        • V2Fly
        • XRay
    • Generating VPN accounts
      • Registration of the first reseller
      • Creating the first user and testing the VPN
  • User Guide
    • Using the Admin Panel
      • Dashboard Overview
      • Managing Servers
      • Managing Resellers
      • Managing Users
      • Settings
    • Ordering and Access
      • Choosing a Tariff
      • Naming the Service
      • Payment Process
      • Receiving Admin Panel Access and API Links
  • Best Practices
    • Using NextDns.io and providing DNS filtering
    • Selling accounts through RevenueCat
    • Mobile application and generation of free accounts
    • Selling via telegramBot
  • Integrations
    • RevenueCat
    • PlayIntegrity & DeviceCheck
    • Partitions Servers
    • Geo Limits
    • WHMCS
  • APIs for User
    • Sessions
      • Get session
        GET
      • Create sessions
        POST
      • Delete session
        DELETE
    • VPN
      • Get vpn servers
      • Get vpn servers config
    • Notify
      • Get user`s notifications
      • Delete notification by Id
    • Get user`s ip address
      GET
    • Get user`s servers
      GET
    • Get user by revenuecat id
      GET
  • APIs for Reseller
    • Users
      • Create a new user
      • GET user by UUID
      • Delete a user by uuid
      • Get user`s token
      • Update user`s token
      • Set user status to on
      • Set user status to off
      • Update user`s number of devices
      • Set user`s expiry date
      • GET users list
    • Notifications
      • Create a notification
      • Get user`s notification
      • Delete all user`s notifications
      • Notify all users
      • Delete a specific notification by id
    • VPN
      • Get vpn servers list
      • Get vpn servers config
      • Delete Sessions
    • GET API-keys info
    • GET news
    • Get servers list
    • Webhook for RevenueCat
  • User Stories and Use Cases
    • Developer Use Cases
    • Reseller Use Cases
    • End-User Scenarios
  • Video Tutorials and Walkthroughs
    • Setting up Tariffs and Groups
    • Installing and Configuring Servers
    • Using the Admin Panel
    • Integrations Setup
    • Generating and Managing VPN Accounts
  • Troubleshooting
    • Common Issues and Solutions
    • FAQ
  • Contact and Support
    • Getting Help
    • Support Channels
  1. Sessions

Create sessions

POST
/user/session
/user endpoint

Request

None

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 'https://test.your-api-server.com/user/session'

Responses

🟢200Success
application/json
Body
code
string 
required
Example:
44b51ff9-88ac-40ec-845e-34d4eb39b790
token
string 
required
Example:
c101b934c7b1e4f122aa94fa7f397dc9cd609364
expiry
string 
required
Example:
2022-06-22T09:52:14.570Z
Example
{
    "code": "44b51ff9-88ac-40ec-845e-34d4eb39b790",
    "token": "c101b934c7b1e4f122aa94fa7f397dc9cd609364",
    "expiry": "2022-06-22T09:52:14.570Z"
}
🟢201Success
🟠401401
🟠403403
Previous
Get session
Next
Delete session
Built with