Skip to content

Create Institution

POST/web/v1/workspaces/{workspaceId}/institutions WEB

Creates a new institution under the specified workspace.

Required Headers

HeaderExample ValueDescription
Content-Typeapplication/jsonRequest content type
Acceptapplication/jsonExpected response type
X-Client-HashClient device fingerprint
Accept-Languageen, zh, zh-Hant, ja, viResponse language (default: en)
AuthorizationBearerJWT access token

Request Parameters

Path Parameters

NameTypeRequiredInDescription
workspaceIdstringRequiredpathWorkspace business ID

Request Body

UserInstitutionCreateRequest:

NameTypeRequiredInDescription
institutionNamestringRequiredbodyInstitution name (max 126 characters)
institutionDescriptionstringOptionalbodyInstitution description (max 255 characters)
institutionRemarkstringOptionalbodyInstitution remark (max 255 characters)
institutionTypestringRequiredbodyInstitution type enum: SYSTEM, TENANT, PARTNER, CONSUMER
extraConfigobjectOptionalbodyExtra configuration containing official profile and social media info
extraConfig.officialobjectOptionalbodyOfficial business profile (name, website, email, phone, address, description)
extraConfig.socialobjectOptionalbodySocial media contacts (telegram, whatsApp, discord, twitter)

Success Response

Success 200
{
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "bizId": "inst_abc123",
    "institutionName": "Acme Corp",
    "institutionDescription": "Main institution",
    "institutionRemark": null,
    "institutionType": "TENANT",
    "institutionStatus": "ACTIVE",
    "extraConfig": null,
    "createdAt": "2026-03-21T00:00:00Z",
    "updatedAt": "2026-03-21T00:00:00Z"
  }
}

Error Responses

CodeDescription
4000Validation error (missing required fields, invalid institution type)
4010Unauthorized (invalid or missing JWT token)

Notes

  • The bizId is auto-generated by the system.
  • institutionStatus is set to the initial status upon creation.
  • createdBy and updatedBy are populated from the security context.

SlaunchX Internal Documentation