zulip/templates/zerver/api/get-raw-message.md

39 lines
849 B
Markdown

# Get a message's raw Markdown
{generate_api_description(/messages/{message_id}:get)}
## Usage examples
{start_tabs}
{tab|python}
{generate_code_example(python)|/messages/{message_id}:get|example}
{tab|curl}
{generate_code_example(curl)|/messages/{message_id}:get|example}
{end_tabs}
## Parameters
{generate_api_arguments_table|zulip.yaml|/messages/{message_id}:get}
## Response
#### Return values
{generate_return_values_table|zulip.yaml|/messages/{message_id}:get}
#### Example response
A typical successful JSON response may look like:
{generate_code_example|/messages/{message_id}:get|fixture(200)}
An example JSON response for when the specified message does not exist or it
is not visible to the user making the query (e.g. it was a PM between other
two users):
{generate_code_example|/messages/{message_id}:get|fixture(400)}