Skip to content

Migrate chat.postMessage endpoint to new API route format #39591

@CodeMatrix1

Description

@CodeMatrix1

Description

The endpoint chat.postMessage is still implemented using the deprecated API.v1.addRoute format.

Rocket.Chat is gradually migrating endpoints to the new declarative API format (API.v1.post, API.v1.get, etc.) which provides:

  • Typed request validation
  • Response schema validation
  • Improved OpenAPI generation
  • Better maintainability

This issue proposes migrating the endpoint to the new format.

Current Implementation

API.v1.addRoute('chat.postMessage', {...})

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurePull requests that introduces new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions