Auth

Auth Create Token

Create Lytics api tokens.

post/api/auth/createtoken

Request

  • Base URL
    https://api.lytics.io
  • URL
    https://api.lytics.io/api/auth/createtoken
  • Auth
    API key in header Authorization

Query parameters

account_idstring

Your Lytics account ID.

Request body

expiresstring
scopesstring[]
namestring

Example request

{
  "expires": "100h",
  "scopes": [
    "admin",
    "data"
  ],
  "name": "my-token-for-serivce-x"
}

Response

Created

statusstring

Example response

{
  "status": "success",
  "data": {
    "account_id": "4f7b525bdba058fc096757a6",
    "id": "1b53b88a06b418b07d601b6f57b8eb40",
    "provider_id": "26cae7718c32180a7a0f8e19d6d40a59",
    "name": "my-token-for-service-x",
    "provider_name": "Lytics",
    "config": [
      {
        "api_key": "api_value"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.