# Oauth 2.0 Authorization

Before you access any data stored WorkSmart via Web API, you must first request an `Access Token`. No data is accessible via the Web API without sending a valid `Access Token`.

You can obtain `Access Token` using two ways :

* Using Authorization Code (Auth Code Flow) – recommended
* Using Client Credentials


---

# 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://developer.workdigital.io/web-api/untitled.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.
