How to authenticate an API request?

5b9ac3cf2f9a563777b37bc9a5571752

Written by Emil Hajric

Last published at: January 6th, 2019

1.    When account requires API Token:

    1.1.    Guest with valid API Token can access both internal and external questions

    1.2.    Guests with invalid API Token are not able to access KB at all.

2.    When account does not require API Token:

    2.1. Guests are able to access external question, only if internal_kb option is not checked.

   

How to authorize guests through API, in order to access internal questions:

  1. Enable the Require API Token setting in the settings page
  2. Set the Public Key (or Private Key, both work) in the Authorization request header or as api_key query parameter.