dambel

دمبل

shevron
ورود | ثبت نام

API Docs / chats / create



POST /api/v1/chats

Creates a new chat with the specified users.


Permissions

PermissionDescription
chats.createStart a new chat

Request Body Parameters

NameTypeRequiredDescriptionExample
usersarrayYesArray of user IDs[1, 2, 3]

Request Example

{
  "users": [1, 2, 3]
}

Response

201 Created

Returns the created chat resource.

Example

{
  "chat": { /* chat resource */ }
}

For a full schema, see Chat Resource.


Error Responses

StatusDescriptionReference
422Validation errorValidation error
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube