example-data.com
Menu
Browse docs and collections

Overview

messages / #3085

Message #3085

· 6/24/2025

Laboriosam aliqua vigor atavus depono. Dolores desino sumptus aggredior. Speciosus videlicet cohaero voro vergo repudiandae voluptates sophismata.

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/messages/3085" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/messages/3085"
);
const message = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/messages.d.ts https://example-data.com/types/messages.d.ts
import type { Message } from "./types/messages";

const res = await fetch(
  "https://example-data.com/api/v1/messages/3085"
);
const message = (await res.json()) as Message;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/messages/3085"
)
message = res.json()

Response

{
  "id": 3085,
  "conversationId": 169,
  "userId": 193,
  "body": "Laboriosam aliqua vigor atavus depono. Dolores desino sumptus aggredior. Speciosus videlicet cohaero voro vergo repudiandae voluptates sophismata.",
  "isEdited": false,
  "createdAt": "2025-06-24T08:56:30.544Z",
  "updatedAt": "2025-06-24T08:56:30.544Z"
}