Ⓜ️
Matar
  • ✍️About Matar
  • 📁Concept
    • 📄Understanding Matar
  • 📁Matar For Communities
    • 📄Hosting on Matar
    • 📄Trial Pilot
    • 📄Community Management
  • 📁🚀 Get Started
    • 📄Language Selection
    • 📄Organization Onboarding
    • 📄Signing Up
  • 📁Matar Features
    • 📄Browsing the App
    • 📄View Questions
    • 📄Changing Subjects
    • 📄Answer Questions
    • 📄Ask a Question
    • 📄Share a Question
    • 📄Like an Answer
    • 📄See Liked Answers
    • 📄Dislike an Answer
    • 📄See Recorded Questions
    • 📄See Recorded Answers
    • 📄Troubleshooting
    • 📄Version
    • 📄FAQ
  • 📁Developer Reference
    • 🗄️Architecture
      • 📄Overview
      • 📄Backend
      • 📄Frontend
      • 📄API Layer
    • 📜Guides
      • 📄Add/delete posts
    • 🛠️API
      • 📄API Flow
      • 📁User Login
        • 📄Login
        • 📄Submit OTP
        • 📄Get Current User
        • 📄Edit User
        • 📄Logout
      • 📄Organization Selection
      • 📄Language and Categories
      • 📄Activity Types
      • 📁Posts
        • 📄Post a New Question
        • 📄Delete a Post
        • 📄Post Activity Type
        • 📄Post Information
        • 📄Post GPT Processing
    • 📶DB Tables and Structure
      • 📄Matar DB tables
      • 📄Code Structure
    • 💻Backend Code
      • 📄Response on a Post from AI
      • 📄Post Sorting
      • 📄User Registration
      • 📄Org Based Code
    • 💻Frontend Code
      • 📄Overview
      • 📄Setting up Project
      • 📄Project Structure
      • 📄Code Directories
        • 📄Broadcast Directory
        • 📄Core Directory
        • 📄Data Directory
        • 📄di Directory
        • 📄domain/repository Directory
        • 📄model Directory
        • 📄retrofit Directory
        • 📄ui Directory
          • 📄dialog
          • 📄features
          • 📄service
  • 🤝Support
Powered by GitBook
On this page
  • Get the list of organizations by Organization ID
  • Params
  1. Developer Reference
  2. API

Organization Selection

PreviousLogoutNextLanguage and Categories

Last updated 1 year ago

Organizations are communities that join Matar for seamless P2P audio conversations. Get a list of all organizations via the Get All Organizations API Endpoint.

Get the list of organizations by Organization ID

Params

Body Parameter ⬇️

Header Parameter
Data Type
Description

Bearer {{access_token}} (required)

String

Access token helps in secure access to Matar organization resources.


Sample Request ⬇️️ (Body Parameter)

curl --location 'https://matar.in.ngrok.io/api/v1/organizations' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6dHJ1ZSwiaWF0IjoxNjkyODcyNDIxLCJqdGkiOiIyZmNiODJiYi0zMDYzLTQzNGUtOGM5OS00NTVjMDhhY2Y3MmMiLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiMzk1MDFUIiwibmJmIjoxNjkyODcyNDIxLCJleHAiOjE2OTM3MzY0MjF9.ovz0ItiPsYG_rqT3vEYl42WZBonX52NXf-oWE4DuGmQ'

Responses ⬇️

Status Code: 🟢200 (200 denotes 'ok')

{
    "organizations": [
        {
            "_id": "129487316",
            "code": "https://matar.app.link/None",
            "description": null,
            "is_active": true,
            "is_chatgpt_enabled": null,
            "language": "hi-IN",
            "max_post_duration": 15,
            "org_type": 0,
            "title": "matar"
        },
        {
            "_id": "685QVK",
            "code": "https://matar.app.link/None",
            "description": null,
            "is_active": true,
            "is_chatgpt_enabled": null,
            "language": "kn-IN",
            "max_post_duration": 15,
            "org_type": 0,
            "title": "Tisser - DFLT Kannada"
        },
        {
            "_id": "XYBT7P",
            "code": "https://matar.app.link/None",
            "description": null,
            "is_active": true,
            "is_chatgpt_enabled": null,
            "language": "hi-IN",
            "max_post_duration": 15,
            "org_type": 0,
            "title": "Tisser - Indian Artisans"
        },
        {
            "_id": "K7QUEV",
            "code": "https://matar.app.link/None",
            "description": null,
            "is_active": true,
            "is_chatgpt_enabled": null,
            "language": "ur-IN",
            "max_post_duration": 15,
            "org_type": 0,
            "title": "Tisser - DFLT Telugu"
        }
    ]
}

Status Code: 🔴404 (404 denotes 'Not found')

{
      "message": "Ain't no cake like that."
}

Response Parameters Description:

Response Parameter
Description

_id

Organization ID

code

Organization Invite Link

description

Organization Description

is_active

Denotes organization active status. Two values: True or False

is_chatgpt_enabled

Is ChatGPT enabled to answer questions posted in the organization.

language

Language of the Organization.

max_post_duration

Total number of posts/questions that can be posted in the organization.

org_type

Organization Type. Three types of organizations are available. 0 denotes an open organization that anyone can join. 1 is a closed organization that requires an access code. 2 is an invite-only organization that can only be joined by an invite link.

title

Organization Title.

📁
🛠️
📄
Drawing
API: -
https://matar.in.ngrok.io/api/v1/organizations