Getting started

Get your API key

Generate the organization API key that authenticates the Postiv Public API and the hosted MCP server.

The Public API and the hosted MCP server share one organization API key. Keys generated after the scoped API update can add knowledge, create and schedule drafts, list LinkedIn profiles, and read cached analytics.

Generate the key

  1. 1Log in to your Postiv account.
  2. 2Navigate to Settings, then Integrations.
  3. 3Find the Public API section.
  4. 4Click Generate API Key if you don't have one, or Regenerate Key (adds new scopes) for a legacy key.
Postiv Settings, Integrations tab, Public API section with a generated key
Legacy keys may only have knowledge:write. Use Regenerate Key (adds new scopes) when broader API access is needed; regeneration invalidates the previous key.

Use the same key for MCP

Connect MCP clients to https://postiv.ai/mcp with the key as an Authorization bearer token. See the Hosted MCP guide for claude.ai, Claude Code, and generic client setup.

Terminal
claude mcp add --transport http postiv https://postiv.ai/mcp \
  --header "Authorization: Bearer pk_postiv_..."

Keep the key secure

Your API key grants access according to its scopes, including workspace automation scopes on new keys. Never share it publicly or commit it to version control. If you believe the key has been compromised, regenerate it immediately from Settings.