-
Notifications
You must be signed in to change notification settings - Fork 0
Report Auth API
Authentication endpoints for API usage.
All calls are made on the standard report endpoint:
https://report.data-cortex.com
Retrieve a session_key for future communication with the API.
Will generate an email to the specified address to authenticate the user.
The email will contain a verification URL that should be clicked to enable
the session_key for access to the API. You will need to record and enter
the manual_code on that web page as well.
POST /api/1/login
email - string - Email address of user to authenticate
200 OK
result - string - "new_browser" - Indicates a new authentication
session_key - string - Session key for this login. Should be sent in a cookie or body of subsquent API calls.
manual_code - string - Manual code for the verification process.
Disabled the current session.
POST /api/1/logout
None
200 OK
Successfully disabled the session_key.
Get information about the logged in user.
GET /api/1/user
None
200 OK
user_id - number - User ID
email - string - User email address
display_name - string - User display name
org_list - list of objects - List of organizations this user belongs to
-
org_id - number - Organization ID
-
name - string - Organization name
403 Forbidden
Not logged in