Authentication

Acquiring information regarding the current authentication

Get authentication resource

GET https://api.v2.myluxura.com/auth/resource

This endpoint will return the resource's document you're currently authenticated as.

Headers

Name
Type
Description

Authorization

string

Authentication token (type 'Bearer')

{
  "_meta": {
    "index": "<index>",
    "guid": "<guid>",
    "created": 1599044085501,
    "updated": 1622372028181,
    "removed": 0,
    "expiry": 0,
    "created_by": {
      "host": "myluxura-api",
      "resource": {}
    }
  },
  "email": "[email protected]",
  "username": "[email protected]",
  "firstname": "John",
  "lastname": "Doe",
  "company_permissions": [
    {
      "permission_id": "owner.admin",
      "company_guid": "319a7bd50e0d22e12c8af76f5e97aa4e59c89f1dcb37942e25b6a24966344a74"
    }
  ],
  "disable_all_notifications": false
}

Get authentication resource's permissions

GET https://api.v2.myluxura.com/auth/resource/permissions

This endpoint will return the resource's permissions you're currently authenticated as.

Query Parameters

Name
Type
Description

company

string

Guid of company you're acting on behalf of.

Headers

Name
Type
Description

Authorization

string

Authentication token (type 'Bearer')

[
  "users.get",
  "companies.get",
  "equipment.get"
]

Last updated

Was this helpful?