SDK reference
Every resource of the client, with its methods. A method takes one flat input object (path and query parameters by name, the request body under body) and an optional init for the call. See Conventions for the shape of inputs and outputs and Errors for what a failed call throws.
apiKeys
pd.apiKeys, 4 methods.
pd.apiKeys.list: List a workspace's API keyspd.apiKeys.create: Create an API keypd.apiKeys.revoke: Revoke an API keypd.apiKeys.rotate: Rotate an API key
articleGroups
pd.articleGroups, 6 methods.
pd.articleGroups.list: List articles, one item per content piecepd.articleGroups.get: Read one content piece with all its language versionspd.articleGroups.delete: Delete every language version of a content piecepd.articleGroups.approve: Approve the language versions of a grouppd.articleGroups.publish: Publish the language versions of a grouppd.articleGroups.unpublish: Unpublish the language versions of a group
articles
pd.articles, 27 methods.
pd.articles.create: Create an articlepd.articles.list: List articlespd.articles.duplicate: Duplicate an articlepd.articles.get: Read an articlepd.articles.update: Update an articlepd.articles.delete: Delete an articlepd.articles.submit: Submit an article for reviewpd.articles.approve: Approve an articlepd.articles.reject: Record a review decision: rejectedpd.articles.requestChanges: Record a review decision: changes_requestedpd.articles.publish: Publish an approved article to its integrationpd.articles.unpublish: Take a published article back to DRAFTpd.articles.transitionTranslations: Submit, approve or publish every language version togetherpd.articles.listReviews: The article's review historypd.articles.listVersions: The article's version historypd.articles.getVersion: Read one version of an articlepd.articles.getSources: Research sources and fact checks behind an articlepd.articles.restoreVersion: Restore an earlier versionpd.articles.listComments: List comments on an articlepd.articles.addComment: Comment on an articlepd.articles.resolveComment: Resolve a commentpd.articles.reopenComment: Reopen a resolved commentpd.articles.checkDuplicates: Check a title for a possible duplicate before creating an articlepd.articles.move: Move articles to another projectpd.articles.setHeroFromUrl: Replace the hero image with a picture from a URLpd.articles.setHeroFromFile: Replace the hero image with an uploaded filepd.articles.detachHeroFromBody: Take the hero image out of the article body
billing
pd.billing, 8 methods.
pd.billing.listCreditPackages: The credit packs on salepd.billing.getCredits: Wallet balance, reserved and availablepd.billing.adjustCredits: Adjust a wallet by handpd.billing.listPlans: The plans on offerpd.billing.getSubscription: The plan in force, the subscription, and its invoicespd.billing.startSubscriptionCheckout: Start a Stripe checkout for a planpd.billing.openPortal: Open the Stripe billing portalpd.billing.startCheckout: Start a Stripe checkout for a credit pack
blog
pd.blog, 4 methods.
pd.blog.listPosts: The blog's published posts in one languagepd.blog.listCategories: The categories that have published posts, in one languagepd.blog.getPost: One published postpd.blog.getPostEdit: Where the caller can edit a published post
brandVoices
pd.brandVoices, 4 methods.
pd.brandVoices.list: List brand voicespd.brandVoices.create: Create a brand voicepd.brandVoices.update: Update a brand voicepd.brandVoices.delete: Delete a brand voice
briefs
pd.briefs, 6 methods.
pd.briefs.draft: Draft a content briefpd.briefs.list: List a project's stored briefspd.briefs.create: Store a content briefpd.briefs.get: Read a stored briefpd.briefs.update: Update a stored briefpd.briefs.delete: Delete a stored brief
calendar
pd.calendar, 4 methods.
pd.calendar.list: The content calendar over a date rangepd.calendar.create: Add a calendar itempd.calendar.update: Update a calendar itempd.calendar.delete: Remove a calendar item
categories
pd.categories, 8 methods.
pd.categories.list: List categoriespd.categories.create: Create a categorypd.categories.update: Rename a category, add or remove a languagepd.categories.delete: Delete a categorypd.categories.setForArticle: Set an article's categoriespd.categories.suggestForArticle: Suggest categories for an articlepd.categories.suggestForProject: Suggest a starter set of categories for a projectpd.categories.translate: Suggest names for a category in other languages
contentTemplates
pd.contentTemplates, 4 methods.
pd.contentTemplates.list: List the content templates available to a workspacepd.contentTemplates.create: Create a workspace content templatepd.contentTemplates.update: Update a workspace content templatepd.contentTemplates.delete: Delete a workspace content template
dashboard
pd.dashboard, 6 methods.
pd.dashboard.getAnalytics: Generation and publishing aggregates over a windowpd.dashboard.getTrends: Credits used and articles created or published, per day or weekpd.dashboard.getArticleCounts: Article counts by statuspd.dashboard.listJobs: Running jobs, and those that failed recentlypd.dashboard.listAudit: Audit trail entries, filtered and pagedpd.dashboard.getCreditBurn: Credit consumption over recent days
generation
pd.generation, 10 methods.
pd.generation.estimate: Quote the credit cost of generating this articlepd.generation.getOutline: The outline awaiting reviewpd.generation.approveOutline: Approve an outline and resume writingpd.generation.aiEdit: Expand, shorten, rewrite, simplify or change the tone of a passagepd.generation.start: Start generating an articlepd.generation.getStatus: Generation progress for an articlepd.generation.cancel: Cancel a running generationpd.generation.regenerateImage: Regenerate an image, optionally with a new prompt or stylepd.generation.updateAsset: Edit an image's alt text, or make it the hero or an inline imagepd.generation.deleteAsset: Delete an image
ideas
pd.ideas, 5 methods.
pd.ideas.list: List content ideaspd.ideas.create: Create a content ideapd.ideas.update: Update a content ideapd.ideas.delete: Delete a content ideapd.ideas.generate: Suggest content ideas for a project
integrations
pd.integrations, 4 methods.
pd.integrations.list: List publishing integrationspd.integrations.create: Connect a publishing targetpd.integrations.update: Update an integrationpd.integrations.delete: Disconnect an integration
invitations
pd.invitations, 3 methods.
pd.invitations.list: List a workspace's pending invitationspd.invitations.revoke: Revoke an invitationpd.invitations.resend: Send an invitation again
knowledge
pd.knowledge, 5 methods.
pd.knowledge.list: List a project's knowledge sourcespd.knowledge.create: Register a knowledge sourcepd.knowledge.uploadContent: Upload a knowledge source's bytespd.knowledge.reingest: Re-run ingestion for a knowledge sourcepd.knowledge.delete: Delete a knowledge source
links
pd.links, 3 methods.
pd.links.list: Internal link suggestions for an articlepd.links.generate: Generate internal link suggestionspd.links.decide: Accept, edit or reject a link suggestion
permissions
pd.permissions, 1 method.
pd.permissions.list: The catalog of permissions a role can grant
plans
pd.plans, 5 methods.
pd.plans.suggest: Suggest a publishing planpd.plans.create: Create a publishing planpd.plans.list: List publishing planspd.plans.get: Read a publishing planpd.plans.update: Change a publishing plan
projects
pd.projects, 16 methods.
pd.projects.list: List a workspace's projectspd.projects.create: Create a projectpd.projects.get: Read a projectpd.projects.update: Update a projectpd.projects.delete: Delete a projectpd.projects.archive: Archive a projectpd.projects.restore: Restore an archived projectpd.projects.refreshIcon: Refetch a project's website iconpd.projects.listMembers: List a project's memberspd.projects.addMember: Add a member to a projectpd.projects.setMemberRole: Change a project member's rolepd.projects.removeMember: Remove a member from a projectpd.projects.detectImageStyle: Detect the project's image style from its websitepd.projects.proposeImageStyles: Propose three image styles for the projectpd.projects.latestImageStyleRuns: Read the project's latest image style runspd.projects.applyImageStyle: Apply a detected or proposed image style
roles
pd.roles, 5 methods.
pd.roles.list: List a workspace's rolespd.roles.create: Create a rolepd.roles.update: Update a role's name, description or permissionspd.roles.delete: Delete a rolepd.roles.duplicate: Duplicate a role under a new name
siteAnalyses
pd.siteAnalyses, 3 methods.
pd.siteAnalyses.start: Analyse the client's website to draft a projectpd.siteAnalyses.get: Read a website analysispd.siteAnalyses.apply: Create the project a website analysis drafted, as reviewed
social
pd.social, 2 methods.
pd.social.generate: Repurpose an article into social postspd.social.list: The social posts stored for an article
translations
pd.translations, 2 methods.
pd.translations.estimate: Estimate a translationpd.translations.create: Translate an article into another of its project's languages
usage
pd.usage, 5 methods.
pd.usage.listTransactions: The credit ledger, newest firstpd.usage.get: Usage records, filterable by window, project, user, operation and providerpd.usage.listPayments: Checkout and payment historypd.usage.listQuotas: Quota limits and current consumptionpd.usage.setQuota: Set or clear a quota
webhooks
pd.webhooks, 3 methods.
pd.webhooks.list: Webhook endpoints, recent deliveries, and the catalog of eventspd.webhooks.create: Register a webhook endpointpd.webhooks.delete: Remove a webhook endpoint
workspaces
pd.workspaces, 8 methods.
pd.workspaces.list: List the workspaces the caller belongs topd.workspaces.create: Create a workspacepd.workspaces.get: Read a workspace, the caller's permissions in it, and the server's featurespd.workspaces.update: Update a workspacepd.workspaces.listMembers: List a workspace's memberspd.workspaces.addMember: Add a member, or invite an address by emailpd.workspaces.setMemberRoles: Replace a member's rolespd.workspaces.removeMember: Remove a member from a workspace