Docs / Features / @Mentions & oEmbed

@Mentions & oEmbed

Threadline comments support @mentions to tag other users and automatic rich embeds for popular media links.

@Mentions

Type @username in a comment to mention another Threadline user. Handles are derived from display names (e.g. "John Doe" → @john_doe). Mentioned users receive an in-app notification and optional email.

Hey @john_doe, great point about the article!

oEmbed previews

Paste a supported URL in a comment and Threadline renders a rich preview below the text. Previews lazy-load when scrolled into view.

If oEmbed resolution fails, the URL falls back to a plain link. Only trusted providers are allowed. Responses are cached for 24 hours.

API

GET /v1/oembed?url=https://www.youtube.com/watch?v=...
GET /v1/users/mentions/search?q=john

# Website proxy (dashboard / same-origin)
GET /api/oembed?url=...

Provider examples

Paste any of these URL shapes into a comment (or call GET /v1/oembed?url=...) to resolve a rich preview:

Example response shape for GET /v1/oembed?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ:

{
  "provider": "youtube",
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "html": "<iframe src=\"https://www.youtube.com/embed/dQw4w9WgXcQ\" ...></iframe>",
  "title": "Rick Astley - Never Gonna Give You Up",
  "type": "video",
  "thumbnail_url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg"
}