Returning.AI
  1. Auth
Returning.AI
  • Returning.AI
    • Auth
      • register
        POST
      • verify email
        POST
      • login
        POST
      • secure auth
        GET
    • Server
      • create new server
      • get my servers
      • update server
      • role list of server
      • channel list of server
    • Role
      • create new role
      • update role
      • delete role
      • add role to a user on a server
      • remove role from a user on a server
      • get role list of user on a server
    • Channel
      • get channels list
      • create new channel
      • update channel
      • delete channel
    • Badge
      • get badges list
      • create new badge
      • update badge
      • delete badge
      • award badge to user
      • remove badge from user
    • Integration
      • users
        • create new user
      • Messages
        • Send Message
        • Reply Message
      • Channels
        • Get Channels List
  1. Auth

secure auth

Developing
GET
https://cname.yourdomain.com/api/secureAuth

Request

Query Params
userId
string 
optional
Example:
bamboostick
accessLevel
string 
optional
Example:
3
action
string 
optional
Example:
login
Header Params
apiKey
string 
optional
Example:
API_KEY_HERE
hostname
string 
optional
Example:
cname.yourdomain.com

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://cname.yourdomain.com/api/secureAuth?userId=bamboostick&accessLevel=3&action=login' \
--header 'apiKey: API_KEY_HERE' \
--header 'hostname: cname.yourdomain.com'

Responses

🟢200Success
application/json
Body
error
boolean 
required
loginUrl
string 
required
sessionId
string 
required
Example
{
    "error": false,
    "loginUrl": "https://cname.yourdomain.com/v2/app/loginApi/[API_KEY]/2?token= [token]&host=[cname.yourdomain.com]",
    "sessionId": "xxxxxxxxxxxxxxxxx"
}
Previous
login
Next
create new server