Auth

Create Auth

Create an auth, would normally never be used via the api, the web admin Integrations section manages these.

post/api/auth/{id}

Request

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

Path parameters

idstring required

ID of the Gist in the form of a hash.

Query parameters

account_idstring

Your Lytics account ID.

access_tokenstring

Lytics API access token.

Request body

provider_idstring

Example request

{
  "provider_id": "our_provider",
  "config": [
    {
      "name": "apikey",
      "value": "value_that_will_get_encrypted"
    }
  ]
}

Response

JSON representation of Auth Resource in addition to representing its state in the JSON.

statusstring

Example response

{
  "status": "success",
  "data": {
    "account_id": "4f7b525bdba058fc096757a6",
    "id": "1b53b88a06b418b07d601b6f57b8eb40",
    "provider_id": "26cae7718c32180a7a0f8e19d6d40a59",
    "provider_name": "Facebook",
    "user_id": "4222fd7c8db7ebcb042e0547e3b4e128"
  }
}

Changes

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