Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
GITBOOK-1284: [Fix] Get message endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rachana-visavadiya authored and gitbook-bot committed Apr 22, 2024
1 parent afe5949 commit 37ef9be
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# Get Message

Retrieves a single chat message by the provided id. Callee must have permission to access the room where the message resides.
Retrieves a single chat message for the message ID. You must have permission to access the room where the message is.

| URL | Requires Auth | HTTP Method |
| ------------------------- | ------------- | ----------- |
| `/api/v1/chat.getMessage` | `yes` | `GET` |

## Path Variables

| Argument | Example | Required | Description |
| -------- | ------------------- | -------- | ----------------------------- |
| `msgId` | `7aDSXtjMA3KPLxLjt` | Required | The id of the message to get. |
<table><thead><tr><th width="169">Argument</th><th>Example</th><th width="162">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>msgId</code></td><td><code>7aDSXtjMA3KPLxLjt</code></td><td>Required</td><td>The ID of the message to get.</td></tr></tbody></table>

## Example Call

Expand All @@ -23,7 +21,7 @@ curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \

## Example Result

```javascript
```json
{
"message": {
"_id": "7aDSXtjMA3KPLxLjt",
Expand Down

0 comments on commit 37ef9be

Please sign in to comment.