Skip to main content
The Create Community API enables developers to create a new community within the platform programmatically. This API is crucial for automating community setup, allowing for seamless integration with your application or service. URL : /api/thirdparty/community/create Method : POST Auth required : YES Mandatory Fields: handle, name, type, actions Note : You need to Authorize gn-access-token as Bearer Token to run the API.

Request Body

Success Response

Condition: If Everything is okay and community is created. Code: 200 Content
Note: In the community_id you will get the actual ID of community and the link from share_url

Bad Request

Condition: If the request contains errors or invalid data, resulting in the community not being created. Code: 400 Content

Invalid API Usage

Condition: “If the community categories do not exist or there is invalid use of the API, a 404 or 412 error is returned, respectively.
Category Doesn’t exists
Code: 404 Content
Invalid Usage of API
Code: 412 Content

Internal Server Error

Condition: If an unexpected issue occurs on the server, an Internal Server Error is returned. Code: 500 Content