# Authorization

By default, the API only returns publicly visible lectures. If a lecture is not visible, no model is returned with Reason = FORBIDDEN. There are two reasons for why a lecture is not visible, which are part of the json output:

* `isPublished`: When set to false the lecture is not published (yet). Instead it is in preparation, and expected to be visible at some point in the future.
* `isPublic`: When set to false, the lecture is only shown in the talque app and not on the public webpage.

In order to read lectures that are not visible via the JSON API then you need to pass the API client/secret as HTTP headers as described in the [authentication](/public/webhooks/authentication.md) section. Authorized API requests will also return lectures where  `isPublished` and `isPublic` are not both set to true, and you should handle these fields accordingly.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://talque.gitbook.io/public/json-api/lecture/authorization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
