dambel

دمبل

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

API Docs / chats / messages / create



POST /api/v1/chats/{chat-id}/messages

Sends a message in a specific chat.


Permissions

PermissionDescription
chat_messages.createSend a message in a chat

URL Parameters

NameTypeRequiredDescriptionExample
chat-idintYesID of the chat123

Request Body Parameters

NameTypeRequiredDescriptionExample
contentstringYesMessage content"Hello!"
chat_message_idintNoID of the message being replied to (optional)456

Request Example

{
  "content": "Hello!",
  "chat_message_id": 456
}

Response

201 Created

Returns the created chat message resource.

Example

{ /* chat message resource */ }

For a full schema, see Chat Message Resource.


Error Responses

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

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

LinkedinInstagramXYoutube