New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@paragraph-com/sdk

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paragraph-com/sdk

TypeScript SDK for Paragraph API

latest
Source
npmnpm
Version
2.4.0
Version published
Weekly downloads
312
19.08%
Maintainers
4
Weekly downloads
 
Created
Source

@paragraph-com/sdk

TypeScript SDK for the Paragraph API. Used to interact with Paragraph posts, users, coins, & more.

Install

yarn add @paragraph-com/sdk

Quick start

import { ParagraphAPI } from "@paragraph-com/sdk";

// For public endpoints
const api = new ParagraphAPI();
const post = await api.posts.get({ id: "postId" });

// For protected endpoints (creating posts, managing subscribers)
const apiWithAuth = new ParagraphAPI({ apiKey: "your-api-key" });
const newPost = await apiWithAuth.posts.create({
  title: "My Post",
  markdown: "# Hello World",
});

Authenticated endpoints

Several endpoints require an API key, which identifies your publication. Pass it when creating the client:

const api = new ParagraphAPI({ apiKey: "your-api-key" });

// Get your publication info
const publication = await api.me.get();

// List your drafts
const { items: drafts } = await api.posts.list({ status: "draft" });

// Update a post
await api.posts.update({
  id: "postId",
  title: "Updated Title",
  markdown: "## New content",
  status: "published",
});

// Delete a post
await api.posts.delete({ id: "postId" });

Documentation

See the API reference for detailed documentation & a playground.

See autogenerated TypeScript docs for all available methods.

FAQs

Package last updated on 01 Sep 2026

Related posts