> For the complete documentation index, see [llms.txt](https://gramhal.gitbook.io/matar/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gramhal.gitbook.io/matar/developer-reference/api/api-flow.md).

# API Flow

{% hint style="info" %}
Understand API Flow and see table of contents for all API's.
{% endhint %}

***

Here is an API Flow, try it in the sequence mentioned below:

1. [**Provide User login Information and Send OTP**](/matar/developer-reference/api/user-login/login.md)
2. [**Submit OTP for user creation**](/matar/developer-reference/api/user-login/submit-otp.md)
3. [**Get created user details in the form of the access token**](/matar/developer-reference/api/user-login/get-current-user.md)
4. [**Edit username/language/organization ID and provide an image for the user profile.**](/matar/developer-reference/api/user-login/edit-user.md)
5. [**Create a New Post(Question)**](/matar/developer-reference/api/posts/post-a-new-question.md)
6. [**Create a new child post(answer/replies)**](/matar/developer-reference/api/posts/post-a-new-question.md)
7. [**Like Dislike a Post(Post Any Activity Type)**](/matar/developer-reference/api/posts/post-activity-type.md)
8. [**Get Post Activity for a Certain User.**](/matar/developer-reference/api/posts/post-activity-type.md)
9. [**Get ChatGPT to answer the post.**](/matar/developer-reference/api/posts/post-gpt-processing.md)
10. [**Get the list of Post(Question) Details for an organization ID**](/matar/developer-reference/api/posts/post-information.md)
    * [Get Post(Question) Details with Children(Answers/Replies)](https://app.archbee.com/public/PREVIEW-o7hw14NiYUSoBh_fwO3tH/PREVIEW-ICFIW30WC2XvTmO4RbnDS#-BunH)
    * [Get Post(Question) Details with Children (Answers/Replies)Offset(Limit Number of Replies)](https://app.archbee.com/public/PREVIEW-o7hw14NiYUSoBh_fwO3tH/PREVIEW-ICFIW30WC2XvTmO4RbnDS#D6OBm)
    * [Get Posts by a Certain Category](https://app.archbee.com/public/PREVIEW-o7hw14NiYUSoBh_fwO3tH/PREVIEW-ICFIW30WC2XvTmO4RbnDS#iDjjW)
    * [Get a List of Posts by a specified User](https://app.archbee.com/public/PREVIEW-o7hw14NiYUSoBh_fwO3tH/PREVIEW-ICFIW30WC2XvTmO4RbnDS#CabyZ)

***

### **Helper API's**

* [Get a list of all organizations hosted on the network.](https://app.archbee.com/public/PREVIEW-o7hw14NiYUSoBh_fwO3tH/PREVIEW-nV9vykmU0cOZb1Q6ju0X0#uJGco)
* [Get a list of all languages in which posts are available.](https://app.archbee.com/public/PREVIEW-o7hw14NiYUSoBh_fwO3tH/PREVIEW-uN5Grg_GVNAr5Zv5aKjrc#OYc7P)
* [Get all categories for posts.](https://app.archbee.com/public/PREVIEW-o7hw14NiYUSoBh_fwO3tH/PREVIEW-uN5Grg_GVNAr5Zv5aKjrc#OCVgv)
* [Get a list of activity Types for a post.](https://app.archbee.com/public/PREVIEW-o7hw14NiYUSoBh_fwO3tH/PREVIEW-XmxFzhCX7yzqh46d4eqXT#jD8yi)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://gramhal.gitbook.io/matar/developer-reference/api/api-flow.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
