Talkyard API authentication
To use non-public parts of the API, you need to generate an API secret: Go to
https:// your talkyard site /-/admin/settings/features and click Enable API and save the settings. Now, the API tab appears — go there and generate an API secret.
Note that this API secret is very secret — don't send it in emails to anyone, don't share it with anyone.
Then, when doing API requests from your server to Talkyard's API, include an Authorization header:
Authorization: Basic BASE64_TEXT
tyid=2:API_SECRET but base64 encoded. "tyid" means Talkyard ID, and 2 is the Sysbot user id.
tyid=2 means that the API request is being done as the Sysbot user (Sysbot is a Talkyard user intended for API requests).
API_SECRET is the API secret you generated in the API tab.
- 0 replies