GET
/
v1
/
publications
/
slug
/
{slug}
Get publication by slug
import { ParagraphAPI } from "@paragraph_xyz/sdk"

const api = new ParagraphAPI()
const publication = await api.getPublicationBySlug("blog")
{
  "id": "<string>",
  "name": "<string>",
  "ownerUserId": "<string>",
  "slug": "<string>",
  "customDomain": "<string>",
  "summary": "<string>",
  "logoUrl": "<string>"
}

Path Parameters

slug
string
required

URL-friendly identifier of the publication

Required string length: 1 - 256

Response

Publication details retrieved successfully